diff --git a/NativeScript/runtime/SwiftInterop.h b/NativeScript/runtime/SwiftInterop.h index 38afa13d..baebdfef 100644 --- a/NativeScript/runtime/SwiftInterop.h +++ b/NativeScript/runtime/SwiftInterop.h @@ -40,7 +40,7 @@ // calls it by reporting the arguments as an array: callbackBegin, each // argument through the complete* entries, then completeArrayEnd. -#define NS_SWIFT_ABI_VERSION 13 +#define NS_SWIFT_ABI_VERSION 15 #ifdef __cplusplus extern "C" { @@ -344,6 +344,23 @@ struct NSSwiftAPI { /* 53 */ void (*completeErrorValue)(void* token, const uint8_t* message, intptr_t messageLength, const uint8_t* type, intptr_t typeLength); + + // A JS object argument (NSSwiftTagJSObject) carries the same handle for + // the same JS object and protocol. adapterOf returns the Swift adapter + // adopted for it (+0), or null; adoptAdapter hands the runtime the first + // one (+1), which it keeps while the JS object lives. The runtime holds + // the JS object strongly while anything else retains the adapter, weakly + // otherwise. + /* 54 */ void* (*adapterOf)(void* handle); + /* 55 */ void (*adoptAdapter)(void* handle, void* adapter); + + // Called by an async thunk after starting its task, during the call that + // began `token`: `cancel(context)` runs if JS aborts the call (an + // AbortSignal passed after its arguments), and `release(context)` once + // the call settles either way. + /* 56 */ void (*setCancel)(void* token, void* context, + void (*cancel)(void* context), + void (*release)(void* context)); }; typedef void (*NSSwiftRegisterFunction)(NSSwiftRegistrar* registrar); diff --git a/NativeScript/runtime/SwiftInterop.mm b/NativeScript/runtime/SwiftInterop.mm index 05d87d70..e46caf69 100644 --- a/NativeScript/runtime/SwiftInterop.mm +++ b/NativeScript/runtime/SwiftInterop.mm @@ -697,6 +697,9 @@ void ApiReturnErrorValue(NSSwiftCall* call, const uint8_t* message, intptr_t mes const uint8_t* type, intptr_t typeLength); void ApiCompleteErrorValue(void* token, const uint8_t* message, intptr_t messageLength, const uint8_t* type, intptr_t typeLength); +void* ApiAdapterOf(void* handle); +void ApiAdoptAdapter(void* handle, void* adapter); +void ApiSetCancel(void* token, void* context, void (*cancel)(void*), void (*release)(void*)); void ApiReturnAsyncSequence(NSSwiftCall* call, void* iterator, NSSwiftThunk next); void ApiCompleteAsyncSequence(void* token, void* iterator, NSSwiftThunk next); struct IsolateState; @@ -709,24 +712,63 @@ void ApiCompleteErrorValue(void* token, const uint8_t* message, intptr_t message void ReleaseCallback(SwiftCallback* callback); const NSSwiftAPI kAPI = { - ApiReturnVoid, ApiReturnBool, ApiReturnInt64, - ApiReturnUInt64, ApiReturnDouble, ApiReturnString, - ApiReturnNull, ApiReturnObject, ApiThrowError, - ApiThrowTypeError, ApiRegisterModule, ApiRegisterType, - ApiRegisterMember, ApiBeginAsync, ApiCompleteVoid, - ApiCompleteBool, ApiCompleteInt64, ApiCompleteUInt64, - ApiCompleteDouble, ApiCompleteString, ApiCompleteNull, - ApiCompleteObject, ApiCompleteError, ApiReturnArrayBegin, - ApiReturnArrayEnd, ApiReturnMapBegin, ApiReturnMapEnd, - ApiCompleteArrayBegin, ApiCompleteContainerEnd, ApiCompleteMapBegin, - ApiCompleteContainerEnd, ApiCallbackBegin, ApiCallbackRetain, - ApiCallbackRelease, ApiReturnCaseBegin, ApiCompleteCaseBegin, - ApiReturnArrayEnd, ApiCompleteContainerEnd, ApiWriteBackBegin, - ApiWriteBackEnd, ApiReturnObjC, ApiCompleteObjC, - ApiRegisterUnitModule, ApiObjectCallBegin, ApiObjectCallEnd, - ApiObjectResultRelease, ApiReturnJSObject, ApiCompleteJSObject, - ApiRegisterTracker, ApiReturnAsyncSequence, ApiCompleteAsyncSequence, - ApiCallbackCallEnd, ApiReturnErrorValue, ApiCompleteErrorValue, + ApiReturnVoid, + ApiReturnBool, + ApiReturnInt64, + ApiReturnUInt64, + ApiReturnDouble, + ApiReturnString, + ApiReturnNull, + ApiReturnObject, + ApiThrowError, + ApiThrowTypeError, + ApiRegisterModule, + ApiRegisterType, + ApiRegisterMember, + ApiBeginAsync, + ApiCompleteVoid, + ApiCompleteBool, + ApiCompleteInt64, + ApiCompleteUInt64, + ApiCompleteDouble, + ApiCompleteString, + ApiCompleteNull, + ApiCompleteObject, + ApiCompleteError, + ApiReturnArrayBegin, + ApiReturnArrayEnd, + ApiReturnMapBegin, + ApiReturnMapEnd, + ApiCompleteArrayBegin, + ApiCompleteContainerEnd, + ApiCompleteMapBegin, + ApiCompleteContainerEnd, + ApiCallbackBegin, + ApiCallbackRetain, + ApiCallbackRelease, + ApiReturnCaseBegin, + ApiCompleteCaseBegin, + ApiReturnArrayEnd, + ApiCompleteContainerEnd, + ApiWriteBackBegin, + ApiWriteBackEnd, + ApiReturnObjC, + ApiCompleteObjC, + ApiRegisterUnitModule, + ApiObjectCallBegin, + ApiObjectCallEnd, + ApiObjectResultRelease, + ApiReturnJSObject, + ApiCompleteJSObject, + ApiRegisterTracker, + ApiReturnAsyncSequence, + ApiCompleteAsyncSequence, + ApiCallbackCallEnd, + ApiReturnErrorValue, + ApiCompleteErrorValue, + ApiAdapterOf, + ApiAdoptAdapter, + ApiSetCancel, }; // "Polygon.Style" -> "Style". @@ -984,6 +1026,29 @@ void BuildGroups(ModuleInfo& module) { Global resolver; ValueCode code; std::string name; + // Cancels the Swift task (setCancel); released with the entry. + void* cancelContext = nullptr; + void (*cancel)(void*) = nullptr; + void (*release)(void*) = nullptr; + + ~PendingAsync() { + if (release != nullptr) { + release(cancelContext); + } + } +}; + +struct SwiftCallback; + +// The protocol adapters Swift made of one JS object, one per protocol (the +// handles' `adapter`), each owned (+1) until the object is collected. A +// handle holds the object strongly while Swift retains its adapter beyond +// that, and weakly otherwise, as NativeScript holds the JS side of +// Objective-C objects: Swift's strong references keep the object alive, +// weak ones (`weak var delegate`) last as long as JS keeps it. +struct AdaptedObject { + Global object; + std::vector handles; }; struct IsolateState { @@ -998,6 +1063,12 @@ void BuildGroups(ModuleInfo& module) { std::vector calls; // Builds async iterators from step functions (MakeAsyncIterator). Global iteratorFactory; + // JS objects with protocol adapters, and whether the GC hook that keeps + // their strength in step is installed (see AdaptedObject). + robin_hood::unordered_set adapted; + bool adapterHook = false; + + ~IsolateState(); }; // Owns one retain of a Swift object for as long as its JS wrapper lives. @@ -1080,6 +1151,8 @@ void BuildGroups(ModuleInfo& module) { Local result; bool completed = false; bool threw = false; + // The pending entry of an async call (beginAsync), or 0. + uint64_t asyncId = 0; // The first exception a JS callback threw while the thunk ran; it is // thrown from the call once the thunk returns. Global callbackException; @@ -1860,12 +1933,105 @@ void SettleOnIsolate(Isolate* isolate, uint64_t id, AsyncOutcome& outcome) { std::string name; Global target; std::atomic references{1}; + // A JS object's protocol handle: its Swift adapter (+1), once made. + void* adapter = nullptr; }; +// Null once the JS object an adapter held weakly was collected. Local JSObjectOf(SwiftCallback* handle, Isolate* isolate) { + if (handle->target.IsEmpty()) { + return v8::Null(isolate); + } return handle->target.Get(isolate); } +// Before each collection: a handle is strong exactly while something besides +// its AdaptedObject retains the adapter. +void AdapterGCPrologue(Isolate* isolate, v8::GCType, v8::GCCallbackFlags, void*) { + auto* state = Caches::StateFor(isolate); + if (state == nullptr) { + return; + } + for (AdaptedObject* adapted : state->adapted) { + for (SwiftCallback* handle : adapted->handles) { + if (handle->target.IsEmpty()) { + continue; + } + bool shared = handle->adapter != nullptr && CFGetRetainCount((CFTypeRef)handle->adapter) > 1; + if (shared && handle->target.IsWeak()) { + handle->target.ClearWeak(); + } else if (!shared && !handle->target.IsWeak()) { + handle->target.SetWeak(); + } + } + } +} + +// The JS object was collected: release its adapters and handles. +void ReleaseAdaptedObject(const v8::WeakCallbackInfo& info) { + AdaptedObject* adapted = info.GetParameter(); + adapted->object.Reset(); + info.SetSecondPassCallback([](const v8::WeakCallbackInfo& info) { + AdaptedObject* adapted = info.GetParameter(); + if (auto* state = Caches::StateFor(info.GetIsolate())) { + state->adapted.erase(adapted); + } + for (SwiftCallback* handle : adapted->handles) { + if (handle->adapter != nullptr) { + handle->module->release(handle->adapter); + } + ReleaseCallback(handle); + } + delete adapted; + }); +} + +IsolateState::~IsolateState() { + // The isolate is going away: adapters still alive keep their handles. + for (AdaptedObject* adapted : adapted) { + adapted->object.Reset(); + delete adapted; + } +} + +// `object`'s handle for `protocol` (+1 for the caller): the one its adapter +// was made for, so Swift sees one adapter per JS object and protocol. +SwiftCallback* AdapterHandle(Isolate* isolate, Local context, IsolateState* state, + const ModuleInfo* module, const ValueCode& code, + const std::string& name, Local object) { + Local key = + v8::Private::ForApi(isolate, tns::ToV8String(isolate, "ns:swift.adapters")); + Local stored; + AdaptedObject* adapted = nullptr; + if (object->GetPrivate(context, key).ToLocal(&stored) && stored->IsExternal()) { + adapted = static_cast( + stored.As()->Value(v8::kExternalPointerTypeTagDefault)); + } else { + adapted = new AdaptedObject(); + adapted->object.Reset(isolate, object); + adapted->object.SetWeak(adapted, ReleaseAdaptedObject, v8::WeakCallbackType::kParameter); + object + ->SetPrivate(context, key, + External::New(isolate, adapted, v8::kExternalPointerTypeTagDefault)) + .Check(); + state->adapted.insert(adapted); + if (!state->adapterHook) { + isolate->AddGCPrologueCallback(AdapterGCPrologue); + state->adapterHook = true; + } + } + for (SwiftCallback* handle : adapted->handles) { + if (handle->module == module && handle->code.typeIndex == code.typeIndex) { + handle->references.fetch_add(1, std::memory_order_relaxed); + return handle; + } + } + auto* handle = new SwiftCallback(isolate, module, code, name, object); + adapted->handles.push_back(handle); + handle->references.fetch_add(1, std::memory_order_relaxed); + return handle; +} + // Runs `body` on the isolate's thread with the isolate locked and valid: // now when called there, otherwise queued. Returns false when it will not run. bool OnIsolateThread(Isolate* isolate, IsolateWrapper wrapper, std::function body) { @@ -2025,6 +2191,7 @@ void Emit(void* rawToken, std::shared_ptr node) { pending->code = *context->resultCode; pending->name = context->member->swiftName; context->state->pending.emplace(id, std::move(pending)); + context->asyncId = id; Complete(context, resolver->GetPromise()); } else { // The token is still completed later; it then finds no pending entry. @@ -2054,6 +2221,35 @@ void ApiCallbackRetain(void* callback) { void ApiCallbackRelease(void* callback) { ReleaseCallback(static_cast(callback)); } +void* ApiAdapterOf(void* handle) { return static_cast(handle)->adapter; } + +// On the isolate's thread, during the call that began `token`. +void ApiSetCancel(void* token, void* context, void (*cancel)(void*), void (*release)(void*)) { + auto* async = static_cast(token); + auto* state = Caches::StateFor(async->isolate); + if (state == nullptr) { + release(context); + return; + } + auto it = state->pending.find(async->id); + if (it == state->pending.end()) { + release(context); + return; + } + it->second->cancelContext = context; + it->second->cancel = cancel; + it->second->release = release; +} + +void ApiAdoptAdapter(void* handle, void* adapter) { + auto* callback = static_cast(handle); + if (callback->adapter != nullptr) { + callback->module->release(adapter); + return; + } + callback->adapter = adapter; +} + void ApiCompleteVoid(void* token) { Emit(token, Outcome(AsyncOutcome::Kind::Void)); } void ApiCompleteBool(void* token, uint8_t value) { @@ -2659,7 +2855,12 @@ bool Convert(Isolate* isolate, Local context, const ModuleInfo& module, isolate, member, index, "does not implement " + protocol.jsName + " (missing " + missing + ")"); } - auto* handle = new SwiftCallback(isolate, &module, code, member.swiftName, object); + auto* state = Caches::StateFor(isolate); + if (state == nullptr) { + return false; + } + SwiftCallback* handle = + AdapterHandle(isolate, context, state, &module, code, member.swiftName, object); arena.callbacks.push_back(handle); slot.tag = NSSwiftTagJSObject; slot.payload.object = handle; @@ -2752,6 +2953,10 @@ bool Convert(Isolate* isolate, Local context, const ModuleInfo& module, } auto result = std::make_unique(); + if (handle->target.IsEmpty()) { + // A weakly held JS implementation was collected. + return nullptr; + } Local target = handle->target.Get(isolate); Local key = tns::ToV8String(isolate, member.jsName); bool done = false; @@ -3049,8 +3254,9 @@ bool Select(Isolate* isolate, Local context, const MemberGroup& group, LoadedModule* LoadedFor(Isolate* isolate, const ModuleInfo* module); Local DataFor(Isolate* isolate, const void* pointer); -// A Swift iterator owned by the step function JS calls; released when that -// function is collected. +// A Swift iterator owned by the step function JS calls; released when the +// iteration finishes (the end, or `return()` after `break`) or that function +// is collected. struct IteratorBox { Global step; const ModuleInfo* module; @@ -3060,13 +3266,25 @@ bool Select(Isolate* isolate, Local context, const MemberGroup& group, MemberInfo member; }; +// Releases the Swift iterator, which ends a stream Swift still produces +// (AsyncStream's onTermination sees `.cancelled`). A step in flight keeps +// its own reference until it settles. +void FinishCallback(const FunctionCallbackInfo& info) { + auto* box = static_cast( + info.Data().As()->Value(v8::kExternalPointerTypeTagDefault)); + if (box->iterator != nullptr) { + box->module->release(box->iterator); + box->iterator = nullptr; + } +} + void StepCallback(const FunctionCallbackInfo& info) { Isolate* isolate = info.GetIsolate(); auto* box = static_cast( info.Data().As()->Value(v8::kExternalPointerTypeTagDefault)); auto* state = Caches::StateFor(isolate); LoadedModule* loaded = LoadedFor(isolate, box->module); - if (state == nullptr || loaded == nullptr) { + if (state == nullptr || loaded == nullptr || box->iterator == nullptr) { return; } NSSwiftValue slot{}; @@ -3094,15 +3312,29 @@ void StepCallback(const FunctionCallbackInfo& info) { // Turns a step function (a Promise of `[element]`, or `[]` at the end) into // an async iterator, one step at a time. -constexpr const char* kIteratorFactory = R"js((function (step) { +// `finish` releases the Swift iterator at the end, or on `return()` when a +// `for await` loop exits early. +constexpr const char* kIteratorFactory = R"js((function (step, finish) { let pending = Promise.resolve(); + let done = false; + const end = () => { + if (!done) { + done = true; + finish(); + } + return { value: undefined, done: true }; + }; return { next() { - const result = pending.then(() => step()).then((values) => - values.length ? { value: values[0], done: false } : { value: undefined, done: true }); + const result = pending.then(() => (done ? [] : step())).then((values) => + values.length ? { value: values[0], done: false } : end()); pending = result.then(() => undefined, () => undefined); return result; }, + return(value) { + end(); + return Promise.resolve({ value, done: true }); + }, [Symbol.asyncIterator]() { return this; }, @@ -3137,18 +3369,26 @@ void StepCallback(const FunctionCallbackInfo& info) { delete box; return MaybeLocal(); } + Local finish; + if (!v8::Function::New(context, FinishCallback, DataFor(isolate, box)).ToLocal(&finish)) { + module->release(iterator); + delete box; + return MaybeLocal(); + } box->step.Reset(isolate, step); box->step.SetWeak( box, [](const WeakCallbackInfo& info) { IteratorBox* collected = info.GetParameter(); collected->step.Reset(); - collected->module->release(collected->iterator); + if (collected->iterator != nullptr) { + collected->module->release(collected->iterator); + } delete collected; }, WeakCallbackType::kParameter); - Local argv[] = {step}; - return state->iteratorFactory.Get(isolate)->Call(context, v8::Undefined(isolate), 1, argv); + Local argv[] = {step, finish}; + return state->iteratorFactory.Get(isolate)->Call(context, v8::Undefined(isolate), 2, argv); } LoadedModule* LoadedFor(Isolate* isolate, const ModuleInfo* module) { @@ -3164,7 +3404,7 @@ void StepCallback(const FunctionCallbackInfo& info) { // `receiver` (empty for non-instance members) and `arguments`. MaybeLocal Invoke(Isolate* isolate, const MemberGroup& group, const MemberInfo& member, Local receiver, const std::vector>& arguments, - bool setter, Local constructTarget) { + bool setter, Local constructTarget, uint64_t* asyncId = nullptr) { Local context = isolate->GetCurrentContext(); const ModuleInfo& module = *group.module; auto* state = Caches::StateFor(isolate); @@ -3245,6 +3485,9 @@ void StepCallback(const FunctionCallbackInfo& info) { state->calls.push_back(&call); thunk(&call, slots.empty() ? nullptr : slots.data(), static_cast(slots.size())); state->calls.pop_back(); + if (asyncId != nullptr) { + *asyncId = call.asyncId; + } // A JS exception thrown while the thunk ran caused whatever error the // thunk reported, so it is the one JS sees. @@ -3305,6 +3548,96 @@ bool ReceiverIsEnumArgument(const MemberGroup& group) { return storage.overloads.empty() ? group : storage; } +// Takes a trailing AbortSignal off a call of an async member; empty when +// there is none. +Local TakeSignal(Isolate* isolate, Local context, const MemberGroup& group, + std::vector>& arguments) { + bool async = std::any_of(group.overloads.begin(), group.overloads.end(), + [](const MemberInfo* m) { return m->flags & NSSwiftMemberAsync; }); + Local type; + if (!async || arguments.empty() || !arguments.back()->IsObject() || + !context->Global()->Get(context, tns::ToV8String(isolate, "AbortSignal")).ToLocal(&type) || + !type->IsFunction() || + !arguments.back()->InstanceOf(context, type.As()).FromMaybe(false)) { + return Local(); + } + Local signal = arguments.back().As(); + arguments.pop_back(); + return signal; +} + +// Rejects pending call `id` with `reason` and cancels its Swift task; a +// result it reports later finds no entry. +void AbortPending(Isolate* isolate, Local context, uint64_t id, Local reason) { + auto* state = Caches::StateFor(isolate); + if (state == nullptr) { + return; + } + auto it = state->pending.find(id); + if (it == state->pending.end()) { + return; + } + std::unique_ptr pending = std::move(it->second); + state->pending.erase(it); + if (pending->cancel != nullptr) { + pending->cancel(pending->cancelContext); + } + pending->resolver.Get(isolate)->Reject(context, reason).Check(); +} + +// The signal's abort listener; its data is [call id, signal]. +void AbortListener(const FunctionCallbackInfo& info) { + Isolate* isolate = info.GetIsolate(); + Local context = isolate->GetCurrentContext(); + Local data = info.Data().As(); + Local id; + Local signal; + Local reason; + if (data->Get(context, 0).ToLocal(&id) && data->Get(context, 1).ToLocal(&signal) && + signal.As()->Get(context, tns::ToV8String(isolate, "reason")).ToLocal(&reason)) { + AbortPending(isolate, context, static_cast(id.As()->Value()), reason); + } +} + +// Ties async call `id` to `signal`: aborting rejects its Promise with the +// signal's reason and cancels the Swift task. +void WatchSignal(Isolate* isolate, Local context, uint64_t id, Local signal) { + if (id == 0) { + return; + } + Local data = v8::Array::New(isolate, 2); + data->Set(context, 0, v8::Number::New(isolate, static_cast(id))).Check(); + data->Set(context, 1, signal).Check(); + Local listener; + Local add; + if (!v8::Function::New(context, AbortListener, data).ToLocal(&listener) || + !signal->Get(context, tns::ToV8String(isolate, "addEventListener")).ToLocal(&add) || + !add->IsFunction()) { + return; + } + Local options = Object::New(isolate); + options->Set(context, tns::ToV8String(isolate, "once"), v8::True(isolate)).Check(); + Local argv[] = {tns::ToV8String(isolate, "abort"), listener, options}; + (void)add.As()->Call(context, signal, 3, argv); +} + +// A Promise already rejected with an aborted signal's reason, or empty when +// `signal` is not aborted. +MaybeLocal AlreadyAborted(Isolate* isolate, Local context, Local signal) { + Local aborted; + Local reason; + Local resolver; + if (signal.IsEmpty() || + !signal->Get(context, tns::ToV8String(isolate, "aborted")).ToLocal(&aborted) || + !aborted->BooleanValue(isolate) || + !signal->Get(context, tns::ToV8String(isolate, "reason")).ToLocal(&reason) || + !Promise::Resolver::New(context).ToLocal(&resolver)) { + return MaybeLocal(); + } + resolver->Reject(context, reason).Check(); + return resolver->GetPromise(); +} + void MethodCallback(const FunctionCallbackInfo& info) { Isolate* isolate = info.GetIsolate(); const MemberGroup& all = *GroupOf(info); @@ -3326,17 +3659,27 @@ void MethodCallback(const FunctionCallbackInfo& info) { const MemberGroup& group = ForReceiver(isolate, all, receiver, storage); std::vector> arguments = ArgumentsOf(info, first); + Local context = isolate->GetCurrentContext(); + Local signal = TakeSignal(isolate, context, group, arguments); Selection selection; if (group.kind == NSSwiftMemberInstanceProperty) { // Enum instance properties are exposed as functions of the case name. selection.member = group.overloads[0]; - } else if (!Select(isolate, isolate->GetCurrentContext(), group, arguments, selection)) { + } else if (!Select(isolate, context, group, arguments, selection)) { return; } Local result; + if (AlreadyAborted(isolate, context, signal).ToLocal(&result)) { + info.GetReturnValue().Set(result); + return; + } + uint64_t asyncId = 0; if (Invoke(isolate, group, *selection.member, receiver, selection.arguments, false, - Local()) + Local(), &asyncId) .ToLocal(&result)) { + if (!signal.IsEmpty()) { + WatchSignal(isolate, context, asyncId, signal); + } info.GetReturnValue().Set(result); } } @@ -3356,6 +3699,8 @@ void ExactCallback(const FunctionCallbackInfo& info) { receiver = info.This(); } std::vector> arguments = ArgumentsOf(info, first); + Local context = isolate->GetCurrentContext(); + Local signal = TakeSignal(isolate, context, group, arguments); if (arguments.size() != member.signature.parameters.size()) { isolate->ThrowException(Exception::TypeError(tns::ToV8String( isolate, member.swiftName + " expects " + @@ -3363,8 +3708,16 @@ void ExactCallback(const FunctionCallbackInfo& info) { return; } Local result; - if (Invoke(isolate, group, member, receiver, arguments, false, Local()) + if (AlreadyAborted(isolate, context, signal).ToLocal(&result)) { + info.GetReturnValue().Set(result); + return; + } + uint64_t asyncId = 0; + if (Invoke(isolate, group, member, receiver, arguments, false, Local(), &asyncId) .ToLocal(&result)) { + if (!signal.IsEmpty()) { + WatchSignal(isolate, context, asyncId, signal); + } info.GetReturnValue().Set(result); } } @@ -3679,7 +4032,10 @@ bool HasSetter(const MemberGroup& group) const { } void InstallOnTemplate(Local tmpl, const MemberGroup& group) { - Local name = tns::ToV8String(_isolate, group.jsName); + // An AsyncSequence type's iterator (see SwiftSurface's kAsyncIteratorKey). + Local name = group.jsName == "@@asyncIterator" + ? Local(v8::Symbol::GetAsyncIterator(_isolate)) + : Local(tns::ToV8String(_isolate, group.jsName)); switch (group.kind) { case NSSwiftMemberInitializer: // Reached through `new`; see ConstructorCallback. diff --git a/TestRunner/app/tests/SwiftInteropTests.js b/TestRunner/app/tests/SwiftInteropTests.js index 4295f503..459b1325 100644 --- a/TestRunner/app/tests/SwiftInteropTests.js +++ b/TestRunner/app/tests/SwiftInteropTests.js @@ -9,7 +9,7 @@ describe("ns:swift", function () { it("exports a frozen loader", function () { expect(Object.isFrozen(swift)).toBe(true); expect(Object.keys(swift).sort()).toEqual(["abiVersion", "info", "module", "observe", "track"]); - expect(swift.abiVersion).toBe(13); + expect(swift.abiVersion).toBe(15); }); it("returns one frozen namespace per module", function () { @@ -20,7 +20,7 @@ describe("ns:swift", function () { it("describes the linked module", function () { var info = swift.info("SwiftDemo"); expect(info.name).toBe("SwiftDemo"); - expect(info.abiVersion).toBe(13); + expect(info.abiVersion).toBe(15); expect(info.fingerprint).toMatch(/^[0-9a-f]{16}$/); expect(info.members).toBeGreaterThan(0); }); @@ -462,6 +462,99 @@ describe("ns:swift", function () { }); }); + describe("operators and comparisons", function () { + it("calls operators as named methods", function () { + var a = new SwiftDemo.Vector2(1, 2); + var b = new SwiftDemo.Vector2(3, 4); + var sum = a.plus(b); + expect([sum.x, sum.y]).toEqual([4, 6]); + var negated = a.negated(); + expect([negated.x, negated.y]).toEqual([-1, -2]); + var scaled = SwiftDemo.Vector2.times(2, b); + expect([scaled.x, scaled.y]).toEqual([6, 8]); + var ring = new SwiftDemo.Ring(new SwiftDemo.Point(0, 0), new SwiftDemo.Point(1, 1)); + expect(ring.plus(ring) instanceof SwiftDemo.Ring).toBe(true); + }); + + it("compares values with equals() and compare()", function () { + expect(new SwiftDemo.Vector2(1, 2).equals(new SwiftDemo.Vector2(1, 2))).toBe(true); + expect(new SwiftDemo.Vector2(1, 2).equals(new SwiftDemo.Vector2(2, 1))).toBe(false); + var versions = [new SwiftDemo.Version(2, 0), new SwiftDemo.Version(1, 5), new SwiftDemo.Version(1, 10)]; + versions.sort(function (x, y) { return x.compare(y); }); + expect(versions.map(function (v) { return v.major + "." + v.minor; })) + .toEqual(["1.5", "1.10", "2.0"]); + expect(versions[0].lessThan(versions[1])).toBe(true); + expect(versions[1].equals(new SwiftDemo.Version(1, 10))).toBe(true); + }); + }); + + describe("subscripts", function () { + it("reads and assigns subscripts through subscript() and setSubscript()", function () { + var shelf = new SwiftDemo.Shelf(); + expect(shelf.subscript("apples")).toBeNull(); + shelf.setSubscript("apples", 3); + expect(shelf.subscript("apples")).toBe(3); + shelf.setSubscript("apples", null); + expect(shelf.subscript("apples")).toBeNull(); + expect(shelf.subscript(2, 5)).toBe("2,5"); + }); + + it("assigns a struct's subscript in place", function () { + var grid = new SwiftDemo.Grid(3); + grid.setSubscript(1, 7); + expect(grid.subscript(1)).toBe(7); + expect(grid.cells).toEqual([0, 7, 0]); + }); + + it("has no setter for a read-only subscript", function () { + var square = new SwiftDemo.Square(2); + expect(square.subscript(3).x).toBe(3); + expect(square.setSubscript).toBeUndefined(); + }); + }); + + describe("cancellation", function () { + it("rejects an aborted call with the signal's reason and cancels the task", function (done) { + var controller = new AbortController(); + var before = SwiftDemo.CancelLog.cancellations; + SwiftDemo.waitForCancel(10, controller.signal).then(function () { + done.fail("the call resolved"); + }, function (reason) { + expect(reason).toBe(controller.signal.reason); + setTimeout(function () { + expect(SwiftDemo.CancelLog.cancellations).toBe(before + 1); + done(); + }, 300); + }); + controller.abort(); + }); + + it("rejects at once when the signal is already aborted", function (done) { + var controller = new AbortController(); + controller.abort(new Error("stop")); + SwiftDemo.delayedEcho("x", 0.01, controller.signal).then(function () { + done.fail("the call resolved"); + }, function (reason) { + expect(reason.message).toBe("stop"); + done(); + }); + }); + + it("resolves calls whose signal is not aborted", function (done) { + var controller = new AbortController(); + SwiftDemo.delayedEcho("kept", 0.01, controller.signal).then(function (value) { + expect(value).toBe("kept"); + controller.abort(); + done(); + }, done.fail); + }); + + it("passes no signal to members that are not async", function () { + expect(function () { SwiftDemo.shout("a", new AbortController().signal); }) + .toThrowError(TypeError); + }); + }); + describe("enums with associated values", function () { it("returns cases as objects naming the case", function () { expect(SwiftDemo.measure(2, 3)).toEqual({ case: "area", width: 2, height: 3 }); @@ -686,6 +779,79 @@ describe("ns:swift", function () { }); }); + describe("JS implementations held by Swift", function () { + function makeGreeting(name) { + return { + name: name, + punctuation: "!", + greet: function (other) { return name + " greets " + other; }, + reset: function () {} + }; + } + + it("gives one JS object one Swift identity", function () { + var registry = new SwiftDemo.GreetingRegistry(); + var a = makeGreeting("a"); + var b = makeGreeting("b"); + registry.add(a); + registry.add(b); + registry.add(a); + expect(registry.count).toBe(3); + registry.remove(a); + expect(registry.count).toBe(1); + expect(registry.contains(a)).toBe(false); + expect(registry.contains(b)).toBe(true); + }); + + it("keeps a weakly held delegate while JS keeps it", function () { + var holder = new SwiftDemo.WeakGreetingHolder(); + var delegate = makeGreeting("weak"); + holder.greeting = delegate; + gc(); + gc(); + expect(holder.greet("x")).toBe("weak greets x"); + expect(holder.greeting).toBe(delegate); + }); + + it("lets a weakly held delegate go with its JS object", function (done) { + var holder = new SwiftDemo.WeakGreetingHolder(); + (function () { holder.greeting = makeGreeting("gone"); })(); + gc(); + setTimeout(function () { + gc(); + setTimeout(function () { + expect(holder.greet("x")).toBeNull(); + expect(holder.greeting).toBeNull(); + done(); + }, 0); + }, 0); + }); + + it("keeps a strongly held JS object alive until Swift lets it go", function (done) { + var holder = new SwiftDemo.GreetingHolder(); + var weak; + (function () { + var greeting = makeGreeting("strong"); + weak = new WeakRef(greeting); + holder.greeting = greeting; + })(); + setTimeout(function () { + gc(); + gc(); + expect(holder.greet("x")).toBe("strong greets x"); + holder.greeting = null; + setTimeout(function () { + gc(); + setTimeout(function () { + gc(); + expect(weak.deref()).toBeUndefined(); + done(); + }, 0); + }, 0); + }, 0); + }); + }); + describe("observation", function () { it("calls onChange once when a property read is about to change", function () { var thermostat = new SwiftDemo.Thermostat(); @@ -791,6 +957,70 @@ describe("ns:swift", function () { }); }); + describe("AsyncSequence types and publishers", function () { + it("iterates an AsyncSequence type with for await", function (done) { + var countdown = new SwiftDemo.Countdown(3); + expect(countdown.label).toBe("countdown from 3"); + (async function () { + var values = []; + for await (var value of countdown) { + values.push(value); + } + var words = []; + for await (var word of new SwiftDemo.WordStream("a b c")) { + words.push(word); + } + return [values, words]; + })().then(function (result) { + expect(result).toEqual([[3, 2, 1], ["a", "b", "c"]]); + done(); + }, done.fail); + }); + + it("ends the Swift stream when a for await loop breaks", function (done) { + var before = SwiftDemo.StreamLog.terminations; + (async function () { + var seen = []; + for await (var tick of SwiftDemo.ticker()) { + seen.push(tick); + if (tick === 3) { + break; + } + } + return seen; + })().then(function (seen) { + expect(seen).toEqual([1, 2, 3]); + setTimeout(function () { + expect(SwiftDemo.StreamLog.terminations).toBe(before + 1); + done(); + }, 200); + }, done.fail); + }); + + it("iterates a Combine publisher's values", function (done) { + var thermometer = new SwiftDemo.Thermometer(); + var readings = thermometer.readings; + var received = []; + (async function () { + for await (var reading of readings) { + received.push(reading); + } + })().then(function () { + expect(received).toEqual([20.5, 21]); + done(); + }, done.fail); + // A subject drops what it sends while nothing waits for a value, + // so each value goes out once the loop is waiting again. + setTimeout(function () { + thermometer.record(20.5); + setTimeout(function () { + thermometer.record(21); + setTimeout(function () { thermometer.finish(); }, 150); + }, 150); + }, 200); + }); + }); + describe("SwiftUI views", function () { it("hosts a view in a UIHostingController", function () { var badge = new SwiftDemo.Badge("Inbox", 3); @@ -1045,9 +1275,18 @@ describe("ns:swift", function () { expect(SwiftDemo.tagOf(label)).toBe(4); }); + it("takes arrays for collection protocols", function () { + expect(SwiftDemo.sumAll([1, 2, 3])).toBe(6); + expect(SwiftDemo.longestWord(["a", "abcd", "ab"])).toBe(4); + expect(SwiftDemo.firstElement(["x", "y"])).toBe("x"); + expect(SwiftDemo.firstElement([2.5])).toBe(2.5); + expect(SwiftDemo.firstElement([true])).toBe(true); + expect(SwiftDemo.joinAll(["a", "b"])).toBe("a,b"); + expect(SwiftDemo.evens(7)).toEqual([0, 2, 4, 6]); + }); + it("leaves functions without known stand-ins out", function () { expect(SwiftDemo.decodeJSON).toBeUndefined(); - expect(SwiftDemo.firstElement).toBeUndefined(); expect(SwiftDemo.joined).toBeUndefined(); }); }); diff --git a/docs/swift-interop.md b/docs/swift-interop.md index 9f2aa679..743b3c9a 100644 --- a/docs/swift-interop.md +++ b/docs/swift-interop.md @@ -132,8 +132,15 @@ the instantiation its arguments convert to; an array decides by its first element, so `largest([])` throws a `TypeError` naming the overloads' keys. At most one number type stands in, since a JS number converts to every one. +Collection protocols take JS arrays: a type parameter constrained to +`Sequence`, `Collection` or another protocol arrays conform to stands in as +`[X]` for `where C.Element == X`, or as arrays of the element's own stand-ins +(`C.Element` follows), and `some Sequence` as `[Int]`. A parameter typed +`any Sequence` (or another such protocol) takes an array, and a result of +that type is copied out as one. + A generic function is left out when a type parameter appears as a metatype -(`T.Type`) or through an associated type (`C.Element`), when it is +(`T.Type`) or through an associated type other than a collection's `Element`, when it is constrained by another module's protocol, when its arguments could not tell several instantiations apart (a type parameter only in the result or in a closure), or when it would need more than six instantiations (sixteen from a @@ -203,6 +210,18 @@ holds. the overloads' keys; call one directly by key: `polygon["scale(by: Int)"](2)`. Every overload is also reachable by its Swift name when that is unique (`demo["greet(name:times:)"]("a", 2)`). +- Operators are methods named for what they do: `a.plus(b)`, `a.minus(b)`, + `times`, `dividedBy`, `remainder`, `equals`, `lessThan`, + `lessThanOrEqualTo`, `greaterThan`, `greaterThanOrEqualTo`, and prefix + `negated()` / `not()`. One whose left operand is its own type is an instance + method of that operand; any other is static (`Vector2.times(2, v)`). + Compound assignment, bitwise and custom operators are not exposed. +- `Equatable` classes and structs (also through `Hashable` or `Comparable`) + get `equals(other)`, and `Comparable` ones `compare(other)` (-1, 0 or 1), + so `list.sort((a, b) => a.compare(b))` sorts by Swift's `<`. +- Subscripts are methods: `shelf.subscript("apples")` reads one and + `shelf.setSubscript("apples", 3)` assigns it (settable subscripts only), + overloaded like any method by their indices. - Initializers run through `new` and also accept one object naming every argument label: `new Point({ x: 2, y: 3 })`. A failable initializer that returns `nil` throws. @@ -306,8 +325,17 @@ the type has none. A protocol value returned to JS is the JS object it came from, a Swift object of its own registered class, or else a boxed value of the protocol. -Swift holds the adapter, and through it the JS object, as long as it keeps -the value; a `weak` reference does not keep it. + +A JS object has one adapter per protocol, so Swift sees one identity for it +(`===`, `removeAll { $0 === listener }`). Its lifetime follows NativeScript's +rule for the JS side of Objective-C objects: + +- While Swift holds the adapter strongly (`var delegate`), it keeps the JS + object alive. +- A `weak` reference (`weak var delegate`) keeps it only as long as JS does: + keep the delegate referenced from JS, as for Objective-C delegates. Once + the JS object is collected, the weak reference becomes `nil`. +- Once neither side holds it, both are collected. Protocols with associated types, `Self` requirements, static or `async` requirements, initializers, or more than one refined module protocol stay @@ -344,8 +372,17 @@ for await (const value of SwiftDemo.countUp(3)) { Each `next()` advances the Swift iterator in a `Task` and settles on the JS thread; calls run one at a time, in order. A sequence that throws rejects -the pending `next()` with the Swift error. Other `AsyncSequence` types, -sequences as parameters, and cancelling an iteration are not supported yet. +the pending `next()` with the Swift error. Leaving a `for await` loop early +(`break`, `return`, a throw) releases the Swift iterator, which ends a stream +Swift still produces (`onTermination` sees `.cancelled`). + +A class or struct conforming to `AsyncSequence` stays a JS class with its +other members and is also async-iterable (`for await (const x of countdown)`). +A Combine `AnyPublisher`, `PassthroughSubject` or `CurrentValueSubject` is an +async iterator over its `values` (iOS 15+, `null` before): like `values`, it +asks for one element at a time, so a subject drops what it sends while JS is +not waiting; buffer in Swift (`.buffer(...)`) when that matters. Sequences as +parameters are not supported yet. ## Observation @@ -374,6 +411,12 @@ Both need a loaded Swift module (its thunks carry the tracking code). synchronously, runs in a Swift `Task`, and settles the Promise on the calling isolate's thread (main or Worker); a `throw` rejects it with the Swift error. If the isolate is gone by then, the outcome is dropped. +- An `async` call takes an `AbortSignal` after its arguments: + `await fetchItems(query, controller.signal)`. Aborting rejects the Promise + at once with the signal's reason and cancels the Swift task, which stops + where it checks for cancellation (`Task.sleep`, `try Task.checkCancellation()`, + URLSession); whatever it reports afterwards is dropped. A signal already + aborted rejects without calling Swift. - Members of an `actor` are awaited from outside it, exactly as in Swift: `await counter.increment()`, `await counter.value`. Actor properties are never assignable from JavaScript. `nonisolated` members stay synchronous. @@ -432,10 +475,10 @@ verification is what makes the generated surface trustworthy at SDK scale. ## Not yet supported -Async cancellation, Combine publishers, concrete `AsyncSequence` types, -generic methods of generic types, other standard library generics, -protocols with associated types, subscripts and operators. Each appears in -the coverage report with its reason. +Generic methods of generic types, other standard library generics, +protocols with associated types as values or JS implementations (beyond the +collection protocols above), and Swift overlay members of SDK Objective-C +classes. Each appears in the coverage report with its reason. ## Swift language mode diff --git a/metadata-generator/TestFixtures/SwiftDemo/Interop/SwiftDemo+NativeScript.swift b/metadata-generator/TestFixtures/SwiftDemo/Interop/SwiftDemo+NativeScript.swift index 4e164eab..8ff40099 100644 --- a/metadata-generator/TestFixtures/SwiftDemo/Interop/SwiftDemo+NativeScript.swift +++ b/metadata-generator/TestFixtures/SwiftDemo/Interop/SwiftDemo+NativeScript.swift @@ -1,11 +1,14 @@ // Generated by objc-metadata-generator from the SwiftDemo symbol graphs. Do not edit. -// NativeScript Swift interop thunks, ABI 13: see NativeScript/runtime/SwiftInterop.h. +// NativeScript Swift interop thunks, ABI 15: see NativeScript/runtime/SwiftInterop.h. import Foundation #if canImport(Observation) import Observation #endif import SwiftDemo import SwiftDemoKit +#if canImport(Combine) +import Combine +#endif #if canImport(CoreGraphics) import CoreGraphics #endif @@ -268,6 +271,18 @@ private struct __NSCompletion: @unchecked Sendable, __NSReporter { let api: UnsafeRawPointer let token: UnsafeMutableRawPointer + // `cancel` runs when JS aborts the call (its AbortSignal); the runtime + // drops it once the call settles. + func onCancel(_ cancel: @escaping @Sendable () -> Void) { + let box = Unmanaged.passRetained(__NSCancellation(cancel)).toOpaque() + slot(56, (@convention(c) (UnsafeMutableRawPointer, UnsafeMutableRawPointer, + @convention(c) (UnsafeMutableRawPointer) -> Void, + @convention(c) (UnsafeMutableRawPointer) -> Void) -> Void).self)( + token, box, + { Unmanaged<__NSCancellation>.fromOpaque($0).takeUnretainedValue().cancel() }, + { Unmanaged<__NSCancellation>.fromOpaque($0).release() }) + } + private func slot(_ index: Int, _: Function.Type) -> Function { api.load(fromByteOffset: index * 8, as: Function.self) } @@ -400,6 +415,29 @@ private final class __NSCallback: @unchecked Sendable { } } +private final class __NSCancellation { + let cancel: @Sendable () -> Void + init(_ cancel: @escaping @Sendable () -> Void) { self.cancel = cancel } +} + +// The adapter of JS object argument `i`: the one already made for that JS +// object and protocol, so Swift sees one identity, or a new one the runtime +// keeps for as long as the JS object lives. +private func __nsAdapter(_ slots: __NSSlots, _ i: Int, + _ make: (__NSJSObject) -> A) -> A { + let handle = slots.callback(i) + let existing = slots.api.load(fromByteOffset: 54 * 8, + as: (@convention(c) (UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?).self)(handle) + if let existing, let adapter = Unmanaged.fromOpaque(existing).takeUnretainedValue() as? A { + return adapter + } + let adapter = make(__NSJSObject(api: slots.api, handle: handle)) + slots.api.load(fromByteOffset: 55 * 8, + as: (@convention(c) (UnsafeMutableRawPointer, UnsafeMutableRawPointer) -> Void).self)( + handle, Unmanaged.passRetained(adapter).toOpaque()) + return adapter +} + // A JS object implementing a protocol; adapters call its members. Calls from // other threads run on the isolate's thread and wait for it. private final class __NSJSObject: @unchecked Sendable { @@ -561,7 +599,7 @@ private func __nsReportCase11(_ r: R, _ value: SwiftDemo.ShapeE } // s:9SwiftDemo11MeasurementO -private func __nsReadCase13(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Measurement? { +private func __nsReadCase15(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Measurement? { let (s, _) = slots.elements(i) switch s.int64(0) { case 0: @@ -577,7 +615,7 @@ private func __nsReadCase13(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Measureme } } -private func __nsReportCase13(_ r: R, _ value: SwiftDemo.Measurement) { +private func __nsReportCase15(_ r: R, _ value: SwiftDemo.Measurement) { switch value { case let SwiftDemo.Measurement.`area`(p0, p1): r.returnCase(0) { r.returnDouble(Double(p0)); r.returnDouble(Double(p1)) } case SwiftDemo.Measurement.`none`: r.returnCase(1) { } @@ -587,7 +625,7 @@ private func __nsReportCase13(_ r: R, _ value: SwiftDemo.Measur } // s:9SwiftDemo13PrecipitationO -private func __nsEnum17(_ name: String) -> SwiftDemo.Precipitation? { +private func __nsEnum20(_ name: String) -> SwiftDemo.Precipitation? { switch name { case "rain": return SwiftDemo.Precipitation.`rain` case "snow": return SwiftDemo.Precipitation.`snow` @@ -596,7 +634,7 @@ private func __nsEnum17(_ name: String) -> SwiftDemo.Precipitation? { } } -private func __nsEnumName17(_ value: SwiftDemo.Precipitation) -> String { +private func __nsEnumName20(_ value: SwiftDemo.Precipitation) -> String { switch value { case SwiftDemo.Precipitation.`rain`: return "rain" case SwiftDemo.Precipitation.`snow`: return "snow" @@ -606,7 +644,7 @@ private func __nsEnumName17(_ value: SwiftDemo.Precipitation) -> String { } // s:9SwiftDemo6FlavorO -private func __nsEnum28(_ name: String) -> SwiftDemo.Flavor? { +private func __nsEnum35(_ name: String) -> SwiftDemo.Flavor? { switch name { case "vanilla": return SwiftDemo.Flavor.`vanilla` case "chocolate": return SwiftDemo.Flavor.`chocolate` @@ -614,7 +652,7 @@ private func __nsEnum28(_ name: String) -> SwiftDemo.Flavor? { } } -private func __nsEnumName28(_ value: SwiftDemo.Flavor) -> String { +private func __nsEnumName35(_ value: SwiftDemo.Flavor) -> String { switch value { case SwiftDemo.Flavor.`vanilla`: return "vanilla" case SwiftDemo.Flavor.`chocolate`: return "chocolate" @@ -623,15 +661,15 @@ private func __nsEnumName28(_ value: SwiftDemo.Flavor) -> String { } // s:9SwiftDemo7FormulaO -private func __nsReadCase33(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Formula? { +private func __nsReadCase40(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Formula? { let (s, _) = slots.elements(i) switch s.int64(0) { case 0: - guard let e0 = __nsReadCase33(s, 1) else { return nil } - guard let e1 = __nsReadCase33(s, 2) else { return nil } + guard let e0 = __nsReadCase40(s, 1) else { return nil } + guard let e1 = __nsReadCase40(s, 2) else { return nil } return SwiftDemo.Formula.`sum`(e0, e1) case 1: - guard let e0 = __nsReadCase33(s, 1) else { return nil } + guard let e0 = __nsReadCase40(s, 1) else { return nil } return SwiftDemo.Formula.`negate`(e0) case 2: let e0 = s.double(1) @@ -640,17 +678,17 @@ private func __nsReadCase33(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Formula? } } -private func __nsReportCase33(_ r: R, _ value: SwiftDemo.Formula) { +private func __nsReportCase40(_ r: R, _ value: SwiftDemo.Formula) { switch value { - case let SwiftDemo.Formula.`sum`(p0, p1): r.returnCase(0) { __nsReportCase33(r, p0); __nsReportCase33(r, p1) } - case let SwiftDemo.Formula.`negate`(p0): r.returnCase(1) { __nsReportCase33(r, p0) } + case let SwiftDemo.Formula.`sum`(p0, p1): r.returnCase(0) { __nsReportCase40(r, p0); __nsReportCase40(r, p1) } + case let SwiftDemo.Formula.`negate`(p0): r.returnCase(1) { __nsReportCase40(r, p0) } case let SwiftDemo.Formula.`number`(p0): r.returnCase(2) { r.returnDouble(Double(p0)) } @unknown default: r.returnNull() } } // s:9SwiftDemo7PayloadO -private func __nsReadCase36(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Payload? { +private func __nsReadCase43(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Payload? { let (s, _) = slots.elements(i) switch s.int64(0) { case 0: @@ -663,7 +701,7 @@ private func __nsReadCase36(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Payload? guard let e0 = (s.object(1) as? __NSBox)?.value else { return nil } return SwiftDemo.Payload.`point`(e0) case 3: - guard let e0 = __nsEnum28(s.string(1)) else { return nil } + guard let e0 = __nsEnum35(s.string(1)) else { return nil } return SwiftDemo.Payload.`flavor`(e0) case 4: guard let e0 = s.object(1) as? SwiftDemo.Tracker else { return nil } @@ -672,19 +710,19 @@ private func __nsReadCase36(_ slots: __NSSlots, _ i: Int) -> SwiftDemo.Payload? } } -private func __nsReportCase36(_ r: R, _ value: SwiftDemo.Payload) { +private func __nsReportCase43(_ r: R, _ value: SwiftDemo.Payload) { switch value { case let SwiftDemo.Payload.`maybe`(p0): r.returnCase(0) { if let p0 { r.returnInt64(Int64(p0)) } else { r.returnNull() } } case let SwiftDemo.Payload.`names`(p0): r.returnCase(1) { r.returnArray(p0) { element in r.returnString(element) } } - case let SwiftDemo.Payload.`point`(p0): r.returnCase(2) { r.returnObject(__NSBox(p0), 26) } - case let SwiftDemo.Payload.`flavor`(p0): r.returnCase(3) { r.returnString(__nsEnumName28(p0)) } - case let SwiftDemo.Payload.`tracker`(p0): r.returnCase(4) { r.returnObject(p0, __nsTypeIndex(p0, 40)) } + case let SwiftDemo.Payload.`point`(p0): r.returnCase(2) { r.returnObject(__NSBox(p0), 32) } + case let SwiftDemo.Payload.`flavor`(p0): r.returnCase(3) { r.returnString(__nsEnumName35(p0)) } + case let SwiftDemo.Payload.`tracker`(p0): r.returnCase(4) { r.returnObject(p0, __nsTypeIndex(p0, 47)) } @unknown default: r.returnNull() } } // s:9SwiftDemo7PolygonC5StyleO -private func __nsEnum38(_ name: String) -> SwiftDemo.Polygon.Style? { +private func __nsEnum45(_ name: String) -> SwiftDemo.Polygon.Style? { switch name { case "solid": return SwiftDemo.Polygon.Style.`solid` case "dashed": return SwiftDemo.Polygon.Style.`dashed` @@ -692,7 +730,7 @@ private func __nsEnum38(_ name: String) -> SwiftDemo.Polygon.Style? { } } -private func __nsEnumName38(_ value: SwiftDemo.Polygon.Style) -> String { +private func __nsEnumName45(_ value: SwiftDemo.Polygon.Style) -> String { switch value { case SwiftDemo.Polygon.Style.`solid`: return "solid" case SwiftDemo.Polygon.Style.`dashed`: return "dashed" @@ -701,7 +739,7 @@ private func __nsEnumName38(_ value: SwiftDemo.Polygon.Style) -> String { } // s:9SwiftDemo12RankedScorerP -private final class __NSAdapter16: SwiftDemo.RankedScorer, @unchecked Sendable { +private final class __NSAdapter19: SwiftDemo.RankedScorer, @unchecked Sendable { let object: __NSJSObject init(_ object: __NSJSObject) { self.object = object } func `score`(_ p0: Int) throws -> Int { @@ -718,22 +756,22 @@ private final class __NSAdapter16: SwiftDemo.RankedScorer, @unchecked Sendable { } } -private func __nsProtocol16(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.RankedScorer)? { +private func __nsProtocol19(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.RankedScorer)? { if slots.tag(i) == 12 { - return __NSAdapter16(__NSJSObject(api: slots.api, handle: slots.callback(i))) + return __nsAdapter(slots, i) { __NSAdapter19($0) } } let object = slots.object(i) if let box = object as? __NSAnyBox { return box.anyValue as? any SwiftDemo.RankedScorer } return object as? any SwiftDemo.RankedScorer } -private func __nsReportProtocol16(_ r: R, _ value: any SwiftDemo.RankedScorer) { - if let adapter = value as? __NSAdapter16 { return r.returnJSObject(adapter.object) } - r.returnObject(__NSBox(value), 16) +private func __nsReportProtocol19(_ r: R, _ value: any SwiftDemo.RankedScorer) { + if let adapter = value as? __NSAdapter19 { return r.returnJSObject(adapter.object) } + r.returnObject(__NSBox(value), 19) } // s:9SwiftDemo6ScorerP -private final class __NSAdapter30: SwiftDemo.Scorer, @unchecked Sendable { +private final class __NSAdapter37: SwiftDemo.Scorer, @unchecked Sendable { let object: __NSJSObject init(_ object: __NSJSObject) { self.object = object } func `score`(_ p0: Int) throws -> Int { @@ -743,23 +781,23 @@ private final class __NSAdapter30: SwiftDemo.Scorer, @unchecked Sendable { } } -private func __nsProtocol30(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Scorer)? { +private func __nsProtocol37(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Scorer)? { if slots.tag(i) == 12 { - return __NSAdapter30(__NSJSObject(api: slots.api, handle: slots.callback(i))) + return __nsAdapter(slots, i) { __NSAdapter37($0) } } let object = slots.object(i) if let box = object as? __NSAnyBox { return box.anyValue as? any SwiftDemo.Scorer } return object as? any SwiftDemo.Scorer } -private func __nsReportProtocol30(_ r: R, _ value: any SwiftDemo.Scorer) { - if let adapter = value as? __NSAdapter30 { return r.returnJSObject(adapter.object) } - if let v = value as? SwiftDemo.DoublingScorer { return r.returnObject(__NSBox(v), 19) } - r.returnObject(__NSBox(value), 30) +private func __nsReportProtocol37(_ r: R, _ value: any SwiftDemo.Scorer) { + if let adapter = value as? __NSAdapter37 { return r.returnJSObject(adapter.object) } + if let v = value as? SwiftDemo.DoublingScorer { return r.returnObject(__NSBox(v), 22) } + r.returnObject(__NSBox(value), 37) } // s:9SwiftDemo7GreeterP -private final class __NSAdapter34: SwiftDemo.Greeter, @unchecked Sendable { +private final class __NSAdapter41: SwiftDemo.Greeter, @unchecked Sendable { let object: __NSJSObject init(_ object: __NSJSObject) { self.object = object } func `greet`(`name` p0: String) -> String { @@ -769,24 +807,24 @@ private final class __NSAdapter34: SwiftDemo.Greeter, @unchecked Sendable { } } -private func __nsProtocol34(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Greeter)? { +private func __nsProtocol41(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Greeter)? { if slots.tag(i) == 12 { - return __NSAdapter34(__NSJSObject(api: slots.api, handle: slots.callback(i))) + return __nsAdapter(slots, i) { __NSAdapter41($0) } } let object = slots.object(i) if let box = object as? __NSAnyBox { return box.anyValue as? any SwiftDemo.Greeter } return object as? any SwiftDemo.Greeter } -private func __nsReportProtocol34(_ r: R, _ value: any SwiftDemo.Greeter) { - if let adapter = value as? __NSAdapter34 { return r.returnJSObject(adapter.object) } - if let v = value as? SwiftDemo.Square { return r.returnObject(v, __nsTypeIndex(v, 31)) } +private func __nsReportProtocol41(_ r: R, _ value: any SwiftDemo.Greeter) { + if let adapter = value as? __NSAdapter41 { return r.returnJSObject(adapter.object) } + if let v = value as? SwiftDemo.Square { return r.returnObject(v, __nsTypeIndex(v, 38)) } if let v = value as? SwiftDemo.Demo { return r.returnObject(v, __nsTypeIndex(v, 10)) } - r.returnObject(__NSBox(value), 34) + r.returnObject(__NSBox(value), 41) } // s:9SwiftDemo8GreetingP -private final class __NSAdapter41: SwiftDemo.Greeting, @unchecked Sendable { +private final class __NSAdapter50: SwiftDemo.Greeting, @unchecked Sendable { let object: __NSJSObject init(_ object: __NSJSObject) { self.object = object } var `punctuation`: String { @@ -816,25 +854,25 @@ private final class __NSAdapter41: SwiftDemo.Greeting, @unchecked Sendable { } } -private func __nsProtocol41(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Greeting)? { +private func __nsProtocol50(_ slots: __NSSlots, _ i: Int) -> (any SwiftDemo.Greeting)? { if slots.tag(i) == 12 { - return __NSAdapter41(__NSJSObject(api: slots.api, handle: slots.callback(i))) + return __nsAdapter(slots, i) { __NSAdapter50($0) } } let object = slots.object(i) if let box = object as? __NSAnyBox { return box.anyValue as? any SwiftDemo.Greeting } return object as? any SwiftDemo.Greeting } -private func __nsReportProtocol41(_ r: R, _ value: any SwiftDemo.Greeting) { - if let adapter = value as? __NSAdapter41 { return r.returnJSObject(adapter.object) } - if let v = value as? SwiftDemo.FormalGreeting { return r.returnObject(v, __nsTypeIndex(v, 20)) } - r.returnObject(__NSBox(value), 41) +private func __nsReportProtocol50(_ r: R, _ value: any SwiftDemo.Greeting) { + if let adapter = value as? __NSAdapter50 { return r.returnJSObject(adapter.object) } + if let v = value as? SwiftDemo.FormalGreeting { return r.returnObject(v, __nsTypeIndex(v, 23)) } + r.returnObject(__NSBox(value), 50) } private func __nsTypeIndex(_ object: AnyObject, _ declared: UInt32) -> UInt32 { if object is SwiftDemo.CounterView { return 0 } if object is SwiftDemo.Note { return 1 } - if object is SwiftDemo.Square { return 31 } + if object is SwiftDemo.Square { return 38 } return declared } @@ -1238,15 +1276,53 @@ private func __nsThunk46(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint rt.returnObject(result, __nsTypeIndex(result, 12)) } -// s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF +// s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF private func __nsThunk47(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.WordStream else { return rt.throwTypeError("receiver must be SwiftDemo.WordStream") } + let result: SwiftDemo.WordStream.Iterator = receiver.`makeAsyncIterator`() + rt.returnObject(__NSBox(result), 14) +} + +// s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF +private func __nsThunk48(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.WordStream.Iterator") } + let completion = rt.beginAsync() + let captured = __NSUnchecked(box) + let task = Task { + let box = captured.value + do { + let result: String? = try await box.value.`next`() + if let result { + completion.returnString(result) + } else { + completion.returnNull() + } + } catch { + completion.throwError(error) + } + } + completion.onCancel { task.cancel() } +} + +// s:9SwiftDemo10WordStreamCyACSScfc +private func __nsThunk49(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = rt.slots.string(0) + let result: SwiftDemo.WordStream = SwiftDemo.WordStream(a0) + rt.returnObject(result, __nsTypeIndex(result, 13)) +} + +// s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF +private func __nsThunk50(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: [SwiftDemo.Flavor] = SwiftDemo.`allFlavors`() - rt.returnArray(result) { element in rt.returnString(__nsEnumName28(element)) } + rt.returnArray(result) { element in rt.returnString(__nsEnumName35(element)) } } // s:9SwiftDemo10checkSidesys6ResultOyytAA10ShapeErrorOGSiF -private func __nsThunk48(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk51(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: Result = SwiftDemo.`checkSides`(a0) @@ -1254,7 +1330,7 @@ private func __nsThunk48(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10echoStringyS2SF -private func __nsThunk49(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk52(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: String = SwiftDemo.`echoString`(a0) @@ -1262,7 +1338,7 @@ private func __nsThunk49(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10echoUInt64ys0D0VADF -private func __nsThunk50(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk53(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.uint64(0) let result: UInt64 = SwiftDemo.`echoUInt64`(a0) @@ -1270,7 +1346,7 @@ private func __nsThunk50(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10firstMatch_5whereSiSgSaySiG_SbSiKXEtKF -private func __nsThunk51(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk54(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 1 must be an array of Int") } let a1 = { () -> (Int) throws -> Bool in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Int) throws -> Bool in let result: Bool? = callback.call({ r in r.returnInt64(Int64(p0)) }, { (s: __NSSlots) -> Bool? in s.bool(0) }); guard let result else { throw __NSJSError(requirement: "a closure") }; return result } }() @@ -1287,7 +1363,7 @@ private func __nsThunk51(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10greetLater_10completionySSSg_yADYbctF -private func __nsThunk52(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk55(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.isNull(0) ? nil : rt.slots.string(0) let a1 = { () -> @Sendable (String?) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: String?) in callback.invoke { r in if let p0 { r.returnString(p0) } else { r.returnNull() } } } }() @@ -1296,69 +1372,72 @@ private func __nsThunk52(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF@ -private func __nsThunk53(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk56(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let a1 = rt.slots.string(1) let result: String = SwiftDemo.`greetTwice`(a0, a1) rt.returnString(result) } // s:9SwiftDemo10largestIntSiyF -private func __nsThunk54(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk57(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: Int = SwiftDemo.`largestInt`() rt.returnInt64(Int64(result)) } // s:9SwiftDemo10makeScorerAA0D0_pyF -private func __nsThunk55(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk58(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: any SwiftDemo.Scorer = SwiftDemo.`makeScorer`() - __nsReportProtocol30(rt, result) + __nsReportProtocol37(rt, result) } // s:9SwiftDemo10namesLaterySaySSGSiYaF -private func __nsThunk56(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk59(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: [String] = await SwiftDemo.`namesLater`(a0) completion.returnArray(result) { element in completion.returnString(element) } } + completion.onCancel { task.cancel() } } // s:9SwiftDemo10parseLaterys6ResultOySis5Error_pGSSYaF -private func __nsThunk57(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk60(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: Result = await SwiftDemo.`parseLater`(a0) switch result { case .success(let t1v): completion.returnCase(0) { completion.returnInt64(Int64(t1v)) }; case .failure(let t1e): completion.returnCase(1) { completion.returnErrorValue(t1e) } } } + completion.onCancel { task.cancel() } } // s:9SwiftDemo10tallyLateryShySSG6unique_Si5counttSaySSGYaF -private func __nsThunk58(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk61(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: (unique: Set, count: Int) = await SwiftDemo.`tallyLater`(a0) completion.returnTuple(2) { completion.returnArray(result.0) { element in completion.returnString(element) }; completion.returnInt64(Int64(result.1)) } } + completion.onCancel { task.cancel() } } // s:9SwiftDemo10uniqueTagsyShySSGSaySSGF -private func __nsThunk59(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk62(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } let result: Set = SwiftDemo.`uniqueTags`(a0) @@ -1366,7 +1445,7 @@ private func __nsThunk59(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo10wordCountsySDySSSiGSaySSGF -private func __nsThunk60(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk63(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } let result: [String: Int] = SwiftDemo.`wordCounts`(a0) @@ -1374,7 +1453,7 @@ private func __nsThunk60(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11CounterViewC5countSivp -private func __nsThunk61(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk64(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.CounterView else { return rt.throwTypeError("receiver must be SwiftDemo.CounterView") } guard Thread.isMainThread else { return rt.throwMessage("count is isolated to the main actor; call it on the main thread") } @@ -1385,7 +1464,7 @@ private func __nsThunk61(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF -private func __nsThunk62(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk65(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.CounterView else { return rt.throwTypeError("receiver must be SwiftDemo.CounterView") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -1398,15 +1477,15 @@ private func __nsThunk62(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc -private func __nsThunk63(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk66(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Measurement.Unit = SwiftDemo.Measurement.Unit(symbol: a0) - rt.returnObject(__NSBox(result), 14) + rt.returnObject(__NSBox(result), 16) } // s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp -private func __nsThunk64(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk67(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Measurement.Unit") } let result: String = box.value.`symbol` @@ -1414,7 +1493,7 @@ private func __nsThunk64(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp (setter) -private func __nsThunk65(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk68(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Measurement.Unit") } let newValue = rt.slots.string(1) @@ -1423,15 +1502,47 @@ private func __nsThunk65(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11MeasurementO6isNoneSbvp -private func __nsThunk66(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk69(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsReadCase13(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Measurement") } + guard let receiver = __nsReadCase15(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Measurement") } let result: Bool = receiver.`isNone` rt.returnBool(result) } +// s:9SwiftDemo11ThermometerC6finishyyF +private func __nsThunk70(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Thermometer else { return rt.throwTypeError("receiver must be SwiftDemo.Thermometer") } + let _: Void = receiver.`finish`() + rt.returnVoid() +} + +// s:9SwiftDemo11ThermometerC6recordyySdF +private func __nsThunk71(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Thermometer else { return rt.throwTypeError("receiver must be SwiftDemo.Thermometer") } + let a0 = rt.slots.double(1) + let _: Void = receiver.`record`(a0) + rt.returnVoid() +} + +// s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp +private func __nsThunk72(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Thermometer else { return rt.throwTypeError("receiver must be SwiftDemo.Thermometer") } + let result: AnyPublisher = receiver.`readings` + if #available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *) { rt.returnAsyncSequence(__NSAsyncIterator(result.values) { r, element in r.returnDouble(Double(element)) }) } else { rt.returnNull() } +} + +// s:9SwiftDemo11ThermometerCACycfc +private func __nsThunk73(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: SwiftDemo.Thermometer = SwiftDemo.Thermometer() + rt.returnObject(result, __nsTypeIndex(result, 17)) +} + // s:9SwiftDemo11checkedSideyS2dKF -private func __nsThunk67(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk74(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) do { @@ -1443,7 +1554,7 @@ private func __nsThunk67(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11countUniqueySiShySiGF -private func __nsThunk68(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk75(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }).map({ Set($0) }) else { return rt.throwTypeError("argument 1 must be Set") } let result: Int = SwiftDemo.`countUnique`(a0) @@ -1451,13 +1562,13 @@ private func __nsThunk68(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11delayedEcho_5afterS2S_SdtYaKF -private func __nsThunk69(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk76(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = rt.slots.double(1) let completion = rt.beginAsync() let captured = __NSUnchecked((a0, a1)) - Task { + let task = Task { let (a0, a1) = captured.value do { let result: String = try await SwiftDemo.`delayedEcho`(a0, after: a1) @@ -1466,18 +1577,27 @@ private func __nsThunk69(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint completion.throwError(error) } } + completion.onCancel { task.cancel() } } // s:9SwiftDemo11knownScoresySDySSSiSgGADF -private func __nsThunk70(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk77(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadMap(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int?? in if s.isNull(j) { return .some(nil) }; return .some(Int(truncatingIfNeeded: s.int64(j))) }) else { return rt.throwTypeError("argument 1 must be an object whose values are Int or null") } let result: [String: Int?] = SwiftDemo.`knownScores`(a0) rt.returnMap(result) { key, element in rt.returnString(key); if let element { rt.returnInt64(Int64(element)) } else { rt.returnNull() } } } +// s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF@<[s:SS]> +private func __nsThunk78(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } + let result: Int = SwiftDemo.`longestWord`(a0) + rt.returnInt64(Int64(result)) +} + // s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF -private func __nsThunk71(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk79(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: Result = SwiftDemo.`parseNumber`(a0) @@ -1485,7 +1605,7 @@ private func __nsThunk71(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo11sortedNames_2bySaySSGAD_SbSS_SStXEtF -private func __nsThunk72(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk80(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } let a1 = { () -> (String, String) -> Bool in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: String, p1: String) -> Bool in let result: Bool? = callback.call({ r in r.returnString(p0); r.returnString(p1) }, { (s: __NSSlots) -> Bool? in s.bool(0) }); guard let result else { return false }; return result } }() @@ -1494,7 +1614,7 @@ private func __nsThunk72(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo12ParseFailureV11descriptionSSvp -private func __nsThunk73(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk81(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.ParseFailure") } let result: String = box.value.`description` @@ -1502,7 +1622,7 @@ private func __nsThunk73(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo12ParseFailureV4textSSvp -private func __nsThunk74(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk82(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.ParseFailure") } let result: String = box.value.`text` @@ -1510,9 +1630,9 @@ private func __nsThunk74(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo12RankedScorerP4rankSiSgvp -private func __nsThunk75(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk83(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol16(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.RankedScorer") } + guard let receiver = __nsProtocol19(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.RankedScorer") } let result: Int? = receiver.`rank` if let result { rt.returnInt64(Int64(result)) @@ -1521,8 +1641,44 @@ private func __nsThunk75(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } } +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:SS]> +private func __nsThunk84(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } + let result: String? = SwiftDemo.`firstElement`(a0) + if let result { + rt.returnString(result) + } else { + rt.returnNull() + } +} + +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sb]> +private func __nsThunk85(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Bool? in s.bool(j) }) else { return rt.throwTypeError("argument 1 must be an array of Bool") } + let result: Bool? = SwiftDemo.`firstElement`(a0) + if let result { + rt.returnBool(result) + } else { + rt.returnNull() + } +} + +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sd]> +private func __nsThunk86(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Double? in s.double(j) }) else { return rt.throwTypeError("argument 1 must be an array of Double") } + let result: Double? = SwiftDemo.`firstElement`(a0) + if let result { + rt.returnDouble(Double(result)) + } else { + rt.returnNull() + } +} + // s:9SwiftDemo12firstSubview2ofSo6UIViewCSgAE_tF -private func __nsThunk76(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk87(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? UIView else { return rt.throwTypeError("argument 1 must be a UIView") } let result: UIView? = SwiftDemo.`firstSubview`(of: a0) @@ -1534,7 +1690,7 @@ private func __nsThunk76(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo12latitudeSpanySdSo22CLLocationCoordinate2DV_ADtF -private func __nsThunk77(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk88(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = ({ () -> (latitude: Double, longitude: Double)? in let (t3, t3n) = rt.slots.elements(0) @@ -1555,67 +1711,68 @@ private func __nsThunk77(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo12makeGreetingyAA0D0_pSSF -private func __nsThunk78(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk89(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: any SwiftDemo.Greeting = SwiftDemo.`makeGreeting`(a0) - __nsReportProtocol41(rt, result) + __nsReportProtocol50(rt, result) } // s:9SwiftDemo12measureLateryAA11MeasurementOSdYaF -private func __nsThunk79(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk90(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: SwiftDemo.Measurement = await SwiftDemo.`measureLater`(a0) - __nsReportCase13(completion, result) + __nsReportCase15(completion, result) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo12measurementsSayAA11MeasurementOGyF -private func __nsThunk80(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk91(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: [SwiftDemo.Measurement] = SwiftDemo.`measurements`() - rt.returnArray(result) { element in __nsReportCase13(rt, element) } + rt.returnArray(result) { element in __nsReportCase15(rt, element) } } // s:9SwiftDemo12swapTrackersyyAA7TrackerCz_ADztF -private func __nsThunk81(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk92(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let v0 = rt.slots.object(0) as? SwiftDemo.Tracker else { return rt.throwTypeError("argument 1 must be SwiftDemo.Tracker") } var a0 = v0 guard let v1 = rt.slots.object(1) as? SwiftDemo.Tracker else { return rt.throwTypeError("argument 2 must be SwiftDemo.Tracker") } var a1 = v1 let _: Void = SwiftDemo.`swapTrackers`(&a0, &a1) - rt.writeBack(0) { rt.returnObject(a0, __nsTypeIndex(a0, 40)) } - rt.writeBack(1) { rt.returnObject(a1, __nsTypeIndex(a1, 40)) } + rt.writeBack(0) { rt.returnObject(a0, __nsTypeIndex(a0, 47)) } + rt.writeBack(1) { rt.returnObject(a1, __nsTypeIndex(a1, 47)) } rt.returnVoid() } // s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc -private func __nsThunk82(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk93(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Precipitation? = SwiftDemo.Precipitation(rawValue: a0) if let result { - rt.returnString(__nsEnumName17(result)) + rt.returnString(__nsEnumName20(result)) } else { rt.returnNull() } } // s:9SwiftDemo13defaultFlavorAA0D0Ovp -private func __nsThunk83(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk94(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Flavor = SwiftDemo.`defaultFlavor` - rt.returnString(__nsEnumName28(result)) + rt.returnString(__nsEnumName35(result)) } // s:9SwiftDemo13describeErrorySSs0D0_pSgF -private func __nsThunk84(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk95(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.isNull(0) ? nil : __NSJSValueError(message: rt.slots.string(0)) let result: String = SwiftDemo.`describeError`(a0) @@ -1623,7 +1780,7 @@ private func __nsThunk84(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -private func __nsThunk85(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk96(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: String = SwiftDemo.`describeValue`(a0) @@ -1631,7 +1788,7 @@ private func __nsThunk85(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -private func __nsThunk86(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk97(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.bool(0) let result: String = SwiftDemo.`describeValue`(a0) @@ -1639,7 +1796,7 @@ private func __nsThunk86(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -private func __nsThunk87(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk98(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let result: String = SwiftDemo.`describeValue`(a0) @@ -1647,14 +1804,14 @@ private func __nsThunk87(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo13globalCounterSivp -private func __nsThunk88(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk99(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: Int = SwiftDemo.`globalCounter` rt.returnInt64(Int64(result)) } // s:9SwiftDemo13globalCounterSivp (setter) -private func __nsThunk89(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk100(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let newValue = Int(truncatingIfNeeded: rt.slots.int64(0)) SwiftDemo.`globalCounter` = newValue @@ -1662,15 +1819,29 @@ private func __nsThunk89(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo13starterWallet3for0aB3Kit0D0CSS_tF -private func __nsThunk90(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk101(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemoKit.Wallet = SwiftDemo.`starterWallet`(for: a0) rt.returnObject(result, __nsTypeIndex(result, 8)) } +// s:9SwiftDemo13waitForCancelySbSdYaF +private func __nsThunk102(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = rt.slots.double(0) + let completion = rt.beginAsync() + let captured = __NSUnchecked(a0) + let task = Task { + let a0 = captured.value + let result: Bool = await SwiftDemo.`waitForCancel`(a0) + completion.returnBool(result) + } + completion.onCancel { task.cancel() } +} + // s:9SwiftDemo14DoublingScorerV5scoreyS2iF -private func __nsThunk91(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk103(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.DoublingScorer") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -1679,14 +1850,14 @@ private func __nsThunk91(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14DoublingScorerVACycfc -private func __nsThunk92(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk104(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.DoublingScorer = SwiftDemo.DoublingScorer() - rt.returnObject(__NSBox(result), 19) + rt.returnObject(__NSBox(result), 22) } // s:9SwiftDemo14FormalGreetingC11punctuationSSvp -private func __nsThunk93(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk105(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let result: String = receiver.`punctuation` @@ -1694,7 +1865,7 @@ private func __nsThunk93(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14FormalGreetingC11punctuationSSvp (setter) -private func __nsThunk94(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk106(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let newValue = rt.slots.string(1) @@ -1703,15 +1874,15 @@ private func __nsThunk94(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc -private func __nsThunk95(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk107(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.FormalGreeting = SwiftDemo.FormalGreeting(name: a0) - rt.returnObject(result, __nsTypeIndex(result, 20)) + rt.returnObject(result, __nsTypeIndex(result, 23)) } // s:9SwiftDemo14FormalGreetingC4nameSSvp -private func __nsThunk96(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk108(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let result: String = receiver.`name` @@ -1719,7 +1890,7 @@ private func __nsThunk96(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14FormalGreetingC5greetyS2SF -private func __nsThunk97(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk109(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let a0 = rt.slots.string(1) @@ -1728,7 +1899,7 @@ private func __nsThunk97(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14FormalGreetingC5resetyyF -private func __nsThunk98(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk110(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let _: Void = receiver.`reset`() @@ -1736,7 +1907,7 @@ private func __nsThunk98(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14GreetingHolderC5greetySSSgSSF -private func __nsThunk99(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk111(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.GreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingHolder") } let a0 = rt.slots.string(1) @@ -1749,24 +1920,24 @@ private func __nsThunk99(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoint } // s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp -private func __nsThunk100(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk112(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.GreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingHolder") } let result: (any SwiftDemo.Greeting)? = receiver.`greeting` if let result { - __nsReportProtocol41(rt, result) + __nsReportProtocol50(rt, result) } else { rt.returnNull() } } // s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp (setter) -private func __nsThunk101(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk113(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.GreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingHolder") } var newValue: SwiftDemo.Greeting? = nil if !rt.slots.isNull(1) { - guard let value = __nsProtocol41(rt.slots, 1) else { return rt.throwTypeError("value must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let value = __nsProtocol50(rt.slots, 1) else { return rt.throwTypeError("value must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } newValue = value } receiver.`greeting` = newValue @@ -1774,68 +1945,158 @@ private func __nsThunk101(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo14GreetingHolderCACycfc -private func __nsThunk102(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk114(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.GreetingHolder = SwiftDemo.GreetingHolder() - rt.returnObject(result, __nsTypeIndex(result, 21)) + rt.returnObject(result, __nsTypeIndex(result, 24)) +} + +// s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF +private func __nsThunk115(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.GreetingRegistry else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingRegistry") } + guard let a0 = __nsProtocol50(rt.slots, 1) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + let _: Void = receiver.`add`(a0) + rt.returnVoid() +} + +// s:9SwiftDemo16GreetingRegistryC5countSivp +private func __nsThunk116(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.GreetingRegistry else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingRegistry") } + let result: Int = receiver.`count` + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF +private func __nsThunk117(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.GreetingRegistry else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingRegistry") } + guard let a0 = __nsProtocol50(rt.slots, 1) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + let _: Void = receiver.`remove`(a0) + rt.returnVoid() +} + +// s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF +private func __nsThunk118(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.GreetingRegistry else { return rt.throwTypeError("receiver must be SwiftDemo.GreetingRegistry") } + guard let a0 = __nsProtocol50(rt.slots, 1) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + let result: Bool = receiver.`contains`(a0) + rt.returnBool(result) +} + +// s:9SwiftDemo16GreetingRegistryCACycfc +private func __nsThunk119(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: SwiftDemo.GreetingRegistry = SwiftDemo.GreetingRegistry() + rt.returnObject(result, __nsTypeIndex(result, 25)) } // s:9SwiftDemo16makeDefaultPointAA0E0VyF -private func __nsThunk103(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk120(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Point = SwiftDemo.`makeDefaultPoint`() - rt.returnObject(__NSBox(result), 26) + rt.returnObject(__NSBox(result), 32) } // s:9SwiftDemo16makeTrackerLater2idAA0D0CSi_tYaF -private func __nsThunk104(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk121(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: SwiftDemo.Tracker = await SwiftDemo.`makeTrackerLater`(id: a0) - completion.returnObject(result, __nsTypeIndex(result, 40)) + completion.returnObject(result, __nsTypeIndex(result, 47)) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo17greetInBackgroundySSAA8Greeting_pYaF -private func __nsThunk105(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk122(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: String = await SwiftDemo.`greetInBackground`(a0) completion.returnString(result) } + completion.onCancel { task.cancel() } } -// s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF -private func __nsThunk106(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +// s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF +private func __nsThunk123(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - let a0 = { () -> @Sendable () -> Int in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(0)); return { () -> Int in let result: Int? = callback.call({ r in }, { (s: __NSSlots) -> Int? in Int(truncatingIfNeeded: s.int64(0)) }); guard let result else { return 0 }; return result } }() - let completion = rt.beginAsync() - let captured = __NSUnchecked(a0) - Task { - let a0 = captured.value - let result: Int = await SwiftDemo.`computeInBackground`(a0) - completion.returnInt64(Int64(result)) + guard let receiver = rt.object(0) as? SwiftDemo.WeakGreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.WeakGreetingHolder") } + let a0 = rt.slots.string(1) + let result: String? = receiver.`greet`(a0) + if let result { + rt.returnString(result) + } else { + rt.returnNull() } } -// s:9SwiftDemo3JobO6TicketV2idAESi_tcfc -private func __nsThunk107(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +// s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp +private func __nsThunk124(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.WeakGreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.WeakGreetingHolder") } + let result: (any SwiftDemo.Greeting)? = receiver.`greeting` + if let result { + __nsReportProtocol50(rt, result) + } else { + rt.returnNull() + } +} + +// s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp (setter) +private func __nsThunk125(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.WeakGreetingHolder else { return rt.throwTypeError("receiver must be SwiftDemo.WeakGreetingHolder") } + var newValue: SwiftDemo.Greeting? = nil + if !rt.slots.isNull(1) { + guard let value = __nsProtocol50(rt.slots, 1) else { return rt.throwTypeError("value must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + newValue = value + } + receiver.`greeting` = newValue + rt.returnVoid() +} + +// s:9SwiftDemo18WeakGreetingHolderCACycfc +private func __nsThunk126(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: SwiftDemo.WeakGreetingHolder = SwiftDemo.WeakGreetingHolder() + rt.returnObject(result, __nsTypeIndex(result, 26)) +} + +// s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF +private func __nsThunk127(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = { () -> @Sendable () -> Int in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(0)); return { () -> Int in let result: Int? = callback.call({ r in }, { (s: __NSSlots) -> Int? in Int(truncatingIfNeeded: s.int64(0)) }); guard let result else { return 0 }; return result } }() + let completion = rt.beginAsync() + let captured = __NSUnchecked(a0) + let task = Task { + let a0 = captured.value + let result: Int = await SwiftDemo.`computeInBackground`(a0) + completion.returnInt64(Int64(result)) + } + completion.onCancel { task.cancel() } +} + +// s:9SwiftDemo3JobO6TicketV2idAESi_tcfc +private func __nsThunk128(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: SwiftDemo.Job.Ticket = SwiftDemo.Job.Ticket(id: a0) - rt.returnObject(__NSBox(result), 22) + rt.returnObject(__NSBox(result), 27) } // s:9SwiftDemo3JobO6TicketV2idSivp -private func __nsThunk108(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk129(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Job.Ticket") } let result: Int = box.value.`id` @@ -1843,7 +2104,7 @@ private func __nsThunk108(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo3JobO6TicketV2idSivp (setter) -private func __nsThunk109(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk130(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Job.Ticket") } let newValue = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -1852,15 +2113,59 @@ private func __nsThunk109(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo3sum2of0aB3Kit5MoneyVSayAFG_tF -private func __nsThunk110(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk131(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> SwiftDemoKit.Money? in (s.object(j) as? __NSBox)?.value }) else { return rt.throwTypeError("argument 1 must be an array of SwiftDemoKit.Money") } let result: SwiftDemoKit.Money = SwiftDemo.`sum`(of: a0) rt.returnObject(__NSBox(result), 7) } +// s:9SwiftDemo4GridV4sizeACSi_tcfc +private func __nsThunk132(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) + let result: SwiftDemo.Grid = SwiftDemo.Grid(size: a0) + rt.returnObject(__NSBox(result), 28) +} + +// s:9SwiftDemo4GridV5cellsSaySiGvp +private func __nsThunk133(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Grid") } + let result: [Int] = box.value.`cells` + rt.returnArray(result) { element in rt.returnInt64(Int64(element)) } +} + +// s:9SwiftDemo4GridV5cellsSaySiGvp (setter) +private func __nsThunk134(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Grid") } + guard let newValue = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("value must be an array of Int") } + box.value.`cells` = newValue + rt.returnVoid() +} + +// s:9SwiftDemo4GridVyS2icip +private func __nsThunk135(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Grid") } + let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) + let result: Int = box.value[a0] + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo4GridVyS2icip (setter) +private func __nsThunk136(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Grid") } + let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) + let newValue = Int(truncatingIfNeeded: rt.slots.int64(2)) + box.value[a0] = newValue + rt.returnVoid() +} + // s:9SwiftDemo4NoteC4tagsShySSGvp -private func __nsThunk111(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk137(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("receiver must be SwiftDemo.Note") } let result: Set = receiver.`tags` @@ -1868,7 +2173,7 @@ private func __nsThunk111(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4NoteC4tagsShySSGvp (setter) -private func __nsThunk112(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk138(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("receiver must be SwiftDemo.Note") } guard let newValue = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> String? in s.string(j) }).map({ Set($0) }) else { return rt.throwTypeError("value must be Set") } @@ -1877,7 +2182,7 @@ private func __nsThunk112(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4NoteC4textACSS_tcfc -private func __nsThunk113(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk139(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Note = SwiftDemo.Note(text: a0) @@ -1885,7 +2190,7 @@ private func __nsThunk113(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4NoteC4textSSvp -private func __nsThunk114(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk140(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("receiver must be SwiftDemo.Note") } let result: String = receiver.`text` @@ -1893,14 +2198,14 @@ private func __nsThunk114(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4NoteC5blankACyFZ -private func __nsThunk115(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk141(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Note = SwiftDemo.Note.`blank`() rt.returnObjC(result) } // s:9SwiftDemo4NoteC6taggedyACSSF -private func __nsThunk116(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk142(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("receiver must be SwiftDemo.Note") } let a0 = rt.slots.string(1) @@ -1909,7 +2214,7 @@ private func __nsThunk116(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF -private func __nsThunk117(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk143(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("receiver must be SwiftDemo.Note") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -1917,25 +2222,34 @@ private func __nsThunk117(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin rt.returnString(result) } +// s:9SwiftDemo4RingV1poiyA2C_ACtFZ +private func __nsThunk144(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } + guard let a0 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Ring") } + let result: SwiftDemo.Ring = (box.value) + (a0) + rt.returnObject(__NSBox(result), 29) +} + // s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc -private func __nsThunk118(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk145(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = (rt.slots.object(0) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Point") } guard let a1 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 2 must be SwiftDemo.Point") } let result: SwiftDemo.Ring = SwiftDemo.Ring(inner: a0, outer: a1) - rt.returnObject(__NSBox(result), 23) + rt.returnObject(__NSBox(result), 29) } // s:9SwiftDemo4RingV5innerAA5PointVvp -private func __nsThunk119(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk146(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } let result: SwiftDemo.Point = box.value.`inner` - rt.returnObject(__NSBox(result), 26) + rt.returnObject(__NSBox(result), 32) } // s:9SwiftDemo4RingV5innerAA5PointVvp (setter) -private func __nsThunk120(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk147(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } guard let newValue = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("value must be SwiftDemo.Point") } @@ -1944,15 +2258,15 @@ private func __nsThunk120(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4RingV5outerAA5PointVvp -private func __nsThunk121(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk148(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } let result: SwiftDemo.Point = box.value.`outer` - rt.returnObject(__NSBox(result), 26) + rt.returnObject(__NSBox(result), 32) } // s:9SwiftDemo4RingV5outerAA5PointVvp (setter) -private func __nsThunk122(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk149(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } guard let newValue = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("value must be SwiftDemo.Point") } @@ -1961,7 +2275,7 @@ private func __nsThunk122(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4RingV6expand2byySd_tF -private func __nsThunk123(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk150(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Ring") } let a0 = rt.slots.double(1) @@ -1970,15 +2284,15 @@ private func __nsThunk123(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4area2ofSdAA11MeasurementO_tF -private func __nsThunk124(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk151(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsReadCase13(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Measurement") } + guard let a0 = __nsReadCase15(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Measurement") } let result: Double = SwiftDemo.`area`(of: a0) rt.returnDouble(Double(result)) } // s:9SwiftDemo4bumpyySizF -private func __nsThunk125(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk152(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let v0 = Int(truncatingIfNeeded: rt.slots.int64(0)) var a0 = v0 @@ -1988,15 +2302,15 @@ private func __nsThunk125(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4echoyAA7PayloadOADF -private func __nsThunk126(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk153(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsReadCase36(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Payload") } + guard let a0 = __nsReadCase43(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Payload") } let result: SwiftDemo.Payload = SwiftDemo.`echo`(a0) - __nsReportCase36(rt, result) + __nsReportCase43(rt, result) } // s:9SwiftDemo4flipy0aB3Kit4CoinOAEF -private func __nsThunk127(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk154(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsEnum4(rt.slots.string(0)) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemoKit.Coin") } let result: SwiftDemoKit.Coin = SwiftDemo.`flip`(a0) @@ -2004,7 +2318,7 @@ private func __nsThunk127(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4host2ofSSSg10Foundation3URLV_tF -private func __nsThunk128(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk155(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = URL(string: rt.slots.string(0)) else { return rt.throwTypeError("argument 1 must be a valid URL") } let result: String? = SwiftDemo.`host`(of: a0) @@ -2016,7 +2330,7 @@ private func __nsThunk128(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4plotySSSgSd1x_Sd1ytSgF -private func __nsThunk129(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk156(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) var a0: (x: Double, y: Double)? = nil if !rt.slots.isNull(0) { @@ -2038,7 +2352,7 @@ private func __nsThunk129(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4rampy10Foundation4DataVSiF -private func __nsThunk130(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk157(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: Data = SwiftDemo.`ramp`(a0) @@ -2046,15 +2360,15 @@ private func __nsThunk130(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4sameyAA8Greeting_pAaC_pF -private func __nsThunk131(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk158(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let result: any SwiftDemo.Greeting = SwiftDemo.`same`(a0) - __nsReportProtocol41(rt, result) + __nsReportProtocol50(rt, result) } // s:9SwiftDemo4tagsySaySiGSaySo6UIViewCGF -private func __nsThunk132(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk159(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> UIView? in s.object(j) as? UIView }) else { return rt.throwTypeError("argument 1 must be an array of a UIView") } let result: [Int] = SwiftDemo.`tags`(a0) @@ -2062,7 +2376,7 @@ private func __nsThunk132(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4text2ofSSAA4NoteC_tF -private func __nsThunk133(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk160(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? SwiftDemo.Note else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Note") } let result: String = SwiftDemo.`text`(of: a0) @@ -2070,14 +2384,14 @@ private func __nsThunk133(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo4zeroxySjRzlF@ -private func __nsThunk134(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk161(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: Double = SwiftDemo.`zero`() rt.returnDouble(Double(result)) } // s:9SwiftDemo5BadgeV5countSivp -private func __nsThunk135(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk162(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Badge") } guard Thread.isMainThread else { return rt.throwMessage("count is isolated to the main actor; call it on the main thread") } @@ -2088,7 +2402,7 @@ private func __nsThunk135(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BadgeV5countSivp (setter) -private func __nsThunk136(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk163(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Badge") } let newValue = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -2100,19 +2414,19 @@ private func __nsThunk136(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc -private func __nsThunk137(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk164(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) guard Thread.isMainThread else { return rt.throwMessage("init(title:count:) is isolated to the main actor; call it on the main thread") } MainActor.assumeIsolated { let result: SwiftDemo.Badge = SwiftDemo.Badge(title: a0, count: a1) - rt.returnObject(__NSBox(result), 24) + rt.returnObject(__NSBox(result), 30) } } // s:9SwiftDemo5BadgeV5titleSSvp -private func __nsThunk138(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk165(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Badge") } guard Thread.isMainThread else { return rt.throwMessage("title is isolated to the main actor; call it on the main thread") } @@ -2123,7 +2437,7 @@ private func __nsThunk138(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BadgeV5titleSSvp (setter) -private func __nsThunk139(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk166(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Badge") } let newValue = rt.slots.string(1) @@ -2135,7 +2449,7 @@ private func __nsThunk139(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BenchC4echoyS2iF -private func __nsThunk140(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk167(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Bench else { return rt.throwTypeError("receiver must be SwiftDemo.Bench") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -2144,7 +2458,7 @@ private func __nsThunk140(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BenchC4echoyS2iFZ -private func __nsThunk141(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk168(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: Int = SwiftDemo.Bench.`echo`(a0) @@ -2152,7 +2466,7 @@ private func __nsThunk141(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BenchC5valueSivp -private func __nsThunk142(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk169(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Bench else { return rt.throwTypeError("receiver must be SwiftDemo.Bench") } let result: Int = receiver.`value` @@ -2160,7 +2474,7 @@ private func __nsThunk142(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BenchC5valueSivp (setter) -private func __nsThunk143(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk170(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Bench else { return rt.throwTypeError("receiver must be SwiftDemo.Bench") } let newValue = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -2169,14 +2483,14 @@ private func __nsThunk143(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5BenchCACycfc -private func __nsThunk144(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk171(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Bench = SwiftDemo.Bench() - rt.returnObject(result, __nsTypeIndex(result, 25)) + rt.returnObject(result, __nsTypeIndex(result, 31)) } // s:9SwiftDemo5PointV11descriptionSSvp -private func __nsThunk145(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk172(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let result: String = box.value.`description` @@ -2184,16 +2498,16 @@ private func __nsThunk145(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5PointV1x1yACSd_Sdtcfc -private func __nsThunk146(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk173(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let a1 = rt.slots.double(1) let result: SwiftDemo.Point = SwiftDemo.Point(x: a0, y: a1) - rt.returnObject(__NSBox(result), 26) + rt.returnObject(__NSBox(result), 32) } // s:9SwiftDemo5PointV1xSdvp -private func __nsThunk147(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk174(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let result: Double = box.value.`x` @@ -2201,7 +2515,7 @@ private func __nsThunk147(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5PointV1xSdvp (setter) -private func __nsThunk148(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk175(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let newValue = rt.slots.double(1) @@ -2210,7 +2524,7 @@ private func __nsThunk148(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5PointV1ySdvp -private func __nsThunk149(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk176(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let result: Double = box.value.`y` @@ -2218,7 +2532,7 @@ private func __nsThunk149(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5PointV1ySdvp (setter) -private func __nsThunk150(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk177(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let newValue = rt.slots.double(1) @@ -2227,15 +2541,55 @@ private func __nsThunk150(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5PointV6lengthSdvp -private func __nsThunk151(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk178(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Point") } let result: Double = box.value.`length` rt.returnDouble(Double(result)) } +// s:9SwiftDemo5ShelfCACycfc +private func __nsThunk179(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: SwiftDemo.Shelf = SwiftDemo.Shelf() + rt.returnObject(result, __nsTypeIndex(result, 33)) +} + +// s:9SwiftDemo5ShelfCySSSi_Sitcip +private func __nsThunk180(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Shelf else { return rt.throwTypeError("receiver must be SwiftDemo.Shelf") } + let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) + let a1 = Int(truncatingIfNeeded: rt.slots.int64(2)) + let result: String = receiver[a0, a1] + rt.returnString(result) +} + +// s:9SwiftDemo5ShelfCySiSgSScip +private func __nsThunk181(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Shelf else { return rt.throwTypeError("receiver must be SwiftDemo.Shelf") } + let a0 = rt.slots.string(1) + let result: Int? = receiver[a0] + if let result { + rt.returnInt64(Int64(result)) + } else { + rt.returnNull() + } +} + +// s:9SwiftDemo5ShelfCySiSgSScip (setter) +private func __nsThunk182(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Shelf else { return rt.throwTypeError("receiver must be SwiftDemo.Shelf") } + let a0 = rt.slots.string(1) + let newValue = rt.slots.isNull(2) ? nil : Int(truncatingIfNeeded: rt.slots.int64(2)) + receiver[a0] = newValue + rt.returnVoid() +} + // s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF -private func __nsThunk152(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk183(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = (rt.slots.object(0) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Money") } let result: SwiftDemoKit.Box = SwiftDemo.`boxed`(a0) @@ -2243,7 +2597,7 @@ private func __nsThunk152(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5clearyySSSgzF -private func __nsThunk153(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk184(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let v0 = rt.slots.isNull(0) ? nil : rt.slots.string(0) var a0 = v0 @@ -2252,8 +2606,16 @@ private func __nsThunk153(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin rt.returnVoid() } +// s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF +private func __nsThunk185(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) + let result: any Sequence = SwiftDemo.`evens`(below: a0) + rt.returnArray(Array(result)) { element in rt.returnInt64(Int64(element)) } +} + // s:9SwiftDemo5halveyySizKF -private func __nsThunk154(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk186(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let v0 = Int(truncatingIfNeeded: rt.slots.int64(0)) var a0 = v0 @@ -2267,7 +2629,7 @@ private func __nsThunk154(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5holesySaySSSgGSiF -private func __nsThunk155(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk187(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: [String?] = SwiftDemo.`holes`(a0) @@ -2275,7 +2637,7 @@ private func __nsThunk155(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5inset_2bySo6CGRectVAE_So12UIEdgeInsetsVtF -private func __nsThunk156(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk188(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = ({ () -> (origin: CGPoint, size: CGSize)? in let (t6, t6n) = rt.slots.elements(0) @@ -2310,7 +2672,7 @@ private func __nsThunk156(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5namesySaySSGSiF -private func __nsThunk157(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk189(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: [String] = SwiftDemo.`names`(a0) @@ -2318,7 +2680,7 @@ private func __nsThunk157(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5pagesyScSySaySSGGSiF -private func __nsThunk158(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk190(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: AsyncStream<[String]> = SwiftDemo.`pages`(a0) @@ -2326,7 +2688,7 @@ private func __nsThunk158(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5shoutySSSgACF -private func __nsThunk159(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk191(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.isNull(0) ? nil : rt.slots.string(0) let result: String? = SwiftDemo.`shout`(a0) @@ -2338,14 +2700,14 @@ private func __nsThunk159(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5spansSaySS_SiSgtGyF -private func __nsThunk160(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk192(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: [(String, Int?)] = SwiftDemo.`spans`() rt.returnArray(result) { element in rt.returnTuple(2) { rt.returnString(element.0); if let element = element.1 { rt.returnInt64(Int64(element)) } else { rt.returnNull() } } } } // s:9SwiftDemo5tagOfySixSo6UIViewCRbzlF@ -private func __nsThunk161(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk193(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? UIView else { return rt.throwTypeError("argument 1 must be a UIView") } let result: Int = SwiftDemo.`tagOf`(a0) @@ -2353,7 +2715,7 @@ private func __nsThunk161(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5totalySdSaySdGF -private func __nsThunk162(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk194(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Double? in s.double(j) }) else { return rt.throwTypeError("argument 1 must be an array of Double") } let result: Double = SwiftDemo.`total`(a0) @@ -2361,7 +2723,7 @@ private func __nsThunk162(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF@ -private func __nsThunk163(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk195(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? SwiftDemoKit.Box else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Box") } let result: SwiftDemoKit.Money = SwiftDemo.`unbox`(a0) @@ -2369,7 +2731,7 @@ private func __nsThunk163(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF@ -private func __nsThunk164(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk196(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? SwiftDemoKit.Box else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Box") } let result: Int = SwiftDemo.`unbox`(a0) @@ -2377,37 +2739,37 @@ private func __nsThunk164(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6CanvasCACycfc -private func __nsThunk165(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk197(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard Thread.isMainThread else { return rt.throwMessage("init() is isolated to the main actor; call it on the main thread") } MainActor.assumeIsolated { let result: SwiftDemo.Canvas = SwiftDemo.Canvas() - rt.returnObject(result, __nsTypeIndex(result, 27)) + rt.returnObject(result, __nsTypeIndex(result, 34)) } } // s:9SwiftDemo6FlavorO11descriptionSSvp -private func __nsThunk166(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk198(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsEnum28(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Flavor") } + guard let receiver = __nsEnum35(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Flavor") } let result: String = receiver.`description` rt.returnString(result) } // s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc -private func __nsThunk167(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk199(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: SwiftDemo.Flavor? = SwiftDemo.Flavor(rawValue: a0) if let result { - rt.returnString(__nsEnumName28(result)) + rt.returnString(__nsEnumName35(result)) } else { rt.returnNull() } } // s:9SwiftDemo6LoaderC10modernOnlyyyF -private func __nsThunk168(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk200(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard #available(iOS 16.0, *) else { return rt.throwMessage("modernOnly() requires iOS 16.0") } guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } @@ -2416,7 +2778,7 @@ private func __nsThunk168(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC11legacyFetchyyF -private func __nsThunk169(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk201(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let _: Void = receiver.`legacyFetch`() @@ -2424,7 +2786,7 @@ private func __nsThunk169(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF -private func __nsThunk170(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk202(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let a0 = { () -> (Result) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Result) in callback.invoke { r in switch p0 { case .success(let t10v): r.returnCase(0) { r.returnString(t10v) }; case .failure(let t10e): r.returnCase(1) { __nsReportCase11(r, t10e) } } } } }() @@ -2433,7 +2795,7 @@ private func __nsThunk170(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC4eachyyySiXEF -private func __nsThunk171(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk203(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let a0 = { () -> (Int) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Int) in callback.invoke { r in r.returnInt64(Int64(p0)) } } }() @@ -2442,7 +2804,7 @@ private func __nsThunk171(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF -private func __nsThunk172(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk204(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let a0 = rt.slots.string(1) @@ -2455,27 +2817,28 @@ private func __nsThunk172(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF -private func __nsThunk173(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk205(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let a0 = rt.slots.double(1) let completion = rt.beginAsync() let captured = __NSUnchecked((receiver, a0)) - Task { + let task = Task { let (receiver, a0) = captured.value let _: Void = await receiver.`wait`(seconds: a0) completion.returnVoid() } + completion.onCancel { task.cancel() } } // s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF -private func __nsThunk174(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk206(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let a0 = URL(string: rt.slots.string(1)) else { return rt.throwTypeError("argument 1 must be a valid URL") } let completion = rt.beginAsync() let captured = __NSUnchecked((receiver, a0)) - Task { + let task = Task { let (receiver, a0) = captured.value do { let result: String = try await receiver.`fetch`(url: a0) @@ -2484,10 +2847,11 @@ private func __nsThunk174(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin completion.throwError(error) } } + completion.onCancel { task.cancel() } } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -private func __nsThunk175(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk207(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let a0 = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } @@ -2500,7 +2864,7 @@ private func __nsThunk175(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -private func __nsThunk176(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk208(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let a0 = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> Bool? in s.bool(j) }) else { return rt.throwTypeError("argument 1 must be an array of Bool") } @@ -2513,7 +2877,7 @@ private func __nsThunk176(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -private func __nsThunk177(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk209(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let a0 = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> Double? in s.double(j) }) else { return rt.throwTypeError("argument 1 must be an array of Double") } @@ -2526,7 +2890,7 @@ private func __nsThunk177(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF -private func __nsThunk178(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk210(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let a0 = __nsReadMap(rt.slots, 1, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 1 must be an object whose values are Int") } @@ -2540,18 +2904,18 @@ private func __nsThunk178(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderC6updateyyAA5PointVzF -private func __nsThunk179(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk211(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } guard let v0 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Point") } var a0 = v0 let _: Void = receiver.`update`(&a0) - rt.writeBack(0) { rt.returnObject(__NSBox(a0), 26) } + rt.writeBack(0) { rt.returnObject(__NSBox(a0), 32) } rt.returnVoid() } // s:9SwiftDemo6LoaderC8oldFetchyyF -private func __nsThunk180(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk212(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Loader else { return rt.throwTypeError("receiver must be SwiftDemo.Loader") } let _: Void = receiver.`oldFetch`() @@ -2559,16 +2923,16 @@ private func __nsThunk180(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6LoaderCACycfc -private func __nsThunk181(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk213(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Loader = SwiftDemo.Loader() - rt.returnObject(result, __nsTypeIndex(result, 29)) + rt.returnObject(result, __nsTypeIndex(result, 36)) } // s:9SwiftDemo6ScorerP5scoreyS2iKF -private func __nsThunk182(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk214(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol30(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Scorer") } + guard let receiver = __nsProtocol37(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Scorer") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) do { let result: Int = try receiver.`score`(a0) @@ -2579,7 +2943,7 @@ private func __nsThunk182(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC4areaSdvp -private func __nsThunk183(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk215(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Square else { return rt.throwTypeError("receiver must be SwiftDemo.Square") } let result: Double = receiver.`area` @@ -2587,15 +2951,15 @@ private func __nsThunk183(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC4sideACSd_tcfc -private func __nsThunk184(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk216(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let result: SwiftDemo.Square = SwiftDemo.Square(side: a0) - rt.returnObject(result, __nsTypeIndex(result, 31)) + rt.returnObject(result, __nsTypeIndex(result, 38)) } // s:9SwiftDemo6SquareC4sideSdvp -private func __nsThunk185(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk217(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Square else { return rt.throwTypeError("receiver must be SwiftDemo.Square") } let result: Double = receiver.`side` @@ -2603,7 +2967,7 @@ private func __nsThunk185(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC4sideSdvp (setter) -private func __nsThunk186(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk218(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Square else { return rt.throwTypeError("receiver must be SwiftDemo.Square") } let newValue = rt.slots.double(1) @@ -2612,7 +2976,7 @@ private func __nsThunk186(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC5greet4nameS2S_tF -private func __nsThunk187(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk219(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Square else { return rt.throwTypeError("receiver must be SwiftDemo.Square") } let a0 = rt.slots.string(1) @@ -2621,7 +2985,7 @@ private func __nsThunk187(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC5scale2byySd_tF -private func __nsThunk188(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk220(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Square else { return rt.throwTypeError("receiver must be SwiftDemo.Square") } let a0 = rt.slots.double(1) @@ -2630,14 +2994,14 @@ private func __nsThunk188(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6SquareC5sidesSivpZ -private func __nsThunk189(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk221(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: Int = SwiftDemo.Square.`sides` rt.returnInt64(Int64(result)) } // s:9SwiftDemo6append_2toySS_SaySSGztF -private func __nsThunk190(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk222(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) guard let v1 = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 2 must be an array of String") } @@ -2648,7 +3012,7 @@ private func __nsThunk190(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6divide_2bySi8quotient_Si9remaindertSi_SitF -private func __nsThunk191(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk223(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -2657,15 +3021,15 @@ private func __nsThunk191(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6exciteyyAA8Greeting_pF -private func __nsThunk192(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk224(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let _: Void = SwiftDemo.`excite`(a0) rt.returnVoid() } // s:9SwiftDemo6lookupySiSS_SiSgSSXEtF -private func __nsThunk193(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk225(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = { () -> (String) -> Int? in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: String) -> Int? in let result: Int?? = callback.call({ r in r.returnString(p0) }, { (s: __NSSlots) -> Int?? in if s.isNull(0) { return .some(nil) }; return .some(Int(truncatingIfNeeded: s.int64(0))) }); guard let result else { return nil }; return result } }() @@ -2674,15 +3038,30 @@ private func __nsThunk193(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo6settley0aB3Kit7OutcomeOySiGSiF -private func __nsThunk194(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk226(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: SwiftDemoKit.Outcome = SwiftDemo.`settle`(a0) __nsReportCase9(rt, result) } +// s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF@<[s:Si]> +private func __nsThunk227(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 1 must be an array of Int") } + let result: Int = SwiftDemo.`sumAll`(a0) + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo6tickerScSySiGyF +private func __nsThunk228(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: AsyncStream = SwiftDemo.`ticker`() + rt.returnAsyncSequence(__NSAsyncIterator(result) { r, element in r.returnInt64(Int64(element)) }) +} + // s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF -private func __nsThunk195(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk229(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = ({ () -> Result? in let (t11, _) = rt.slots.elements(0) @@ -2705,20 +3084,21 @@ private func __nsThunk195(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7CounterC4stepSivp -private func __nsThunk196(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk230(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Counter else { return rt.throwTypeError("receiver must be SwiftDemo.Counter") } let completion = rt.beginAsync() let captured = __NSUnchecked(receiver) - Task { + let task = Task { let receiver = captured.value let result: Int = await receiver.`step` completion.returnInt64(Int64(result)) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo7CounterC5labelSSyF -private func __nsThunk197(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk231(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Counter else { return rt.throwTypeError("receiver must be SwiftDemo.Counter") } let result: String = receiver.`label`() @@ -2726,70 +3106,73 @@ private func __nsThunk197(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7CounterC5valueSivp -private func __nsThunk198(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk232(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Counter else { return rt.throwTypeError("receiver must be SwiftDemo.Counter") } let completion = rt.beginAsync() let captured = __NSUnchecked(receiver) - Task { + let task = Task { let receiver = captured.value let result: Int = await receiver.`value` completion.returnInt64(Int64(result)) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo7CounterC9incrementSiyF -private func __nsThunk199(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk233(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Counter else { return rt.throwTypeError("receiver must be SwiftDemo.Counter") } let completion = rt.beginAsync() let captured = __NSUnchecked(receiver) - Task { + let task = Task { let receiver = captured.value let result: Int = await receiver.`increment`() completion.returnInt64(Int64(result)) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo7CounterCACycfc -private func __nsThunk200(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk234(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Counter = SwiftDemo.Counter() - rt.returnObject(result, __nsTypeIndex(result, 32)) + rt.returnObject(result, __nsTypeIndex(result, 39)) } // s:9SwiftDemo7FormulaO5valueSdvp -private func __nsThunk201(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk235(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsReadCase33(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Formula") } + guard let receiver = __nsReadCase40(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Formula") } let result: Double = receiver.`value` rt.returnDouble(Double(result)) } // s:9SwiftDemo7GreeterP5greet4nameS2S_tF -private func __nsThunk202(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk236(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol34(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeter") } + guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeter") } let a0 = rt.slots.string(1) let result: String = receiver.`greet`(name: a0) rt.returnString(result) } // s:9SwiftDemo7PaletteC11strokeLaterSiyYaF -private func __nsThunk203(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk237(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Palette else { return rt.throwTypeError("receiver must be SwiftDemo.Palette") } let completion = rt.beginAsync() let captured = __NSUnchecked(receiver) - Task { + let task = Task { let receiver = captured.value let result: Int = await receiver.`strokeLater`() completion.returnInt64(Int64(result)) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo7PaletteC6strokeSiyF -private func __nsThunk204(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk238(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Palette else { return rt.throwTypeError("receiver must be SwiftDemo.Palette") } guard Thread.isMainThread else { return rt.throwMessage("stroke() is isolated to the main actor; call it on the main thread") } @@ -2800,7 +3183,7 @@ private func __nsThunk204(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PaletteC7strokesSivp -private func __nsThunk205(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk239(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Palette else { return rt.throwTypeError("receiver must be SwiftDemo.Palette") } guard Thread.isMainThread else { return rt.throwMessage("strokes is isolated to the main actor; call it on the main thread") } @@ -2811,17 +3194,17 @@ private func __nsThunk205(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PaletteCACycfc -private func __nsThunk206(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk240(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard Thread.isMainThread else { return rt.throwMessage("init() is isolated to the main actor; call it on the main thread") } MainActor.assumeIsolated { let result: SwiftDemo.Palette = SwiftDemo.Palette() - rt.returnObject(result, __nsTypeIndex(result, 35)) + rt.returnObject(result, __nsTypeIndex(result, 42)) } } // s:9SwiftDemo7PolygonC11vertexCountSivp -private func __nsThunk207(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk241(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let result: Int = receiver.`vertexCount` @@ -2829,35 +3212,35 @@ private func __nsThunk207(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC4makeACyFZ -private func __nsThunk208(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk242(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Polygon = SwiftDemo.Polygon.`make`() - rt.returnObject(result, __nsTypeIndex(result, 37)) + rt.returnObject(result, __nsTypeIndex(result, 44)) } // s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc -private func __nsThunk209(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk243(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) let result: SwiftDemo.Polygon = SwiftDemo.Polygon(name: a0, vertexCount: a1) - rt.returnObject(result, __nsTypeIndex(result, 37)) + rt.returnObject(result, __nsTypeIndex(result, 44)) } // s:9SwiftDemo7PolygonC4nameACSgSS_tcfc -private func __nsThunk210(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk244(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Polygon? = SwiftDemo.Polygon(name: a0) if let result { - rt.returnObject(result, __nsTypeIndex(result, 37)) + rt.returnObject(result, __nsTypeIndex(result, 44)) } else { rt.returnNull() } } // s:9SwiftDemo7PolygonC4nameSSvp -private func __nsThunk211(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk245(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let result: String = receiver.`name` @@ -2865,19 +3248,19 @@ private func __nsThunk211(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc -private func __nsThunk212(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk246(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Polygon.Style? = SwiftDemo.Polygon.Style(rawValue: a0) if let result { - rt.returnString(__nsEnumName38(result)) + rt.returnString(__nsEnumName45(result)) } else { rt.returnNull() } } // s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF -private func __nsThunk213(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk247(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let a0 = rt.slots.double(1) @@ -2887,7 +3270,7 @@ private func __nsThunk213(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC5scale2byySd_tF -private func __nsThunk214(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk248(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let a0 = rt.slots.double(1) @@ -2896,7 +3279,7 @@ private func __nsThunk214(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC5scale2byySi_tF -private func __nsThunk215(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk249(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -2905,30 +3288,30 @@ private func __nsThunk215(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC5styleAC5StyleOvp -private func __nsThunk216(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk250(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let result: SwiftDemo.Polygon.Style = receiver.`style` - rt.returnString(__nsEnumName38(result)) + rt.returnString(__nsEnumName45(result)) } // s:9SwiftDemo7PolygonC6sharedACvpZ -private func __nsThunk217(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk251(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Polygon = SwiftDemo.Polygon.`shared` - rt.returnObject(result, __nsTypeIndex(result, 37)) + rt.returnObject(result, __nsTypeIndex(result, 44)) } // s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc -private func __nsThunk218(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk252(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let result: SwiftDemo.Polygon.Metrics = SwiftDemo.Polygon.Metrics(perimeter: a0) - rt.returnObject(__NSBox(result), 39) + rt.returnObject(__NSBox(result), 46) } // s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp -private func __nsThunk219(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk253(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon.Metrics") } let result: Double = box.value.`perimeter` @@ -2936,7 +3319,7 @@ private func __nsThunk219(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp (setter) -private func __nsThunk220(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk254(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon.Metrics") } let newValue = rt.slots.double(1) @@ -2945,16 +3328,16 @@ private func __nsThunk220(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF -private func __nsThunk221(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk255(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } let a0 = rt.slots.double(1) let result: SwiftDemo.Polygon.Metrics = receiver.`metrics`(side: a0) - rt.returnObject(__NSBox(result), 39) + rt.returnObject(__NSBox(result), 46) } // s:9SwiftDemo7PolygonC8describeySSACSgFZ -private func __nsThunk222(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk256(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) var a0: SwiftDemo.Polygon? = nil if !rt.slots.isNull(0) { @@ -2965,16 +3348,25 @@ private func __nsThunk222(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin rt.returnString(result) } +// s:9SwiftDemo7PolygonCyAA5PointVSicip +private func __nsThunk257(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.Polygon else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon") } + let a0 = Int(truncatingIfNeeded: rt.slots.int64(1)) + let result: SwiftDemo.Point = receiver[a0] + rt.returnObject(__NSBox(result), 32) +} + // s:9SwiftDemo7TrackerC2idACSi_tcfc -private func __nsThunk223(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk258(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: SwiftDemo.Tracker = SwiftDemo.Tracker(id: a0) - rt.returnObject(result, __nsTypeIndex(result, 40)) + rt.returnObject(result, __nsTypeIndex(result, 47)) } // s:9SwiftDemo7TrackerC2idSivp -private func __nsThunk224(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk259(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Tracker else { return rt.throwTypeError("receiver must be SwiftDemo.Tracker") } let result: Int = receiver.`id` @@ -2982,22 +3374,125 @@ private func __nsThunk224(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7TrackerC4sameACyF -private func __nsThunk225(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk260(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Tracker else { return rt.throwTypeError("receiver must be SwiftDemo.Tracker") } let result: SwiftDemo.Tracker = receiver.`same`() - rt.returnObject(result, __nsTypeIndex(result, 40)) + rt.returnObject(result, __nsTypeIndex(result, 47)) } // s:9SwiftDemo7TrackerC9liveCountSivpZ -private func __nsThunk226(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk261(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: Int = SwiftDemo.Tracker.`liveCount` rt.returnInt64(Int64(result)) } +// s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ +private func __nsThunk262(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = rt.slots.double(0) + guard let a1 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 2 must be SwiftDemo.Vector2") } + let result: SwiftDemo.Vector2 = (a0) * (a1) + rt.returnObject(__NSBox(result), 48) +} + +// s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ +private func __nsThunk263(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + guard let a0 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Vector2") } + let result: SwiftDemo.Vector2 = (box.value) + (a0) + rt.returnObject(__NSBox(result), 48) +} + +// s:9SwiftDemo7Vector2V1sopyA2CFZ +private func __nsThunk264(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + let result: SwiftDemo.Vector2 = -(box.value) + rt.returnObject(__NSBox(result), 48) +} + +// s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc +private func __nsThunk265(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = rt.slots.double(0) + let a1 = rt.slots.double(1) + let result: SwiftDemo.Vector2 = SwiftDemo.Vector2(x: a0, y: a1) + rt.returnObject(__NSBox(result), 48) +} + +// s:9SwiftDemo7Vector2V1xSdvp +private func __nsThunk266(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + let result: Double = box.value.`x` + rt.returnDouble(Double(result)) +} + +// s:9SwiftDemo7Vector2V1xSdvp (setter) +private func __nsThunk267(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + let newValue = rt.slots.double(1) + box.value.`x` = newValue + rt.returnVoid() +} + +// s:9SwiftDemo7Vector2V1ySdvp +private func __nsThunk268(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + let result: Double = box.value.`y` + rt.returnDouble(Double(result)) +} + +// s:9SwiftDemo7Vector2V1ySdvp (setter) +private func __nsThunk269(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + let newValue = rt.slots.double(1) + box.value.`y` = newValue + rt.returnVoid() +} + +// s:9SwiftDemo7VersionV1loiySbAC_ACtFZ +private func __nsThunk270(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Version") } + guard let a0 = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Version") } + let result: Bool = (box.value) < (a0) + rt.returnBool(result) +} + +// s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc +private func __nsThunk271(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) + let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) + let result: SwiftDemo.Version = SwiftDemo.Version(major: a0, minor: a1) + rt.returnObject(__NSBox(result), 49) +} + +// s:9SwiftDemo7VersionV5majorSivp +private func __nsThunk272(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Version") } + let result: Int = box.value.`major` + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo7VersionV5minorSivp +private func __nsThunk273(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Version") } + let result: Int = box.value.`minor` + rt.returnInt64(Int64(result)) +} + // s:9SwiftDemo7compactySaySiGSaySiSgGF -private func __nsThunk227(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk274(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int?? in if s.isNull(j) { return .some(nil) }; return .some(Int(truncatingIfNeeded: s.int64(j))) }) else { return rt.throwTypeError("argument 1 must be an array of Int or null") } let result: [Int] = SwiftDemo.`compact`(a0) @@ -3005,7 +3500,7 @@ private func __nsThunk227(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7countUp2toScSySiGSi_tF -private func __nsThunk228(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk275(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: AsyncStream = SwiftDemo.`countUp`(to: a0) @@ -3013,7 +3508,7 @@ private func __nsThunk228(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7echoIntyS2iF -private func __nsThunk229(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk276(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: Int = SwiftDemo.`echoInt`(a0) @@ -3021,7 +3516,7 @@ private func __nsThunk229(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7explainySSAA10ShapeErrorOF -private func __nsThunk230(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk277(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadCase11(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.ShapeError") } let result: String = SwiftDemo.`explain`(a0) @@ -3029,7 +3524,7 @@ private func __nsThunk230(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF@ -private func __nsThunk231(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk278(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = (rt.slots.object(0) as? __NSBox>)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Pair") } let result: String = SwiftDemo.`firstOf`(a0) @@ -3037,7 +3532,7 @@ private func __nsThunk231(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF@ -private func __nsThunk232(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk279(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = (rt.slots.object(0) as? __NSBox>)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Pair") } let result: Int = SwiftDemo.`firstOf`(a0) @@ -3045,7 +3540,7 @@ private func __nsThunk232(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7fittingySo6CGSizeVSgAEF -private func __nsThunk233(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk280(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) var a0: CGSize? = nil if !rt.slots.isNull(0) { @@ -3066,8 +3561,16 @@ private func __nsThunk233(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } } +// s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF +private func __nsThunk281(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } + let result: String = SwiftDemo.`joinAll`(a0) + rt.returnString(result) +} + // s:9SwiftDemo7largestyxSgSayxGSLRzlF@ -private func __nsThunk234(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk282(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an array of String") } let result: String? = SwiftDemo.`largest`(a0) @@ -3079,7 +3582,7 @@ private func __nsThunk234(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7largestyxSgSayxGSLRzlF@ -private func __nsThunk235(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk283(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Double? in s.double(j) }) else { return rt.throwTypeError("argument 1 must be an array of Double") } let result: Double? = SwiftDemo.`largest`(a0) @@ -3091,7 +3594,7 @@ private func __nsThunk235(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7lengthsySDySSSiGSDyS2SGF -private func __nsThunk236(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk284(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadMap(rt.slots, 0, { (s: __NSSlots, j: Int) -> String? in s.string(j) }) else { return rt.throwTypeError("argument 1 must be an object whose values are String") } let result: [String: Int] = SwiftDemo.`lengths`(a0) @@ -3099,7 +3602,7 @@ private func __nsThunk236(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7letters2ofQrSS_tF -private func __nsThunk237(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk285(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard #available(iOS 18.0, *) else { return rt.throwMessage("letters(of:) requires iOS 18.0") } let a0 = rt.slots.string(0) @@ -3108,16 +3611,16 @@ private func __nsThunk237(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7measure_2byAA11MeasurementOSd_SdSgtF -private func __nsThunk238(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk286(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let a1 = rt.slots.isNull(1) ? nil : rt.slots.double(1) let result: SwiftDemo.Measurement = SwiftDemo.`measure`(a0, by: a1) - __nsReportCase13(rt, result) + __nsReportCase15(rt, result) } // s:9SwiftDemo7nextDay5after10Foundation4DateVAF_tF -private func __nsThunk239(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk287(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Date(timeIntervalSince1970: rt.slots.double(0) / 1000) let result: Date = SwiftDemo.`nextDay`(after: a0) @@ -3125,7 +3628,7 @@ private func __nsThunk239(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7resolve_7against10Foundation3URLVSS_AFtF -private func __nsThunk240(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk288(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) guard let a1 = URL(string: rt.slots.string(1)) else { return rt.throwTypeError("argument 2 must be a valid URL") } @@ -3134,9 +3637,9 @@ private func __nsThunk240(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7topRankySSAA12RankedScorer_pKF -private func __nsThunk241(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk289(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol16(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.RankedScorer (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol19(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.RankedScorer (a Swift value or JS implementation)") } do { let result: String = try SwiftDemo.`topRank`(a0) rt.returnString(result) @@ -3146,7 +3649,7 @@ private func __nsThunk241(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF@ -private func __nsThunk242(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk290(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? UIView else { return rt.throwTypeError("argument 1 must be a UIView") } let result: Int = SwiftDemo.`viewTag`(a0) @@ -3154,58 +3657,58 @@ private func __nsThunk242(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8GreetingP11punctuationSSvp -private func __nsThunk243(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk291(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let result: String = receiver.`punctuation` rt.returnString(result) } // s:9SwiftDemo8GreetingP11punctuationSSvp (setter) -private func __nsThunk244(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk292(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let newValue = rt.slots.string(1) receiver.`punctuation` = newValue rt.returnVoid() } // s:9SwiftDemo8GreetingP4nameSSvp -private func __nsThunk245(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk293(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let result: String = receiver.`name` rt.returnString(result) } // s:9SwiftDemo8GreetingP5greetyS2SF -private func __nsThunk246(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk294(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let a0 = rt.slots.string(1) let result: String = receiver.`greet`(a0) rt.returnString(result) } // s:9SwiftDemo8GreetingP5resetyyF -private func __nsThunk247(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk295(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let _: Void = receiver.`reset`() rt.returnVoid() } // s:9SwiftDemo8GreetingPAAE5shoutyS2SF -private func __nsThunk248(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk296(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } + guard let receiver = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.Greeting") } let a0 = rt.slots.string(1) let result: String = receiver.`shout`(a0) rt.returnString(result) } // s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC -private func __nsThunk249(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk297(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.FormalGreeting else { return rt.throwTypeError("receiver must be SwiftDemo.FormalGreeting") } let a0 = rt.slots.string(1) @@ -3214,7 +3717,7 @@ private func __nsThunk249(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierC12publishLateryySSF -private func __nsThunk250(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk298(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Notifier else { return rt.throwTypeError("receiver must be SwiftDemo.Notifier") } let a0 = rt.slots.string(1) @@ -3223,7 +3726,7 @@ private func __nsThunk250(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierC5clearyyF -private func __nsThunk251(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk299(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Notifier else { return rt.throwTypeError("receiver must be SwiftDemo.Notifier") } let _: Void = receiver.`clear`() @@ -3231,7 +3734,7 @@ private func __nsThunk251(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierC5countSivp -private func __nsThunk252(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk300(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Notifier else { return rt.throwTypeError("receiver must be SwiftDemo.Notifier") } let result: Int = receiver.`count` @@ -3239,7 +3742,7 @@ private func __nsThunk252(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierC7publishyySSF -private func __nsThunk253(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk301(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Notifier else { return rt.throwTypeError("receiver must be SwiftDemo.Notifier") } let a0 = rt.slots.string(1) @@ -3248,7 +3751,7 @@ private func __nsThunk253(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierC9subscribeyyySSYbcF -private func __nsThunk254(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk302(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = rt.object(0) as? SwiftDemo.Notifier else { return rt.throwTypeError("receiver must be SwiftDemo.Notifier") } let a0 = { () -> @Sendable (String) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: String) in callback.invoke { r in r.returnString(p0) } } }() @@ -3257,22 +3760,22 @@ private func __nsThunk254(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8NotifierCACycfc -private func __nsThunk255(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk303(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let result: SwiftDemo.Notifier = SwiftDemo.Notifier() - rt.returnObject(result, __nsTypeIndex(result, 42)) + rt.returnObject(result, __nsTypeIndex(result, 51)) } // s:9SwiftDemo8centroid2ofAA5PointVSayAEG_tF -private func __nsThunk256(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk304(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> SwiftDemo.Point? in (s.object(j) as? __NSBox)?.value }) else { return rt.throwTypeError("argument 1 must be an array of SwiftDemo.Point") } let result: SwiftDemo.Point = SwiftDemo.`centroid`(of: a0) - rt.returnObject(__NSBox(result), 26) + rt.returnObject(__NSBox(result), 32) } // s:9SwiftDemo8checksumySi10Foundation4DataVF -private func __nsThunk257(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk305(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.bytes(0) let result: Int = SwiftDemo.`checksum`(a0) @@ -3280,7 +3783,7 @@ private func __nsThunk257(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8countBoxy0aB3Kit0D0CySiGSiF -private func __nsThunk258(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk306(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: SwiftDemoKit.Box = SwiftDemo.`countBox`(a0) @@ -3288,7 +3791,7 @@ private func __nsThunk258(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8describeySS0aB3Kit4PairVySiSSGF -private func __nsThunk259(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk307(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = (rt.slots.object(0) as? __NSBox>)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemoKit.Pair") } let result: String = SwiftDemo.`describe`(a0) @@ -3296,7 +3799,7 @@ private func __nsThunk259(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8describeySSSo6UIViewCF -private func __nsThunk260(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk308(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = rt.slots.object(0) as? UIView else { return rt.throwTypeError("argument 1 must be a UIView") } let result: String = SwiftDemo.`describe`(a0) @@ -3304,7 +3807,7 @@ private func __nsThunk260(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8echoInt8ys0D0VADF -private func __nsThunk261(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk309(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int8(truncatingIfNeeded: rt.slots.int64(0)) let result: Int8 = SwiftDemo.`echoInt8`(a0) @@ -3312,7 +3815,7 @@ private func __nsThunk261(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8makeNoteyAA0D0CSSF -private func __nsThunk262(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk310(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: SwiftDemo.Note = SwiftDemo.`makeNote`(a0) @@ -3320,7 +3823,7 @@ private func __nsThunk262(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8midpointySo7CGPointVAD_ADtF -private func __nsThunk263(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk311(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = ({ () -> (x: CGFloat, y: CGFloat)? in let (t13, t13n) = rt.slots.elements(0) @@ -3341,7 +3844,7 @@ private func __nsThunk263(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8mirroredySaySaySiGGADF -private func __nsThunk264(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk312(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> [Int]? in __nsReadArray(s, j, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) }) else { return rt.throwTypeError("argument 1 must be an array of an array of Int") } let result: [[Int]] = SwiftDemo.`mirrored`(a0) @@ -3349,7 +3852,7 @@ private func __nsThunk264(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF@ -private func __nsThunk265(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk313(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let result: Int = SwiftDemo.`popCount`(a0) @@ -3357,7 +3860,7 @@ private func __nsThunk265(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -private func __nsThunk266(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk314(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -3366,7 +3869,7 @@ private func __nsThunk266(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -private func __nsThunk267(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk315(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.bool(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -3375,7 +3878,7 @@ private func __nsThunk267(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -private func __nsThunk268(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk316(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.double(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -3384,9 +3887,9 @@ private func __nsThunk268(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8scoreAllySaySiGAA6Scorer_p_ACtKF -private func __nsThunk269(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk317(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol30(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Scorer (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol37(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Scorer (a Swift value or JS implementation)") } guard let a1 = __nsReadArray(rt.slots, 1, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 2 must be an array of Int") } do { let result: [Int] = try SwiftDemo.`scoreAll`(a0, a1) @@ -3397,7 +3900,7 @@ private func __nsThunk269(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8shoutAllySSxSyRzlF@ -private func __nsThunk270(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk318(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let result: String = SwiftDemo.`shoutAll`(a0) @@ -3405,15 +3908,15 @@ private func __nsThunk270(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8simplifyyAA7FormulaOADF -private func __nsThunk271(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk319(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsReadCase33(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Formula") } + guard let a0 = __nsReadCase40(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a case of SwiftDemo.Formula") } let result: SwiftDemo.Formula = SwiftDemo.`simplify`(a0) - __nsReportCase33(rt, result) + __nsReportCase40(rt, result) } // s:9SwiftDemo8swapPairySS_SitSi_SSt_tF -private func __nsThunk272(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk320(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = ({ () -> (Int, String)? in let (t15, t15n) = rt.slots.elements(0) @@ -3427,15 +3930,95 @@ private func __nsThunk272(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo8trackersySayAA7TrackerCGSaySiGF -private func __nsThunk273(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk321(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 1 must be an array of Int") } let result: [SwiftDemo.Tracker] = SwiftDemo.`trackers`(a0) - rt.returnArray(result) { element in rt.returnObject(element, __nsTypeIndex(element, 40)) } + rt.returnArray(result) { element in rt.returnObject(element, __nsTypeIndex(element, 47)) } +} + +// s:9SwiftDemo9CancelLogC13cancellationsSivpZ +private func __nsThunk322(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: Int = SwiftDemo.CancelLog.`cancellations` + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo9CancelLogC13cancellationsSivpZ (setter) +private func __nsThunk323(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let newValue = Int(truncatingIfNeeded: rt.slots.int64(0)) + SwiftDemo.CancelLog.`cancellations` = newValue + rt.returnVoid() +} + +// s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF +private func __nsThunk324(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Countdown.AsyncIterator") } + let completion = rt.beginAsync() + let captured = __NSUnchecked(box) + let task = Task { + let box = captured.value + let result: Int? = await box.value.`next`() + if let result { + completion.returnInt64(Int64(result)) + } else { + completion.returnNull() + } + } + completion.onCancel { task.cancel() } +} + +// s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF +private func __nsThunk325(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Countdown") } + let result: SwiftDemo.Countdown.AsyncIterator = box.value.`makeAsyncIterator`() + rt.returnObject(__NSBox(result), 54) +} + +// s:9SwiftDemo9CountdownV4fromACSi_tcfc +private func __nsThunk326(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) + let result: SwiftDemo.Countdown = SwiftDemo.Countdown(from: a0) + rt.returnObject(__NSBox(result), 53) +} + +// s:9SwiftDemo9CountdownV5labelSSvp +private func __nsThunk327(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Countdown") } + let result: String = box.value.`label` + rt.returnString(result) +} + +// s:9SwiftDemo9CountdownV5startSivp +private func __nsThunk328(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Countdown") } + let result: Int = box.value.`start` + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo9StreamLogC12terminationsSivpZ +private func __nsThunk329(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let result: Int = SwiftDemo.StreamLog.`terminations` + rt.returnInt64(Int64(result)) +} + +// s:9SwiftDemo9StreamLogC12terminationsSivpZ (setter) +private func __nsThunk330(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + let newValue = Int(truncatingIfNeeded: rt.slots.int64(0)) + SwiftDemo.StreamLog.`terminations` = newValue + rt.returnVoid() } // s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF -private func __nsThunk274(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk331(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let a1 = rt.slots.isNull(1) ? nil : Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -3444,7 +4027,7 @@ private func __nsThunk274(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo9countdown4from_ySi_ySi_SbtXEtF -private func __nsThunk275(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk332(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let a1 = { () -> (Int, Bool) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Int, p1: Bool) in callback.invoke { r in r.returnInt64(Int64(p0)); r.returnBool(p1) } } }() @@ -3453,7 +4036,7 @@ private func __nsThunk275(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo9fetchItemyySi_ys6ResultOySSs5Error_pGYbctF -private func __nsThunk276(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk333(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = Int(truncatingIfNeeded: rt.slots.int64(0)) let a1 = { () -> @Sendable (Result) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Result) in callback.invoke { r in switch p0 { case .success(let t16v): r.returnCase(0) { r.returnString(t16v) }; case .failure(let t16e): r.returnCase(1) { r.returnErrorValue(t16e) } } } } }() @@ -3462,25 +4045,25 @@ private func __nsThunk276(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF@ -private func __nsThunk277(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk334(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let a1 = rt.slots.string(1) let result: String = SwiftDemo.`greetOnce`(a0, a1) rt.returnString(result) } // s:9SwiftDemo9introduce_2toSSAA8Greeting_p_SStF -private func __nsThunk278(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk335(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let a0 = __nsProtocol41(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } + guard let a0 = __nsProtocol50(rt.slots, 0) else { return rt.throwTypeError("argument 1 must be a SwiftDemo.Greeting (a Swift value or JS implementation)") } let a1 = rt.slots.string(1) let result: String = SwiftDemo.`introduce`(a0, to: a1) rt.returnString(result) } // s:9SwiftDemo9makeLabelySo7UILabelCSSF -private func __nsThunk279(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk336(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) guard Thread.isMainThread else { return rt.throwMessage("makeLabel(_:) is isolated to the main actor; call it on the main thread") } @@ -3491,7 +4074,7 @@ private func __nsThunk279(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo9makeScorey0aB3Kit4PairVySSSiGSS_SitF -private func __nsThunk280(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk337(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let a1 = Int(truncatingIfNeeded: rt.slots.int64(1)) @@ -3500,28 +4083,29 @@ private func __nsThunk280(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:9SwiftDemo9noteLateryAA4NoteCSSYaF -private func __nsThunk281(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk338(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) let a0 = rt.slots.string(0) let completion = rt.beginAsync() let captured = __NSUnchecked(a0) - Task { + let task = Task { let a0 = captured.value let result: SwiftDemo.Note = await SwiftDemo.`noteLater`(a0) completion.returnObjC(result) } + completion.onCancel { task.cancel() } } // s:9SwiftDemo9onMeasureyyyAA11MeasurementOXEF -private func __nsThunk282(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk339(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - let a0 = { () -> (SwiftDemo.Measurement) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(0)); return { (p0: SwiftDemo.Measurement) in callback.invoke { r in __nsReportCase13(r, p0) } } }() + let a0 = { () -> (SwiftDemo.Measurement) -> Void in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(0)); return { (p0: SwiftDemo.Measurement) in callback.invoke { r in __nsReportCase15(r, p0) } } }() let _: Void = SwiftDemo.`onMeasure`(a0) rt.returnVoid() } // s:9SwiftDemo9transformySaySSGSaySiG_SSSiXEtF -private func __nsThunk283(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk340(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let a0 = __nsReadArray(rt.slots, 0, { (s: __NSSlots, j: Int) -> Int? in Int(truncatingIfNeeded: s.int64(j)) }) else { return rt.throwTypeError("argument 1 must be an array of Int") } let a1 = { () -> (Int) -> String in let callback = __NSCallback(api: rt.api, handle: rt.slots.callback(1)); return { (p0: Int) -> String in let result: String? = callback.call({ r in r.returnInt64(Int64(p0)) }, { (s: __NSSlots) -> String? in s.string(0) }); guard let result else { return "" }; return result } }() @@ -3530,31 +4114,31 @@ private func __nsThunk283(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO -private func __nsThunk284(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk341(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsEnum17(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Precipitation") } + guard let receiver = __nsEnum20(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Precipitation") } let result: Int = receiver.`hashValue` rt.returnInt64(Int64(result)) } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO -private func __nsThunk285(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk342(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsEnum28(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Flavor") } + guard let receiver = __nsEnum35(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Flavor") } let result: Int = receiver.`hashValue` rt.returnInt64(Int64(result)) } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO -private func __nsThunk286(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk343(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) - guard let receiver = __nsEnum38(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon.Style") } + guard let receiver = __nsEnum45(rt.string(0)) else { return rt.throwTypeError("receiver must be SwiftDemo.Polygon.Style") } let result: Int = receiver.`hashValue` rt.returnInt64(Int64(result)) } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO -private func __nsThunk287(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk344(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let receiver = __nsReadCase11(rt.slots, 0) else { return rt.throwTypeError("receiver must be SwiftDemo.ShapeError") } let result: String = receiver.`localizedDescription` @@ -3562,7 +4146,7 @@ private func __nsThunk287(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV -private func __nsThunk288(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk345(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.ParseFailure") } let result: String = box.value.`localizedDescription` @@ -3570,15 +4154,53 @@ private func __nsThunk288(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPoin } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV -private func __nsThunk289(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk346(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.CountdownError") } let result: String = box.value.`localizedDescription` rt.returnString(result) } +// s:9SwiftDemo7Vector2V (equals) +private func __nsThunk347(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Vector2") } + guard let other = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Vector2") } + rt.returnBool(box.value == other) +} + +// s:9SwiftDemo7VersionV (equals) +private func __nsThunk348(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Version") } + guard let other = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Version") } + rt.returnBool(box.value == other) +} + +// s:9SwiftDemo7VersionV (compare) +private func __nsThunk349(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Version") } + guard let other = (rt.slots.object(1) as? __NSBox)?.value else { return rt.throwTypeError("argument 1 must be SwiftDemo.Version") } + rt.returnInt64(box.value < other ? -1 : (other < box.value ? 1 : 0)) +} + +// s:9SwiftDemo10WordStreamC (async iterator) +private func __nsThunk350(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let receiver = rt.object(0) as? SwiftDemo.WordStream else { return rt.throwTypeError("receiver must be SwiftDemo.WordStream") } + rt.returnAsyncSequence(__NSAsyncIterator(receiver) { r, element in r.returnString(element) }) +} + +// s:9SwiftDemo9CountdownV (async iterator) +private func __nsThunk351(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { + let rt = __NSCall(call: call, args: args) + guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Countdown") } + rt.returnAsyncSequence(__NSAsyncIterator(box.value) { r, element in r.returnInt64(Int64(element)) }) +} + // s:9SwiftDemo5BadgeV (hosting) -private func __nsThunk290(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { +private func __nsThunk352(_ call: UnsafeMutableRawPointer, _ args: UnsafeRawPointer?, _ count: Int) { let rt = __NSCall(call: call, args: args) guard let box = rt.object(0) as? __NSBox else { return rt.throwTypeError("receiver must be SwiftDemo.Badge") } guard Thread.isMainThread else { return rt.throwMessage("hostingController() is isolated to the main actor; call it on the main thread") } @@ -3595,7 +4217,7 @@ private func __nsRegister(_ registrar: UnsafeMutableRawPointer) { let registerUnitModule = api.load(fromByteOffset: 336, as: (@convention(c) (UnsafeMutableRawPointer, UnsafePointer) -> Void).self) let registerTracker = api.load(fromByteOffset: 384, as: (@convention(c) (UnsafeMutableRawPointer, __NSTracker) -> Void).self) - registerModule(registrar, 13, "SwiftDemo", "729d3a28a4a431cf", __nsRelease) + registerModule(registrar, 15, "SwiftDemo", "a24829f4bea87cd9", __nsRelease) registerUnitModule(registrar, "SwiftDemo") registerUnitModule(registrar, "SwiftDemoKit") registerTracker(registrar, __nsTrack) @@ -3612,36 +4234,49 @@ private func __nsRegister(_ registrar: UnsafeMutableRawPointer) { registerType(registrar, 10, 0, "SwiftDemo", "Demo", "SwiftDemo.Demo", -1) registerType(registrar, 11, 4, "SwiftDemo", "ShapeError", "SwiftDemo.ShapeError", -1) registerType(registrar, 12, 0, "SwiftDemo", "Thermostat", "SwiftDemo.Thermostat", -1) - registerType(registrar, 13, 4, "SwiftDemo", "Measurement", "SwiftDemo.Measurement", -1) - registerType(registrar, 14, 2, "SwiftDemo", "Measurement.Unit", "SwiftDemo.Measurement.Unit", -1) - registerType(registrar, 15, 2, "SwiftDemo", "ParseFailure", "SwiftDemo.ParseFailure", -1) - registerType(registrar, 16, 5, "SwiftDemo", "RankedScorer", "SwiftDemo.RankedScorer", 30) - registerType(registrar, 17, 3, "SwiftDemo", "Precipitation", "SwiftDemo.Precipitation", -1) - registerType(registrar, 18, 2, "SwiftDemo", "CountdownError", "SwiftDemo.CountdownError", -1) - registerType(registrar, 19, 2, "SwiftDemo", "DoublingScorer", "SwiftDemo.DoublingScorer", -1) - registerType(registrar, 20, 0, "SwiftDemo", "FormalGreeting", "SwiftDemo.FormalGreeting", -1) - registerType(registrar, 21, 0, "SwiftDemo", "GreetingHolder", "SwiftDemo.GreetingHolder", -1) - registerType(registrar, 22, 2, "SwiftDemo", "Job.Ticket", "SwiftDemo.Job.Ticket", -1) - registerType(registrar, 23, 2, "SwiftDemo", "Ring", "SwiftDemo.Ring", -1) - registerType(registrar, 24, 2, "SwiftDemo", "Badge", "SwiftDemo.Badge", -1) - registerType(registrar, 25, 0, "SwiftDemo", "Bench", "SwiftDemo.Bench", -1) - registerType(registrar, 26, 2, "SwiftDemo", "Point", "SwiftDemo.Point", -1) - registerType(registrar, 27, 0, "SwiftDemo", "Canvas", "SwiftDemo.Canvas", -1) - registerType(registrar, 28, 3, "SwiftDemo", "Flavor", "SwiftDemo.Flavor", -1) - registerType(registrar, 29, 0, "SwiftDemo", "Loader", "SwiftDemo.Loader", -1) - registerType(registrar, 30, 5, "SwiftDemo", "Scorer", "SwiftDemo.Scorer", -1) - registerType(registrar, 31, 0, "SwiftDemo", "Square", "SwiftDemo.Square", 37) - registerType(registrar, 32, 1, "SwiftDemo", "Counter", "SwiftDemo.Counter", -1) - registerType(registrar, 33, 4, "SwiftDemo", "Formula", "SwiftDemo.Formula", -1) - registerType(registrar, 34, 5, "SwiftDemo", "Greeter", "SwiftDemo.Greeter", -1) - registerType(registrar, 35, 0, "SwiftDemo", "Palette", "SwiftDemo.Palette", -1) - registerType(registrar, 36, 4, "SwiftDemo", "Payload", "SwiftDemo.Payload", -1) - registerType(registrar, 37, 0, "SwiftDemo", "Polygon", "SwiftDemo.Polygon", -1) - registerType(registrar, 38, 3, "SwiftDemo", "Polygon.Style", "SwiftDemo.Polygon.Style", -1) - registerType(registrar, 39, 2, "SwiftDemo", "Polygon.Metrics", "SwiftDemo.Polygon.Metrics", -1) - registerType(registrar, 40, 0, "SwiftDemo", "Tracker", "SwiftDemo.Tracker", -1) - registerType(registrar, 41, 5, "SwiftDemo", "Greeting", "SwiftDemo.Greeting", -1) - registerType(registrar, 42, 0, "SwiftDemo", "Notifier", "SwiftDemo.Notifier", -1) + registerType(registrar, 13, 0, "SwiftDemo", "WordStream", "SwiftDemo.WordStream", -1) + registerType(registrar, 14, 2, "SwiftDemo", "WordStream.Iterator", "SwiftDemo.WordStream.Iterator", -1) + registerType(registrar, 15, 4, "SwiftDemo", "Measurement", "SwiftDemo.Measurement", -1) + registerType(registrar, 16, 2, "SwiftDemo", "Measurement.Unit", "SwiftDemo.Measurement.Unit", -1) + registerType(registrar, 17, 0, "SwiftDemo", "Thermometer", "SwiftDemo.Thermometer", -1) + registerType(registrar, 18, 2, "SwiftDemo", "ParseFailure", "SwiftDemo.ParseFailure", -1) + registerType(registrar, 19, 5, "SwiftDemo", "RankedScorer", "SwiftDemo.RankedScorer", 37) + registerType(registrar, 20, 3, "SwiftDemo", "Precipitation", "SwiftDemo.Precipitation", -1) + registerType(registrar, 21, 2, "SwiftDemo", "CountdownError", "SwiftDemo.CountdownError", -1) + registerType(registrar, 22, 2, "SwiftDemo", "DoublingScorer", "SwiftDemo.DoublingScorer", -1) + registerType(registrar, 23, 0, "SwiftDemo", "FormalGreeting", "SwiftDemo.FormalGreeting", -1) + registerType(registrar, 24, 0, "SwiftDemo", "GreetingHolder", "SwiftDemo.GreetingHolder", -1) + registerType(registrar, 25, 0, "SwiftDemo", "GreetingRegistry", "SwiftDemo.GreetingRegistry", -1) + registerType(registrar, 26, 0, "SwiftDemo", "WeakGreetingHolder", "SwiftDemo.WeakGreetingHolder", -1) + registerType(registrar, 27, 2, "SwiftDemo", "Job.Ticket", "SwiftDemo.Job.Ticket", -1) + registerType(registrar, 28, 2, "SwiftDemo", "Grid", "SwiftDemo.Grid", -1) + registerType(registrar, 29, 2, "SwiftDemo", "Ring", "SwiftDemo.Ring", -1) + registerType(registrar, 30, 2, "SwiftDemo", "Badge", "SwiftDemo.Badge", -1) + registerType(registrar, 31, 0, "SwiftDemo", "Bench", "SwiftDemo.Bench", -1) + registerType(registrar, 32, 2, "SwiftDemo", "Point", "SwiftDemo.Point", -1) + registerType(registrar, 33, 0, "SwiftDemo", "Shelf", "SwiftDemo.Shelf", -1) + registerType(registrar, 34, 0, "SwiftDemo", "Canvas", "SwiftDemo.Canvas", -1) + registerType(registrar, 35, 3, "SwiftDemo", "Flavor", "SwiftDemo.Flavor", -1) + registerType(registrar, 36, 0, "SwiftDemo", "Loader", "SwiftDemo.Loader", -1) + registerType(registrar, 37, 5, "SwiftDemo", "Scorer", "SwiftDemo.Scorer", -1) + registerType(registrar, 38, 0, "SwiftDemo", "Square", "SwiftDemo.Square", 44) + registerType(registrar, 39, 1, "SwiftDemo", "Counter", "SwiftDemo.Counter", -1) + registerType(registrar, 40, 4, "SwiftDemo", "Formula", "SwiftDemo.Formula", -1) + registerType(registrar, 41, 5, "SwiftDemo", "Greeter", "SwiftDemo.Greeter", -1) + registerType(registrar, 42, 0, "SwiftDemo", "Palette", "SwiftDemo.Palette", -1) + registerType(registrar, 43, 4, "SwiftDemo", "Payload", "SwiftDemo.Payload", -1) + registerType(registrar, 44, 0, "SwiftDemo", "Polygon", "SwiftDemo.Polygon", -1) + registerType(registrar, 45, 3, "SwiftDemo", "Polygon.Style", "SwiftDemo.Polygon.Style", -1) + registerType(registrar, 46, 2, "SwiftDemo", "Polygon.Metrics", "SwiftDemo.Polygon.Metrics", -1) + registerType(registrar, 47, 0, "SwiftDemo", "Tracker", "SwiftDemo.Tracker", -1) + registerType(registrar, 48, 2, "SwiftDemo", "Vector2", "SwiftDemo.Vector2", -1) + registerType(registrar, 49, 2, "SwiftDemo", "Version", "SwiftDemo.Version", -1) + registerType(registrar, 50, 5, "SwiftDemo", "Greeting", "SwiftDemo.Greeting", -1) + registerType(registrar, 51, 0, "SwiftDemo", "Notifier", "SwiftDemo.Notifier", -1) + registerType(registrar, 52, 0, "SwiftDemo", "CancelLog", "SwiftDemo.CancelLog", -1) + registerType(registrar, 53, 2, "SwiftDemo", "Countdown", "SwiftDemo.Countdown", -1) + registerType(registrar, 54, 2, "SwiftDemo", "Countdown.AsyncIterator", "SwiftDemo.Countdown.AsyncIterator", -1) + registerType(registrar, 55, 0, "SwiftDemo", "StreamLog", "SwiftDemo.StreamLog", -1) registerMember(registrar, 2, 3, 2, "SwiftDemoKit", "value", "value", ">o7", __nsThunk0, __nsThunk1) registerMember(registrar, 3, 3, 2, "SwiftDemoKit", "value", "value", ">i64", __nsThunk2, __nsThunk3) registerMember(registrar, 2, 4, 0, "SwiftDemoKit", "sample", "sample", ">o3", __nsThunk4, nil) @@ -3686,252 +4321,308 @@ private func __nsRegister(_ registrar: UnsafeMutableRawPointer) { registerMember(registrar, 12, 3, 2, "SwiftDemo", "celsius", "celsius", ">f64", __nsThunk43, __nsThunk44) registerMember(registrar, 12, 1, 0, "SwiftDemo", "warmLater", "warmLater(by:)", "f64>v", __nsThunk45, nil) registerMember(registrar, 12, 0, 0, "SwiftDemo", "constructor", "init()", ">o12", __nsThunk46, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "allFlavors", "allFlavors()", ">[e28]", __nsThunk47, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "checkSides", "checkSides(_:)", "i64>R(v,t11)", __nsThunk48, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoString", "echoString(_:)", "s>s", __nsThunk49, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoUInt64", "echoUInt64(_:)", "u64>u64", __nsThunk50, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "firstMatch", "firstMatch(_:where:)", "[i64],(i64>b)>i64?", __nsThunk51, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetLater", "greetLater(_:completion:)", "s?,(s?)>v", __nsThunk52, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetTwice", "greetTwice(_:_:)", "p41,s>s", __nsThunk53, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "largestInt", "largestInt()", ">i64", __nsThunk54, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeScorer", "makeScorer()", ">p30", __nsThunk55, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "namesLater", "namesLater(_:)", "i64>[s]", __nsThunk56, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "parseLater", "parseLater(_:)", "s>R(i64,!)", __nsThunk57, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "tallyLater", "tallyLater(_:)", "[s]>*(unique:S[s],count:i64)", __nsThunk58, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "uniqueTags", "uniqueTags(_:)", "[s]>S[s]", __nsThunk59, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "wordCounts", "wordCounts(_:)", "[s]>{i64}", __nsThunk60, nil) - registerMember(registrar, 0, 3, 16, "SwiftDemo", "count", "count", ">i64", __nsThunk61, nil) - registerMember(registrar, 0, 1, 16, "SwiftDemo", "configure", "configure(start:step:)", "i64,i64?>i64", __nsThunk62, nil) - registerMember(registrar, 14, 0, 0, "SwiftDemo", "constructor", "init(symbol:)", "s>o14", __nsThunk63, nil) - registerMember(registrar, 14, 3, 2, "SwiftDemo", "symbol", "symbol", ">s", __nsThunk64, __nsThunk65) - registerMember(registrar, 13, 7, 0, "SwiftDemo", "area", "area(width:height:)", "f64,f64>t13", nil, nil) - registerMember(registrar, 13, 7, 0, "SwiftDemo", "none", "none", ">t13", nil, nil) - registerMember(registrar, 13, 3, 0, "SwiftDemo", "isNone", "isNone", ">b", __nsThunk66, nil) - registerMember(registrar, 13, 7, 0, "SwiftDemo", "length", "length(_:)", "f64>t13", nil, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "checkedSide", "checkedSide(_:)", "f64>f64", __nsThunk67, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "countUnique", "countUnique(_:)", "S[i64]>i64", __nsThunk68, nil) - registerMember(registrar, -1, 5, 9, "SwiftDemo", "delayedEcho", "delayedEcho(_:after:)", "s,f64>s", __nsThunk69, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "knownScores", "knownScores(_:)", "{i64?}>{i64?}", __nsThunk70, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "parseNumber", "parseNumber(_:)", "s>R(i64,!)", __nsThunk71, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "sortedNames", "sortedNames(_:by:)", "[s],(s,s>b)>[s]", __nsThunk72, nil) - registerMember(registrar, 15, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk73, nil) - registerMember(registrar, 15, 3, 0, "SwiftDemo", "text", "text", ">s", __nsThunk74, nil) - registerMember(registrar, 16, 3, 32, "SwiftDemo", "rank", "rank", ">i64?", __nsThunk75, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstSubview", "firstSubview(of:)", "@UIView>@UIView?", __nsThunk76, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "latitudeSpan", "latitudeSpan(_:_:)", "*(latitude:f64,longitude:f64),*(latitude:f64,longitude:f64)>f64", __nsThunk77, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeGreeting", "makeGreeting(_:)", "s>p41", __nsThunk78, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "measureLater", "measureLater(_:)", "f64>t13", __nsThunk79, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "measurements", "measurements()", ">[t13]", __nsThunk80, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "swapTrackers", "swapTrackers(_:_:)", "&o40,&o40>v", __nsThunk81, nil) - registerMember(registrar, 17, 7, 0, "SwiftDemo", "none", "none", ">e17", nil, nil) - registerMember(registrar, 17, 7, 0, "SwiftDemo", "rain", "rain", ">e17", nil, nil) - registerMember(registrar, 17, 7, 0, "SwiftDemo", "snow", "snow", ">e17", nil, nil) - registerMember(registrar, 17, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "s>e17?", __nsThunk82, nil) - registerMember(registrar, -1, 6, 0, "SwiftDemo", "defaultFlavor", "defaultFlavor", ">e28", __nsThunk83, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeError", "describeError(_:)", "!?>s", __nsThunk84, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "s>s", __nsThunk85, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "b>s", __nsThunk86, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "f64>s", __nsThunk87, nil) - registerMember(registrar, -1, 6, 2, "SwiftDemo", "globalCounter", "globalCounter", ">i64", __nsThunk88, __nsThunk89) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "starterWallet", "starterWallet(for:)", "s>o8", __nsThunk90, nil) - registerMember(registrar, 19, 1, 0, "SwiftDemo", "score", "score(_:)", "i64>i64", __nsThunk91, nil) - registerMember(registrar, 19, 0, 0, "SwiftDemo", "constructor", "init()", ">o19", __nsThunk92, nil) - registerMember(registrar, 20, 3, 2, "SwiftDemo", "punctuation", "punctuation", ">s", __nsThunk93, __nsThunk94) - registerMember(registrar, 20, 0, 0, "SwiftDemo", "constructor", "init(name:)", "s>o20", __nsThunk95, nil) - registerMember(registrar, 20, 3, 0, "SwiftDemo", "name", "name", ">s", __nsThunk96, nil) - registerMember(registrar, 20, 1, 0, "SwiftDemo", "greet", "greet(_:)", "s>s", __nsThunk97, nil) - registerMember(registrar, 20, 1, 0, "SwiftDemo", "reset", "reset()", ">v", __nsThunk98, nil) - registerMember(registrar, 21, 1, 0, "SwiftDemo", "greet", "greet(_:)", "s>s?", __nsThunk99, nil) - registerMember(registrar, 21, 3, 2, "SwiftDemo", "greeting", "greeting", ">p41?", __nsThunk100, __nsThunk101) - registerMember(registrar, 21, 0, 0, "SwiftDemo", "constructor", "init()", ">o21", __nsThunk102, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeDefaultPoint", "makeDefaultPoint()", ">o26", __nsThunk103, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "makeTrackerLater", "makeTrackerLater(id:)", "i64>o40", __nsThunk104, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "greetInBackground", "greetInBackground(_:)", "p41>s", __nsThunk105, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "computeInBackground", "computeInBackground(_:)", "(>i64)>i64", __nsThunk106, nil) - registerMember(registrar, 22, 0, 0, "SwiftDemo", "constructor", "init(id:)", "i64>o22", __nsThunk107, nil) - registerMember(registrar, 22, 3, 2, "SwiftDemo", "id", "id", ">i64", __nsThunk108, __nsThunk109) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "sum", "sum(of:)", "[o7]>o7", __nsThunk110, nil) - registerMember(registrar, 1, 3, 2, "SwiftDemo", "tags", "tags", ">S[s]", __nsThunk111, __nsThunk112) - registerMember(registrar, 1, 0, 0, "SwiftDemo", "constructor", "init(text:)", "s>@SwiftDemo.Note", __nsThunk113, nil) - registerMember(registrar, 1, 3, 0, "SwiftDemo", "text", "text", ">s", __nsThunk114, nil) - registerMember(registrar, 1, 2, 0, "SwiftDemo", "blank", "blank()", ">@SwiftDemo.Note", __nsThunk115, nil) - registerMember(registrar, 1, 1, 0, "SwiftDemo", "tagged", "tagged(_:)", "s>@SwiftDemo.Note", __nsThunk116, nil) - registerMember(registrar, 1, 1, 0, "SwiftDemo", "summary", "summary(maxLength:)", "i64>s", __nsThunk117, nil) - registerMember(registrar, 23, 0, 0, "SwiftDemo", "constructor", "init(inner:outer:)", "o26,o26>o23", __nsThunk118, nil) - registerMember(registrar, 23, 3, 2, "SwiftDemo", "inner", "inner", ">o26", __nsThunk119, __nsThunk120) - registerMember(registrar, 23, 3, 2, "SwiftDemo", "outer", "outer", ">o26", __nsThunk121, __nsThunk122) - registerMember(registrar, 23, 1, 0, "SwiftDemo", "expand", "expand(by:)", "f64>v", __nsThunk123, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "area", "area(of:)", "t13>f64", __nsThunk124, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "bump", "bump(_:)", "&i64>v", __nsThunk125, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "echo", "echo(_:)", "t36>t36", __nsThunk126, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "flip", "flip(_:)", "e4>e4", __nsThunk127, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "host", "host(of:)", "U>s?", __nsThunk128, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "plot", "plot(_:)", "*(x:f64,y:f64)?>s?", __nsThunk129, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "ramp", "ramp(_:)", "i64>B", __nsThunk130, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "same", "same(_:)", "p41>p41", __nsThunk131, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "tags", "tags(_:)", "[@UIView]>[i64]", __nsThunk132, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "text", "text(of:)", "@SwiftDemo.Note>s", __nsThunk133, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "zero", "zero()", ">f64", __nsThunk134, nil) - registerMember(registrar, 24, 3, 18, "SwiftDemo", "count", "count", ">i64", __nsThunk135, __nsThunk136) - registerMember(registrar, 24, 0, 16, "SwiftDemo", "constructor", "init(title:count:)", "s,i64>o24", __nsThunk137, nil) - registerMember(registrar, 24, 3, 18, "SwiftDemo", "title", "title", ">s", __nsThunk138, __nsThunk139) - registerMember(registrar, 25, 1, 0, "SwiftDemo", "echo", "echo(_:)", "i64>i64", __nsThunk140, nil) - registerMember(registrar, 25, 2, 0, "SwiftDemo", "echo", "echo(_:)", "i64>i64", __nsThunk141, nil) - registerMember(registrar, 25, 3, 2, "SwiftDemo", "value", "value", ">i64", __nsThunk142, __nsThunk143) - registerMember(registrar, 25, 0, 0, "SwiftDemo", "constructor", "init()", ">o25", __nsThunk144, nil) - registerMember(registrar, 26, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk145, nil) - registerMember(registrar, 26, 0, 0, "SwiftDemo", "constructor", "init(x:y:)", "f64,f64>o26", __nsThunk146, nil) - registerMember(registrar, 26, 3, 2, "SwiftDemo", "x", "x", ">f64", __nsThunk147, __nsThunk148) - registerMember(registrar, 26, 3, 2, "SwiftDemo", "y", "y", ">f64", __nsThunk149, __nsThunk150) - registerMember(registrar, 26, 3, 0, "SwiftDemo", "length", "length", ">f64", __nsThunk151, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "boxed", "boxed(_:)", "o7>o2", __nsThunk152, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "clear", "clear(_:)", "&s?>v", __nsThunk153, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "halve", "halve(_:)", "&i64>v", __nsThunk154, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "holes", "holes(_:)", "i64>[s?]", __nsThunk155, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "inset", "inset(_:by:)", "*(origin:*(x:f64,y:f64),size:*(width:f64,height:f64)),*(top:f64,left:f64,bottom:f64,right:f64)>*(origin:*(x:f64,y:f64),size:*(width:f64,height:f64))", __nsThunk156, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "names", "names(_:)", "i64>[s]", __nsThunk157, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "pages", "pages(_:)", "i64>~[s]", __nsThunk158, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "shout", "shout(_:)", "s?>s?", __nsThunk159, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "spans", "spans()", ">[*(s,i64?)]", __nsThunk160, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "tagOf", "tagOf(_:)", "@UIView>i64", __nsThunk161, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "total", "total(_:)", "[f64]>f64", __nsThunk162, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "unbox", "unbox(_:)", "o2>o7", __nsThunk163, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "unbox", "unbox(_:)", "o3>i64", __nsThunk164, nil) - registerMember(registrar, 27, 0, 16, "SwiftDemo", "constructor", "init()", ">o27", __nsThunk165, nil) - registerMember(registrar, 28, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk166, nil) - registerMember(registrar, 28, 7, 0, "SwiftDemo", "vanilla", "vanilla", ">e28", nil, nil) - registerMember(registrar, 28, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "i64>e28?", __nsThunk167, nil) - registerMember(registrar, 28, 7, 0, "SwiftDemo", "chocolate", "chocolate", ">e28", nil, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "modernOnly", "modernOnly()", ">v", __nsThunk168, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "legacyFetch", "legacyFetch()", ">v", __nsThunk169, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "withCompletion", "withCompletion(_:)", "(R(s,t11))>v", __nsThunk170, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "each", "each(_:)", "(i64)>v", __nsThunk171, nil) - registerMember(registrar, 29, 1, 1, "SwiftDemo", "load", "load(path:)", "s>B", __nsThunk172, nil) - registerMember(registrar, 29, 1, 8, "SwiftDemo", "wait", "wait(seconds:)", "f64>v", __nsThunk173, nil) - registerMember(registrar, 29, 1, 9, "SwiftDemo", "fetch", "fetch(url:)", "U>s", __nsThunk174, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "first", "first(of:)", "[s]>s?", __nsThunk175, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "first", "first(of:)", "[b]>b?", __nsThunk176, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "first", "first(of:)", "[f64]>f64?", __nsThunk177, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "lookup", "lookup(table:key:)", "{i64},s>i64?", __nsThunk178, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "update", "update(_:)", "&o26>v", __nsThunk179, nil) - registerMember(registrar, 29, 1, 0, "SwiftDemo", "oldFetch", "oldFetch()", ">v", __nsThunk180, nil) - registerMember(registrar, 29, 0, 0, "SwiftDemo", "constructor", "init()", ">o29", __nsThunk181, nil) - registerMember(registrar, 30, 1, 33, "SwiftDemo", "score", "score(_:)", "i64>i64", __nsThunk182, nil) - registerMember(registrar, 31, 3, 0, "SwiftDemo", "area", "area", ">f64", __nsThunk183, nil) - registerMember(registrar, 31, 0, 0, "SwiftDemo", "constructor", "init(side:)", "f64>o31", __nsThunk184, nil) - registerMember(registrar, 31, 3, 2, "SwiftDemo", "side", "side", ">f64", __nsThunk185, __nsThunk186) - registerMember(registrar, 31, 1, 0, "SwiftDemo", "greet", "greet(name:)", "s>s", __nsThunk187, nil) - registerMember(registrar, 31, 1, 0, "SwiftDemo", "scale", "scale(by:)", "f64>v", __nsThunk188, nil) - registerMember(registrar, 31, 4, 0, "SwiftDemo", "sides", "sides", ">i64", __nsThunk189, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "append", "append(_:to:)", "s,&[s]>v", __nsThunk190, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "divide", "divide(_:by:)", "i64,i64>*(quotient:i64,remainder:i64)", __nsThunk191, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "excite", "excite(_:)", "p41>v", __nsThunk192, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "lookup", "lookup(_:_:)", "s,(s>i64?)>i64", __nsThunk193, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "settle", "settle(_:)", "i64>t9", __nsThunk194, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "unwrap", "unwrap(_:)", "R(s,!)>s", __nsThunk195, nil) - registerMember(registrar, 32, 3, 8, "SwiftDemo", "step", "step", ">i64", __nsThunk196, nil) - registerMember(registrar, 32, 1, 0, "SwiftDemo", "label", "label()", ">s", __nsThunk197, nil) - registerMember(registrar, 32, 3, 8, "SwiftDemo", "value", "value", ">i64", __nsThunk198, nil) - registerMember(registrar, 32, 1, 8, "SwiftDemo", "increment", "increment()", ">i64", __nsThunk199, nil) - registerMember(registrar, 32, 0, 0, "SwiftDemo", "constructor", "init()", ">o32", __nsThunk200, nil) - registerMember(registrar, 33, 7, 0, "SwiftDemo", "sum", "sum(_:_:)", "t33,t33>t33", nil, nil) - registerMember(registrar, 33, 3, 0, "SwiftDemo", "value", "value", ">f64", __nsThunk201, nil) - registerMember(registrar, 33, 7, 0, "SwiftDemo", "negate", "negate(_:)", "t33>t33", nil, nil) - registerMember(registrar, 33, 7, 0, "SwiftDemo", "number", "number(_:)", "f64>t33", nil, nil) - registerMember(registrar, 34, 1, 32, "SwiftDemo", "greet", "greet(name:)", "s>s", __nsThunk202, nil) - registerMember(registrar, 35, 1, 8, "SwiftDemo", "strokeLater", "strokeLater()", ">i64", __nsThunk203, nil) - registerMember(registrar, 35, 1, 16, "SwiftDemo", "stroke", "stroke()", ">i64", __nsThunk204, nil) - registerMember(registrar, 35, 3, 16, "SwiftDemo", "strokes", "strokes", ">i64", __nsThunk205, nil) - registerMember(registrar, 35, 0, 16, "SwiftDemo", "constructor", "init()", ">o35", __nsThunk206, nil) - registerMember(registrar, 36, 7, 0, "SwiftDemo", "maybe", "maybe(_:)", "i64?>t36", nil, nil) - registerMember(registrar, 36, 7, 0, "SwiftDemo", "names", "names(_:)", "[s]>t36", nil, nil) - registerMember(registrar, 36, 7, 0, "SwiftDemo", "point", "point(_:)", "o26>t36", nil, nil) - registerMember(registrar, 36, 7, 0, "SwiftDemo", "flavor", "flavor(_:)", "e28>t36", nil, nil) - registerMember(registrar, 36, 7, 0, "SwiftDemo", "tracker", "tracker(_:)", "o40>t36", nil, nil) - registerMember(registrar, 37, 3, 0, "SwiftDemo", "vertexCount", "vertexCount", ">i64", __nsThunk207, nil) - registerMember(registrar, 37, 2, 0, "SwiftDemo", "make", "make()", ">o37", __nsThunk208, nil) - registerMember(registrar, 37, 0, 0, "SwiftDemo", "constructor", "init(name:vertexCount:)", "s,i64>o37", __nsThunk209, nil) - registerMember(registrar, 37, 0, 0, "SwiftDemo", "constructor", "init(name:)", "s>o37?", __nsThunk210, nil) - registerMember(registrar, 37, 3, 0, "SwiftDemo", "name", "name", ">s", __nsThunk211, nil) - registerMember(registrar, 38, 7, 0, "SwiftDemo", "solid", "solid", ">e38", nil, nil) - registerMember(registrar, 38, 7, 0, "SwiftDemo", "dashed", "dashed", ">e38", nil, nil) - registerMember(registrar, 38, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "s>e38?", __nsThunk212, nil) - registerMember(registrar, 37, 1, 0, "SwiftDemo", "scale", "scale(x:y:)", "f64,f64>v", __nsThunk213, nil) - registerMember(registrar, 37, 1, 4, "SwiftDemo", "scale", "scale(by:)", "f64>v", __nsThunk214, nil) - registerMember(registrar, 37, 1, 4, "SwiftDemo", "scale", "scale(by:)", "i64>v", __nsThunk215, nil) - registerMember(registrar, 37, 3, 0, "SwiftDemo", "style", "style", ">e38", __nsThunk216, nil) - registerMember(registrar, 37, 4, 0, "SwiftDemo", "shared", "shared", ">o37", __nsThunk217, nil) - registerMember(registrar, 39, 0, 0, "SwiftDemo", "constructor", "init(perimeter:)", "f64>o39", __nsThunk218, nil) - registerMember(registrar, 39, 3, 2, "SwiftDemo", "perimeter", "perimeter", ">f64", __nsThunk219, __nsThunk220) - registerMember(registrar, 37, 1, 0, "SwiftDemo", "metrics", "metrics(side:)", "f64>o39", __nsThunk221, nil) - registerMember(registrar, 37, 2, 0, "SwiftDemo", "describe", "describe(_:)", "o37?>s", __nsThunk222, nil) - registerMember(registrar, 40, 0, 0, "SwiftDemo", "constructor", "init(id:)", "i64>o40", __nsThunk223, nil) - registerMember(registrar, 40, 3, 0, "SwiftDemo", "id", "id", ">i64", __nsThunk224, nil) - registerMember(registrar, 40, 1, 0, "SwiftDemo", "same", "same()", ">o40", __nsThunk225, nil) - registerMember(registrar, 40, 4, 0, "SwiftDemo", "liveCount", "liveCount", ">i64", __nsThunk226, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "compact", "compact(_:)", "[i64?]>[i64]", __nsThunk227, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "countUp", "countUp(to:)", "i64>~i64", __nsThunk228, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoInt", "echoInt(_:)", "i64>i64", __nsThunk229, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "explain", "explain(_:)", "t11>s", __nsThunk230, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstOf", "firstOf(_:)", "o5>s", __nsThunk231, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstOf", "firstOf(_:)", "o6>i64", __nsThunk232, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "fitting", "fitting(_:)", "*(width:f64,height:f64)?>*(width:f64,height:f64)?", __nsThunk233, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "largest", "largest(_:)", "[s]>s?", __nsThunk234, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "largest", "largest(_:)", "[f64]>f64?", __nsThunk235, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "lengths", "lengths(_:)", "{s}>{i64}", __nsThunk236, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "letters", "letters(of:)", "s>~s", __nsThunk237, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "measure", "measure(_:by:)", "f64,f64?>t13", __nsThunk238, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "nextDay", "nextDay(after:)", "D>D", __nsThunk239, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "resolve", "resolve(_:against:)", "s,U>U", __nsThunk240, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "topRank", "topRank(_:)", "p16>s", __nsThunk241, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "viewTag", "viewTag(_:)", "@UIView>i64", __nsThunk242, nil) - registerMember(registrar, 41, 3, 34, "SwiftDemo", "punctuation", "punctuation", ">s", __nsThunk243, __nsThunk244) - registerMember(registrar, 41, 3, 32, "SwiftDemo", "name", "name", ">s", __nsThunk245, nil) - registerMember(registrar, 41, 1, 32, "SwiftDemo", "greet", "greet(_:)", "s>s", __nsThunk246, nil) - registerMember(registrar, 41, 1, 32, "SwiftDemo", "reset", "reset()", ">v", __nsThunk247, nil) - registerMember(registrar, 41, 1, 0, "SwiftDemo", "shout", "shout(_:)", "s>s", __nsThunk248, nil) - registerMember(registrar, 20, 1, 0, "SwiftDemo", "shout", "shout(_:)", "s>s", __nsThunk249, nil) - registerMember(registrar, 42, 1, 0, "SwiftDemo", "publishLater", "publishLater(_:)", "s>v", __nsThunk250, nil) - registerMember(registrar, 42, 1, 0, "SwiftDemo", "clear", "clear()", ">v", __nsThunk251, nil) - registerMember(registrar, 42, 3, 0, "SwiftDemo", "count", "count", ">i64", __nsThunk252, nil) - registerMember(registrar, 42, 1, 0, "SwiftDemo", "publish", "publish(_:)", "s>v", __nsThunk253, nil) - registerMember(registrar, 42, 1, 0, "SwiftDemo", "subscribe", "subscribe(_:)", "(s)>v", __nsThunk254, nil) - registerMember(registrar, 42, 0, 0, "SwiftDemo", "constructor", "init()", ">o42", __nsThunk255, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "centroid", "centroid(of:)", "[o26]>o26", __nsThunk256, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "checksum", "checksum(_:)", "B>i64", __nsThunk257, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "countBox", "countBox(_:)", "i64>o3", __nsThunk258, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describe", "describe(_:)", "o6>s", __nsThunk259, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "describe", "describe(_:)", "@UIView>s", __nsThunk260, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoInt8", "echoInt8(_:)", "i8>i8", __nsThunk261, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeNote", "makeNote(_:)", "s>@SwiftDemo.Note", __nsThunk262, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "midpoint", "midpoint(_:_:)", "*(x:f64,y:f64),*(x:f64,y:f64)>*(x:f64,y:f64)", __nsThunk263, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "mirrored", "mirrored(_:)", "[[i64]]>[[i64]]", __nsThunk264, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "popCount", "popCount(_:)", "i64>i64", __nsThunk265, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "s,i64>[s]", __nsThunk266, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "b,i64>[b]", __nsThunk267, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "f64,i64>[f64]", __nsThunk268, nil) - registerMember(registrar, -1, 5, 1, "SwiftDemo", "scoreAll", "scoreAll(_:_:)", "p30,[i64]>[i64]", __nsThunk269, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "shoutAll", "shoutAll(_:)", "s>s", __nsThunk270, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "simplify", "simplify(_:)", "t33>t33", __nsThunk271, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "swapPair", "swapPair(_:)", "*(i64,s)>*(s,i64)", __nsThunk272, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "trackers", "trackers(_:)", "[i64]>[o40]", __nsThunk273, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "countDown", "countDown(from:failingAt:)", "i64,i64?>~i64", __nsThunk274, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "countdown", "countdown(from:_:)", "i64,(i64,b)>v", __nsThunk275, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "fetchItem", "fetchItem(_:_:)", "i64,(R(s,!))>v", __nsThunk276, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetOnce", "greetOnce(_:_:)", "p41,s>s", __nsThunk277, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "introduce", "introduce(_:to:)", "p41,s>s", __nsThunk278, nil) - registerMember(registrar, -1, 5, 16, "SwiftDemo", "makeLabel", "makeLabel(_:)", "s>@UILabel", __nsThunk279, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeScore", "makeScore(_:_:)", "s,i64>o5", __nsThunk280, nil) - registerMember(registrar, -1, 5, 8, "SwiftDemo", "noteLater", "noteLater(_:)", "s>@SwiftDemo.Note", __nsThunk281, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "onMeasure", "onMeasure(_:)", "(t13)>v", __nsThunk282, nil) - registerMember(registrar, -1, 5, 0, "SwiftDemo", "transform", "transform(_:_:)", "[i64],(i64>s)>[s]", __nsThunk283, nil) - registerMember(registrar, 17, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk284, nil) - registerMember(registrar, 28, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk285, nil) - registerMember(registrar, 38, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk286, nil) - registerMember(registrar, 11, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk287, nil) - registerMember(registrar, 15, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk288, nil) - registerMember(registrar, 18, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk289, nil) - registerMember(registrar, 24, 1, 16, "SwiftDemo", "hostingController", "hostingController()", ">@UIViewController", __nsThunk290, nil) + registerMember(registrar, 13, 1, 0, "SwiftDemo", "makeAsyncIterator", "makeAsyncIterator()", ">o14", __nsThunk47, nil) + registerMember(registrar, 14, 1, 9, "SwiftDemo", "next", "next()", ">s?", __nsThunk48, nil) + registerMember(registrar, 13, 0, 0, "SwiftDemo", "constructor", "init(_:)", "s>o13", __nsThunk49, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "allFlavors", "allFlavors()", ">[e35]", __nsThunk50, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "checkSides", "checkSides(_:)", "i64>R(v,t11)", __nsThunk51, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoString", "echoString(_:)", "s>s", __nsThunk52, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoUInt64", "echoUInt64(_:)", "u64>u64", __nsThunk53, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "firstMatch", "firstMatch(_:where:)", "[i64],(i64>b)>i64?", __nsThunk54, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetLater", "greetLater(_:completion:)", "s?,(s?)>v", __nsThunk55, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetTwice", "greetTwice(_:_:)", "p50,s>s", __nsThunk56, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "largestInt", "largestInt()", ">i64", __nsThunk57, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeScorer", "makeScorer()", ">p37", __nsThunk58, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "namesLater", "namesLater(_:)", "i64>[s]", __nsThunk59, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "parseLater", "parseLater(_:)", "s>R(i64,!)", __nsThunk60, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "tallyLater", "tallyLater(_:)", "[s]>*(unique:S[s],count:i64)", __nsThunk61, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "uniqueTags", "uniqueTags(_:)", "[s]>S[s]", __nsThunk62, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "wordCounts", "wordCounts(_:)", "[s]>{i64}", __nsThunk63, nil) + registerMember(registrar, 0, 3, 16, "SwiftDemo", "count", "count", ">i64", __nsThunk64, nil) + registerMember(registrar, 0, 1, 16, "SwiftDemo", "configure", "configure(start:step:)", "i64,i64?>i64", __nsThunk65, nil) + registerMember(registrar, 16, 0, 0, "SwiftDemo", "constructor", "init(symbol:)", "s>o16", __nsThunk66, nil) + registerMember(registrar, 16, 3, 2, "SwiftDemo", "symbol", "symbol", ">s", __nsThunk67, __nsThunk68) + registerMember(registrar, 15, 7, 0, "SwiftDemo", "area", "area(width:height:)", "f64,f64>t15", nil, nil) + registerMember(registrar, 15, 7, 0, "SwiftDemo", "none", "none", ">t15", nil, nil) + registerMember(registrar, 15, 3, 0, "SwiftDemo", "isNone", "isNone", ">b", __nsThunk69, nil) + registerMember(registrar, 15, 7, 0, "SwiftDemo", "length", "length(_:)", "f64>t15", nil, nil) + registerMember(registrar, 17, 1, 0, "SwiftDemo", "finish", "finish()", ">v", __nsThunk70, nil) + registerMember(registrar, 17, 1, 0, "SwiftDemo", "record", "record(_:)", "f64>v", __nsThunk71, nil) + registerMember(registrar, 17, 3, 0, "SwiftDemo", "readings", "readings", ">~f64", __nsThunk72, nil) + registerMember(registrar, 17, 0, 0, "SwiftDemo", "constructor", "init()", ">o17", __nsThunk73, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "checkedSide", "checkedSide(_:)", "f64>f64", __nsThunk74, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "countUnique", "countUnique(_:)", "S[i64]>i64", __nsThunk75, nil) + registerMember(registrar, -1, 5, 9, "SwiftDemo", "delayedEcho", "delayedEcho(_:after:)", "s,f64>s", __nsThunk76, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "knownScores", "knownScores(_:)", "{i64?}>{i64?}", __nsThunk77, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "longestWord", "longestWord(_:)", "[s]>i64", __nsThunk78, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "parseNumber", "parseNumber(_:)", "s>R(i64,!)", __nsThunk79, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "sortedNames", "sortedNames(_:by:)", "[s],(s,s>b)>[s]", __nsThunk80, nil) + registerMember(registrar, 18, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk81, nil) + registerMember(registrar, 18, 3, 0, "SwiftDemo", "text", "text", ">s", __nsThunk82, nil) + registerMember(registrar, 19, 3, 32, "SwiftDemo", "rank", "rank", ">i64?", __nsThunk83, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstElement", "firstElement(_:)", "[s]>s?", __nsThunk84, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstElement", "firstElement(_:)", "[b]>b?", __nsThunk85, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstElement", "firstElement(_:)", "[f64]>f64?", __nsThunk86, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstSubview", "firstSubview(of:)", "@UIView>@UIView?", __nsThunk87, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "latitudeSpan", "latitudeSpan(_:_:)", "*(latitude:f64,longitude:f64),*(latitude:f64,longitude:f64)>f64", __nsThunk88, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeGreeting", "makeGreeting(_:)", "s>p50", __nsThunk89, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "measureLater", "measureLater(_:)", "f64>t15", __nsThunk90, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "measurements", "measurements()", ">[t15]", __nsThunk91, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "swapTrackers", "swapTrackers(_:_:)", "&o47,&o47>v", __nsThunk92, nil) + registerMember(registrar, 20, 7, 0, "SwiftDemo", "none", "none", ">e20", nil, nil) + registerMember(registrar, 20, 7, 0, "SwiftDemo", "rain", "rain", ">e20", nil, nil) + registerMember(registrar, 20, 7, 0, "SwiftDemo", "snow", "snow", ">e20", nil, nil) + registerMember(registrar, 20, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "s>e20?", __nsThunk93, nil) + registerMember(registrar, -1, 6, 0, "SwiftDemo", "defaultFlavor", "defaultFlavor", ">e35", __nsThunk94, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeError", "describeError(_:)", "!?>s", __nsThunk95, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "s>s", __nsThunk96, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "b>s", __nsThunk97, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describeValue", "describeValue(_:)", "f64>s", __nsThunk98, nil) + registerMember(registrar, -1, 6, 2, "SwiftDemo", "globalCounter", "globalCounter", ">i64", __nsThunk99, __nsThunk100) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "starterWallet", "starterWallet(for:)", "s>o8", __nsThunk101, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "waitForCancel", "waitForCancel(_:)", "f64>b", __nsThunk102, nil) + registerMember(registrar, 22, 1, 0, "SwiftDemo", "score", "score(_:)", "i64>i64", __nsThunk103, nil) + registerMember(registrar, 22, 0, 0, "SwiftDemo", "constructor", "init()", ">o22", __nsThunk104, nil) + registerMember(registrar, 23, 3, 2, "SwiftDemo", "punctuation", "punctuation", ">s", __nsThunk105, __nsThunk106) + registerMember(registrar, 23, 0, 0, "SwiftDemo", "constructor", "init(name:)", "s>o23", __nsThunk107, nil) + registerMember(registrar, 23, 3, 0, "SwiftDemo", "name", "name", ">s", __nsThunk108, nil) + registerMember(registrar, 23, 1, 0, "SwiftDemo", "greet", "greet(_:)", "s>s", __nsThunk109, nil) + registerMember(registrar, 23, 1, 0, "SwiftDemo", "reset", "reset()", ">v", __nsThunk110, nil) + registerMember(registrar, 24, 1, 0, "SwiftDemo", "greet", "greet(_:)", "s>s?", __nsThunk111, nil) + registerMember(registrar, 24, 3, 2, "SwiftDemo", "greeting", "greeting", ">p50?", __nsThunk112, __nsThunk113) + registerMember(registrar, 24, 0, 0, "SwiftDemo", "constructor", "init()", ">o24", __nsThunk114, nil) + registerMember(registrar, 25, 1, 0, "SwiftDemo", "add", "add(_:)", "p50>v", __nsThunk115, nil) + registerMember(registrar, 25, 3, 0, "SwiftDemo", "count", "count", ">i64", __nsThunk116, nil) + registerMember(registrar, 25, 1, 0, "SwiftDemo", "remove", "remove(_:)", "p50>v", __nsThunk117, nil) + registerMember(registrar, 25, 1, 0, "SwiftDemo", "contains", "contains(_:)", "p50>b", __nsThunk118, nil) + registerMember(registrar, 25, 0, 0, "SwiftDemo", "constructor", "init()", ">o25", __nsThunk119, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeDefaultPoint", "makeDefaultPoint()", ">o32", __nsThunk120, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "makeTrackerLater", "makeTrackerLater(id:)", "i64>o47", __nsThunk121, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "greetInBackground", "greetInBackground(_:)", "p50>s", __nsThunk122, nil) + registerMember(registrar, 26, 1, 0, "SwiftDemo", "greet", "greet(_:)", "s>s?", __nsThunk123, nil) + registerMember(registrar, 26, 3, 2, "SwiftDemo", "greeting", "greeting", ">p50?", __nsThunk124, __nsThunk125) + registerMember(registrar, 26, 0, 0, "SwiftDemo", "constructor", "init()", ">o26", __nsThunk126, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "computeInBackground", "computeInBackground(_:)", "(>i64)>i64", __nsThunk127, nil) + registerMember(registrar, 27, 0, 0, "SwiftDemo", "constructor", "init(id:)", "i64>o27", __nsThunk128, nil) + registerMember(registrar, 27, 3, 2, "SwiftDemo", "id", "id", ">i64", __nsThunk129, __nsThunk130) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "sum", "sum(of:)", "[o7]>o7", __nsThunk131, nil) + registerMember(registrar, 28, 0, 0, "SwiftDemo", "constructor", "init(size:)", "i64>o28", __nsThunk132, nil) + registerMember(registrar, 28, 3, 2, "SwiftDemo", "cells", "cells", ">[i64]", __nsThunk133, __nsThunk134) + registerMember(registrar, 28, 1, 0, "SwiftDemo", "subscript", "subscript(_:)", "i64>i64", __nsThunk135, nil) + registerMember(registrar, 28, 1, 0, "SwiftDemo", "setSubscript", "setSubscript(_:_:)", "i64,i64>v", __nsThunk136, nil) + registerMember(registrar, 1, 3, 2, "SwiftDemo", "tags", "tags", ">S[s]", __nsThunk137, __nsThunk138) + registerMember(registrar, 1, 0, 0, "SwiftDemo", "constructor", "init(text:)", "s>@SwiftDemo.Note", __nsThunk139, nil) + registerMember(registrar, 1, 3, 0, "SwiftDemo", "text", "text", ">s", __nsThunk140, nil) + registerMember(registrar, 1, 2, 0, "SwiftDemo", "blank", "blank()", ">@SwiftDemo.Note", __nsThunk141, nil) + registerMember(registrar, 1, 1, 0, "SwiftDemo", "tagged", "tagged(_:)", "s>@SwiftDemo.Note", __nsThunk142, nil) + registerMember(registrar, 1, 1, 0, "SwiftDemo", "summary", "summary(maxLength:)", "i64>s", __nsThunk143, nil) + registerMember(registrar, 29, 1, 0, "SwiftDemo", "plus", "+(_:_:)", "o29>o29", __nsThunk144, nil) + registerMember(registrar, 29, 0, 0, "SwiftDemo", "constructor", "init(inner:outer:)", "o32,o32>o29", __nsThunk145, nil) + registerMember(registrar, 29, 3, 2, "SwiftDemo", "inner", "inner", ">o32", __nsThunk146, __nsThunk147) + registerMember(registrar, 29, 3, 2, "SwiftDemo", "outer", "outer", ">o32", __nsThunk148, __nsThunk149) + registerMember(registrar, 29, 1, 0, "SwiftDemo", "expand", "expand(by:)", "f64>v", __nsThunk150, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "area", "area(of:)", "t15>f64", __nsThunk151, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "bump", "bump(_:)", "&i64>v", __nsThunk152, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "echo", "echo(_:)", "t43>t43", __nsThunk153, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "flip", "flip(_:)", "e4>e4", __nsThunk154, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "host", "host(of:)", "U>s?", __nsThunk155, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "plot", "plot(_:)", "*(x:f64,y:f64)?>s?", __nsThunk156, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "ramp", "ramp(_:)", "i64>B", __nsThunk157, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "same", "same(_:)", "p50>p50", __nsThunk158, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "tags", "tags(_:)", "[@UIView]>[i64]", __nsThunk159, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "text", "text(of:)", "@SwiftDemo.Note>s", __nsThunk160, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "zero", "zero()", ">f64", __nsThunk161, nil) + registerMember(registrar, 30, 3, 18, "SwiftDemo", "count", "count", ">i64", __nsThunk162, __nsThunk163) + registerMember(registrar, 30, 0, 16, "SwiftDemo", "constructor", "init(title:count:)", "s,i64>o30", __nsThunk164, nil) + registerMember(registrar, 30, 3, 18, "SwiftDemo", "title", "title", ">s", __nsThunk165, __nsThunk166) + registerMember(registrar, 31, 1, 0, "SwiftDemo", "echo", "echo(_:)", "i64>i64", __nsThunk167, nil) + registerMember(registrar, 31, 2, 0, "SwiftDemo", "echo", "echo(_:)", "i64>i64", __nsThunk168, nil) + registerMember(registrar, 31, 3, 2, "SwiftDemo", "value", "value", ">i64", __nsThunk169, __nsThunk170) + registerMember(registrar, 31, 0, 0, "SwiftDemo", "constructor", "init()", ">o31", __nsThunk171, nil) + registerMember(registrar, 32, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk172, nil) + registerMember(registrar, 32, 0, 0, "SwiftDemo", "constructor", "init(x:y:)", "f64,f64>o32", __nsThunk173, nil) + registerMember(registrar, 32, 3, 2, "SwiftDemo", "x", "x", ">f64", __nsThunk174, __nsThunk175) + registerMember(registrar, 32, 3, 2, "SwiftDemo", "y", "y", ">f64", __nsThunk176, __nsThunk177) + registerMember(registrar, 32, 3, 0, "SwiftDemo", "length", "length", ">f64", __nsThunk178, nil) + registerMember(registrar, 33, 0, 0, "SwiftDemo", "constructor", "init()", ">o33", __nsThunk179, nil) + registerMember(registrar, 33, 1, 0, "SwiftDemo", "subscript", "subscript(_:_:)", "i64,i64>s", __nsThunk180, nil) + registerMember(registrar, 33, 1, 0, "SwiftDemo", "subscript", "subscript(_:)", "s>i64?", __nsThunk181, nil) + registerMember(registrar, 33, 1, 0, "SwiftDemo", "setSubscript", "setSubscript(_:_:)", "s,i64?>v", __nsThunk182, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "boxed", "boxed(_:)", "o7>o2", __nsThunk183, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "clear", "clear(_:)", "&s?>v", __nsThunk184, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "evens", "evens(below:)", "i64>[i64]", __nsThunk185, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "halve", "halve(_:)", "&i64>v", __nsThunk186, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "holes", "holes(_:)", "i64>[s?]", __nsThunk187, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "inset", "inset(_:by:)", "*(origin:*(x:f64,y:f64),size:*(width:f64,height:f64)),*(top:f64,left:f64,bottom:f64,right:f64)>*(origin:*(x:f64,y:f64),size:*(width:f64,height:f64))", __nsThunk188, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "names", "names(_:)", "i64>[s]", __nsThunk189, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "pages", "pages(_:)", "i64>~[s]", __nsThunk190, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "shout", "shout(_:)", "s?>s?", __nsThunk191, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "spans", "spans()", ">[*(s,i64?)]", __nsThunk192, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "tagOf", "tagOf(_:)", "@UIView>i64", __nsThunk193, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "total", "total(_:)", "[f64]>f64", __nsThunk194, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "unbox", "unbox(_:)", "o2>o7", __nsThunk195, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "unbox", "unbox(_:)", "o3>i64", __nsThunk196, nil) + registerMember(registrar, 34, 0, 16, "SwiftDemo", "constructor", "init()", ">o34", __nsThunk197, nil) + registerMember(registrar, 35, 3, 0, "SwiftDemo", "description", "description", ">s", __nsThunk198, nil) + registerMember(registrar, 35, 7, 0, "SwiftDemo", "vanilla", "vanilla", ">e35", nil, nil) + registerMember(registrar, 35, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "i64>e35?", __nsThunk199, nil) + registerMember(registrar, 35, 7, 0, "SwiftDemo", "chocolate", "chocolate", ">e35", nil, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "modernOnly", "modernOnly()", ">v", __nsThunk200, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "legacyFetch", "legacyFetch()", ">v", __nsThunk201, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "withCompletion", "withCompletion(_:)", "(R(s,t11))>v", __nsThunk202, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "each", "each(_:)", "(i64)>v", __nsThunk203, nil) + registerMember(registrar, 36, 1, 1, "SwiftDemo", "load", "load(path:)", "s>B", __nsThunk204, nil) + registerMember(registrar, 36, 1, 8, "SwiftDemo", "wait", "wait(seconds:)", "f64>v", __nsThunk205, nil) + registerMember(registrar, 36, 1, 9, "SwiftDemo", "fetch", "fetch(url:)", "U>s", __nsThunk206, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "first", "first(of:)", "[s]>s?", __nsThunk207, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "first", "first(of:)", "[b]>b?", __nsThunk208, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "first", "first(of:)", "[f64]>f64?", __nsThunk209, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "lookup", "lookup(table:key:)", "{i64},s>i64?", __nsThunk210, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "update", "update(_:)", "&o32>v", __nsThunk211, nil) + registerMember(registrar, 36, 1, 0, "SwiftDemo", "oldFetch", "oldFetch()", ">v", __nsThunk212, nil) + registerMember(registrar, 36, 0, 0, "SwiftDemo", "constructor", "init()", ">o36", __nsThunk213, nil) + registerMember(registrar, 37, 1, 33, "SwiftDemo", "score", "score(_:)", "i64>i64", __nsThunk214, nil) + registerMember(registrar, 38, 3, 0, "SwiftDemo", "area", "area", ">f64", __nsThunk215, nil) + registerMember(registrar, 38, 0, 0, "SwiftDemo", "constructor", "init(side:)", "f64>o38", __nsThunk216, nil) + registerMember(registrar, 38, 3, 2, "SwiftDemo", "side", "side", ">f64", __nsThunk217, __nsThunk218) + registerMember(registrar, 38, 1, 0, "SwiftDemo", "greet", "greet(name:)", "s>s", __nsThunk219, nil) + registerMember(registrar, 38, 1, 0, "SwiftDemo", "scale", "scale(by:)", "f64>v", __nsThunk220, nil) + registerMember(registrar, 38, 4, 0, "SwiftDemo", "sides", "sides", ">i64", __nsThunk221, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "append", "append(_:to:)", "s,&[s]>v", __nsThunk222, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "divide", "divide(_:by:)", "i64,i64>*(quotient:i64,remainder:i64)", __nsThunk223, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "excite", "excite(_:)", "p50>v", __nsThunk224, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "lookup", "lookup(_:_:)", "s,(s>i64?)>i64", __nsThunk225, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "settle", "settle(_:)", "i64>t9", __nsThunk226, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "sumAll", "sumAll(_:)", "[i64]>i64", __nsThunk227, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "ticker", "ticker()", ">~i64", __nsThunk228, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "unwrap", "unwrap(_:)", "R(s,!)>s", __nsThunk229, nil) + registerMember(registrar, 39, 3, 8, "SwiftDemo", "step", "step", ">i64", __nsThunk230, nil) + registerMember(registrar, 39, 1, 0, "SwiftDemo", "label", "label()", ">s", __nsThunk231, nil) + registerMember(registrar, 39, 3, 8, "SwiftDemo", "value", "value", ">i64", __nsThunk232, nil) + registerMember(registrar, 39, 1, 8, "SwiftDemo", "increment", "increment()", ">i64", __nsThunk233, nil) + registerMember(registrar, 39, 0, 0, "SwiftDemo", "constructor", "init()", ">o39", __nsThunk234, nil) + registerMember(registrar, 40, 7, 0, "SwiftDemo", "sum", "sum(_:_:)", "t40,t40>t40", nil, nil) + registerMember(registrar, 40, 3, 0, "SwiftDemo", "value", "value", ">f64", __nsThunk235, nil) + registerMember(registrar, 40, 7, 0, "SwiftDemo", "negate", "negate(_:)", "t40>t40", nil, nil) + registerMember(registrar, 40, 7, 0, "SwiftDemo", "number", "number(_:)", "f64>t40", nil, nil) + registerMember(registrar, 41, 1, 32, "SwiftDemo", "greet", "greet(name:)", "s>s", __nsThunk236, nil) + registerMember(registrar, 42, 1, 8, "SwiftDemo", "strokeLater", "strokeLater()", ">i64", __nsThunk237, nil) + registerMember(registrar, 42, 1, 16, "SwiftDemo", "stroke", "stroke()", ">i64", __nsThunk238, nil) + registerMember(registrar, 42, 3, 16, "SwiftDemo", "strokes", "strokes", ">i64", __nsThunk239, nil) + registerMember(registrar, 42, 0, 16, "SwiftDemo", "constructor", "init()", ">o42", __nsThunk240, nil) + registerMember(registrar, 43, 7, 0, "SwiftDemo", "maybe", "maybe(_:)", "i64?>t43", nil, nil) + registerMember(registrar, 43, 7, 0, "SwiftDemo", "names", "names(_:)", "[s]>t43", nil, nil) + registerMember(registrar, 43, 7, 0, "SwiftDemo", "point", "point(_:)", "o32>t43", nil, nil) + registerMember(registrar, 43, 7, 0, "SwiftDemo", "flavor", "flavor(_:)", "e35>t43", nil, nil) + registerMember(registrar, 43, 7, 0, "SwiftDemo", "tracker", "tracker(_:)", "o47>t43", nil, nil) + registerMember(registrar, 44, 3, 0, "SwiftDemo", "vertexCount", "vertexCount", ">i64", __nsThunk241, nil) + registerMember(registrar, 44, 2, 0, "SwiftDemo", "make", "make()", ">o44", __nsThunk242, nil) + registerMember(registrar, 44, 0, 0, "SwiftDemo", "constructor", "init(name:vertexCount:)", "s,i64>o44", __nsThunk243, nil) + registerMember(registrar, 44, 0, 0, "SwiftDemo", "constructor", "init(name:)", "s>o44?", __nsThunk244, nil) + registerMember(registrar, 44, 3, 0, "SwiftDemo", "name", "name", ">s", __nsThunk245, nil) + registerMember(registrar, 45, 7, 0, "SwiftDemo", "solid", "solid", ">e45", nil, nil) + registerMember(registrar, 45, 7, 0, "SwiftDemo", "dashed", "dashed", ">e45", nil, nil) + registerMember(registrar, 45, 0, 0, "SwiftDemo", "constructor", "init(rawValue:)", "s>e45?", __nsThunk246, nil) + registerMember(registrar, 44, 1, 0, "SwiftDemo", "scale", "scale(x:y:)", "f64,f64>v", __nsThunk247, nil) + registerMember(registrar, 44, 1, 4, "SwiftDemo", "scale", "scale(by:)", "f64>v", __nsThunk248, nil) + registerMember(registrar, 44, 1, 4, "SwiftDemo", "scale", "scale(by:)", "i64>v", __nsThunk249, nil) + registerMember(registrar, 44, 3, 0, "SwiftDemo", "style", "style", ">e45", __nsThunk250, nil) + registerMember(registrar, 44, 4, 0, "SwiftDemo", "shared", "shared", ">o44", __nsThunk251, nil) + registerMember(registrar, 46, 0, 0, "SwiftDemo", "constructor", "init(perimeter:)", "f64>o46", __nsThunk252, nil) + registerMember(registrar, 46, 3, 2, "SwiftDemo", "perimeter", "perimeter", ">f64", __nsThunk253, __nsThunk254) + registerMember(registrar, 44, 1, 0, "SwiftDemo", "metrics", "metrics(side:)", "f64>o46", __nsThunk255, nil) + registerMember(registrar, 44, 2, 0, "SwiftDemo", "describe", "describe(_:)", "o44?>s", __nsThunk256, nil) + registerMember(registrar, 44, 1, 0, "SwiftDemo", "subscript", "subscript(_:)", "i64>o32", __nsThunk257, nil) + registerMember(registrar, 47, 0, 0, "SwiftDemo", "constructor", "init(id:)", "i64>o47", __nsThunk258, nil) + registerMember(registrar, 47, 3, 0, "SwiftDemo", "id", "id", ">i64", __nsThunk259, nil) + registerMember(registrar, 47, 1, 0, "SwiftDemo", "same", "same()", ">o47", __nsThunk260, nil) + registerMember(registrar, 47, 4, 0, "SwiftDemo", "liveCount", "liveCount", ">i64", __nsThunk261, nil) + registerMember(registrar, 48, 2, 0, "SwiftDemo", "times", "*(_:_:)", "f64,o48>o48", __nsThunk262, nil) + registerMember(registrar, 48, 1, 0, "SwiftDemo", "plus", "+(_:_:)", "o48>o48", __nsThunk263, nil) + registerMember(registrar, 48, 1, 0, "SwiftDemo", "negated", "-(_:)", ">o48", __nsThunk264, nil) + registerMember(registrar, 48, 0, 0, "SwiftDemo", "constructor", "init(x:y:)", "f64,f64>o48", __nsThunk265, nil) + registerMember(registrar, 48, 3, 2, "SwiftDemo", "x", "x", ">f64", __nsThunk266, __nsThunk267) + registerMember(registrar, 48, 3, 2, "SwiftDemo", "y", "y", ">f64", __nsThunk268, __nsThunk269) + registerMember(registrar, 49, 1, 0, "SwiftDemo", "lessThan", "<(_:_:)", "o49>b", __nsThunk270, nil) + registerMember(registrar, 49, 0, 0, "SwiftDemo", "constructor", "init(major:minor:)", "i64,i64>o49", __nsThunk271, nil) + registerMember(registrar, 49, 3, 0, "SwiftDemo", "major", "major", ">i64", __nsThunk272, nil) + registerMember(registrar, 49, 3, 0, "SwiftDemo", "minor", "minor", ">i64", __nsThunk273, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "compact", "compact(_:)", "[i64?]>[i64]", __nsThunk274, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "countUp", "countUp(to:)", "i64>~i64", __nsThunk275, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoInt", "echoInt(_:)", "i64>i64", __nsThunk276, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "explain", "explain(_:)", "t11>s", __nsThunk277, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstOf", "firstOf(_:)", "o5>s", __nsThunk278, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "firstOf", "firstOf(_:)", "o6>i64", __nsThunk279, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "fitting", "fitting(_:)", "*(width:f64,height:f64)?>*(width:f64,height:f64)?", __nsThunk280, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "joinAll", "joinAll(_:)", "[s]>s", __nsThunk281, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "largest", "largest(_:)", "[s]>s?", __nsThunk282, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "largest", "largest(_:)", "[f64]>f64?", __nsThunk283, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "lengths", "lengths(_:)", "{s}>{i64}", __nsThunk284, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "letters", "letters(of:)", "s>~s", __nsThunk285, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "measure", "measure(_:by:)", "f64,f64?>t15", __nsThunk286, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "nextDay", "nextDay(after:)", "D>D", __nsThunk287, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "resolve", "resolve(_:against:)", "s,U>U", __nsThunk288, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "topRank", "topRank(_:)", "p19>s", __nsThunk289, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "viewTag", "viewTag(_:)", "@UIView>i64", __nsThunk290, nil) + registerMember(registrar, 50, 3, 34, "SwiftDemo", "punctuation", "punctuation", ">s", __nsThunk291, __nsThunk292) + registerMember(registrar, 50, 3, 32, "SwiftDemo", "name", "name", ">s", __nsThunk293, nil) + registerMember(registrar, 50, 1, 32, "SwiftDemo", "greet", "greet(_:)", "s>s", __nsThunk294, nil) + registerMember(registrar, 50, 1, 32, "SwiftDemo", "reset", "reset()", ">v", __nsThunk295, nil) + registerMember(registrar, 50, 1, 0, "SwiftDemo", "shout", "shout(_:)", "s>s", __nsThunk296, nil) + registerMember(registrar, 23, 1, 0, "SwiftDemo", "shout", "shout(_:)", "s>s", __nsThunk297, nil) + registerMember(registrar, 51, 1, 0, "SwiftDemo", "publishLater", "publishLater(_:)", "s>v", __nsThunk298, nil) + registerMember(registrar, 51, 1, 0, "SwiftDemo", "clear", "clear()", ">v", __nsThunk299, nil) + registerMember(registrar, 51, 3, 0, "SwiftDemo", "count", "count", ">i64", __nsThunk300, nil) + registerMember(registrar, 51, 1, 0, "SwiftDemo", "publish", "publish(_:)", "s>v", __nsThunk301, nil) + registerMember(registrar, 51, 1, 0, "SwiftDemo", "subscribe", "subscribe(_:)", "(s)>v", __nsThunk302, nil) + registerMember(registrar, 51, 0, 0, "SwiftDemo", "constructor", "init()", ">o51", __nsThunk303, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "centroid", "centroid(of:)", "[o32]>o32", __nsThunk304, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "checksum", "checksum(_:)", "B>i64", __nsThunk305, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "countBox", "countBox(_:)", "i64>o3", __nsThunk306, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describe", "describe(_:)", "o6>s", __nsThunk307, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "describe", "describe(_:)", "@UIView>s", __nsThunk308, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "echoInt8", "echoInt8(_:)", "i8>i8", __nsThunk309, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeNote", "makeNote(_:)", "s>@SwiftDemo.Note", __nsThunk310, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "midpoint", "midpoint(_:_:)", "*(x:f64,y:f64),*(x:f64,y:f64)>*(x:f64,y:f64)", __nsThunk311, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "mirrored", "mirrored(_:)", "[[i64]]>[[i64]]", __nsThunk312, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "popCount", "popCount(_:)", "i64>i64", __nsThunk313, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "s,i64>[s]", __nsThunk314, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "b,i64>[b]", __nsThunk315, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "repeated", "repeated(_:times:)", "f64,i64>[f64]", __nsThunk316, nil) + registerMember(registrar, -1, 5, 1, "SwiftDemo", "scoreAll", "scoreAll(_:_:)", "p37,[i64]>[i64]", __nsThunk317, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "shoutAll", "shoutAll(_:)", "s>s", __nsThunk318, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "simplify", "simplify(_:)", "t40>t40", __nsThunk319, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "swapPair", "swapPair(_:)", "*(i64,s)>*(s,i64)", __nsThunk320, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "trackers", "trackers(_:)", "[i64]>[o47]", __nsThunk321, nil) + registerMember(registrar, 52, 4, 2, "SwiftDemo", "cancellations", "cancellations", ">i64", __nsThunk322, __nsThunk323) + registerMember(registrar, 54, 1, 8, "SwiftDemo", "next", "next()", ">i64?", __nsThunk324, nil) + registerMember(registrar, 53, 1, 0, "SwiftDemo", "makeAsyncIterator", "makeAsyncIterator()", ">o54", __nsThunk325, nil) + registerMember(registrar, 53, 0, 0, "SwiftDemo", "constructor", "init(from:)", "i64>o53", __nsThunk326, nil) + registerMember(registrar, 53, 3, 0, "SwiftDemo", "label", "label", ">s", __nsThunk327, nil) + registerMember(registrar, 53, 3, 0, "SwiftDemo", "start", "start", ">i64", __nsThunk328, nil) + registerMember(registrar, 55, 4, 2, "SwiftDemo", "terminations", "terminations", ">i64", __nsThunk329, __nsThunk330) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "countDown", "countDown(from:failingAt:)", "i64,i64?>~i64", __nsThunk331, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "countdown", "countdown(from:_:)", "i64,(i64,b)>v", __nsThunk332, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "fetchItem", "fetchItem(_:_:)", "i64,(R(s,!))>v", __nsThunk333, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "greetOnce", "greetOnce(_:_:)", "p50,s>s", __nsThunk334, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "introduce", "introduce(_:to:)", "p50,s>s", __nsThunk335, nil) + registerMember(registrar, -1, 5, 16, "SwiftDemo", "makeLabel", "makeLabel(_:)", "s>@UILabel", __nsThunk336, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "makeScore", "makeScore(_:_:)", "s,i64>o5", __nsThunk337, nil) + registerMember(registrar, -1, 5, 8, "SwiftDemo", "noteLater", "noteLater(_:)", "s>@SwiftDemo.Note", __nsThunk338, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "onMeasure", "onMeasure(_:)", "(t15)>v", __nsThunk339, nil) + registerMember(registrar, -1, 5, 0, "SwiftDemo", "transform", "transform(_:_:)", "[i64],(i64>s)>[s]", __nsThunk340, nil) + registerMember(registrar, 20, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk341, nil) + registerMember(registrar, 35, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk342, nil) + registerMember(registrar, 45, 3, 0, "SwiftDemo", "hashValue", "hashValue", ">i64", __nsThunk343, nil) + registerMember(registrar, 11, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk344, nil) + registerMember(registrar, 18, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk345, nil) + registerMember(registrar, 21, 3, 0, "SwiftDemo", "localizedDescription", "localizedDescription", ">s", __nsThunk346, nil) + registerMember(registrar, 48, 1, 0, "SwiftDemo", "equals", "equals(_:)", "o48>b", __nsThunk347, nil) + registerMember(registrar, 49, 1, 0, "SwiftDemo", "equals", "equals(_:)", "o49>b", __nsThunk348, nil) + registerMember(registrar, 49, 1, 0, "SwiftDemo", "compare", "compare(_:)", "o49>i64", __nsThunk349, nil) + registerMember(registrar, 13, 1, 0, "SwiftDemo", "@@asyncIterator", "makeAsyncIterator()", ">~s", __nsThunk350, nil) + registerMember(registrar, 53, 1, 0, "SwiftDemo", "@@asyncIterator", "makeAsyncIterator()", ">~i64", __nsThunk351, nil) + registerMember(registrar, 30, 1, 16, "SwiftDemo", "hostingController", "hostingController()", ">@UIViewController", __nsThunk352, nil) } #if hasAttribute(c) diff --git a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Protocols.swift b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Protocols.swift index 27cf8e86..b54a1625 100644 --- a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Protocols.swift +++ b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Protocols.swift @@ -63,3 +63,20 @@ public final class GreetingHolder { public init() {} public func greet(_ other: String) -> String? { greeting?.greet(other) } } + +// A delegate held weakly, as UIKit-style APIs hold theirs. +public final class WeakGreetingHolder { + public weak var greeting: (any Greeting)? + public init() {} + public func greet(_ other: String) -> String? { greeting?.greet(other) } +} + +// Listeners removed by identity. +public final class GreetingRegistry { + private var greetings: [any Greeting] = [] + public init() {} + public var count: Int { greetings.count } + public func add(_ greeting: any Greeting) { greetings.append(greeting) } + public func remove(_ greeting: any Greeting) { greetings.removeAll { $0 === greeting } } + public func contains(_ greeting: any Greeting) -> Bool { greetings.contains { $0 === greeting } } +} diff --git a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Streams.swift b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Streams.swift index 9f6c3258..85db4900 100644 --- a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Streams.swift +++ b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Streams.swift @@ -1,5 +1,6 @@ // Asynchronous sequences, which JavaScript iterates with `for await`. +import Combine import Foundation public func countUp(to limit: Int) -> AsyncStream { @@ -47,3 +48,61 @@ public func pages(_ count: Int) -> AsyncStream<[String]> { continuation.finish() } } + +// Types conforming to AsyncSequence: JS iterates them with `for await` and +// still reaches their other members. +public struct Countdown: AsyncSequence { + public typealias Element = Int + public let start: Int + public init(from start: Int) { self.start = start } + public var label: String { "countdown from \(start)" } + + public struct AsyncIterator: AsyncIteratorProtocol { + var current: Int + public mutating func next() async -> Int? { + guard current > 0 else { return nil } + defer { current -= 1 } + return current + } + } + public func makeAsyncIterator() -> AsyncIterator { AsyncIterator(current: start) } +} + +// Element inferred from the iterator's next(). +public final class WordStream: AsyncSequence { + private let words: [String] + public init(_ text: String) { words = text.split(separator: " ").map(String.init) } + + public struct Iterator: AsyncIteratorProtocol { + var words: ArraySlice + public mutating func next() async throws -> String? { words.popFirst() } + } + public func makeAsyncIterator() -> Iterator { Iterator(words: words[...]) } +} + +// Combine publishers: async sequences of their output (iOS 15+). +public final class Thermometer { + private let subject = PassthroughSubject() + public init() {} + public var readings: AnyPublisher { subject.eraseToAnyPublisher() } + public func record(_ value: Double) { subject.send(value) } + public func finish() { subject.send(completion: .finished) } +} + +// An endless stream: `break` in JS ends it (onTermination sees the end). +public final class StreamLog { + public static var terminations = 0 +} +public func ticker() -> AsyncStream { + AsyncStream { continuation in + continuation.onTermination = { _ in StreamLog.terminations += 1 } + Task { + var tick = 0 + while true { + tick += 1 + if case .terminated = continuation.yield(tick) { break } + try? await Task.sleep(nanoseconds: 10_000_000) + } + } + } +} diff --git a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Values.swift b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Values.swift index 618bd3a2..86a15aa7 100644 --- a/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Values.swift +++ b/metadata-generator/TestFixtures/SwiftDemo/Sources/SwiftDemo/Values.swift @@ -253,3 +253,61 @@ public func describeError(_ error: (any Error)?) -> String { error.map { "\($0)" public func shoutAll(_ value: some StringProtocol) -> String { value.uppercased() } public func describeValue(_ value: some CustomStringConvertible) -> String { value.description } public func greetOnce(_ greeting: some Greeting, _ other: String) -> String { greeting.greet(other) } + +// Cancellation: an AbortSignal after the arguments cancels the Swift task. +public final class CancelLog { + public static var cancellations = 0 +} +public func waitForCancel(_ seconds: Double) async -> Bool { + do { + try await Task.sleep(nanoseconds: UInt64(seconds * 1_000_000_000)) + return false + } catch { + CancelLog.cancellations += 1 + return true + } +} + +// Subscripts: `subscript(...)` and `setSubscript(..., value)` in JS. +public final class Shelf { + private var counts: [String: Int] = [:] + public init() {} + public subscript(name: String) -> Int? { + get { counts[name] } + set { counts[name] = newValue } + } + public subscript(row: Int, column: Int) -> String { "\(row),\(column)" } +} +public struct Grid { + public var cells: [Int] + public init(size: Int) { cells = Array(repeating: 0, count: size) } + public subscript(index: Int) -> Int { + get { cells[index] } + set { cells[index] = newValue } + } +} + +// Operators as named methods, and equals()/compare() from Equatable and +// Comparable. +public struct Vector2: Equatable { + public var x: Double + public var y: Double + public init(x: Double, y: Double) { self.x = x; self.y = y } + public static func + (lhs: Vector2, rhs: Vector2) -> Vector2 { Vector2(x: lhs.x + rhs.x, y: lhs.y + rhs.y) } + public static prefix func - (vector: Vector2) -> Vector2 { Vector2(x: -vector.x, y: -vector.y) } + public static func * (scale: Double, vector: Vector2) -> Vector2 { Vector2(x: scale * vector.x, y: scale * vector.y) } +} +public struct Version: Comparable, Hashable { + public let major: Int + public let minor: Int + public init(major: Int, minor: Int) { self.major = major; self.minor = minor } + public static func < (lhs: Version, rhs: Version) -> Bool { (lhs.major, lhs.minor) < (rhs.major, rhs.minor) } +} + +// Collection protocols as parameters: JS arrays stand in. +public func sumAll(_ values: some Sequence) -> Int { values.reduce(0, +) } +public func longestWord(_ words: C) -> Int where C.Element == String { + words.map(\.count).max() ?? 0 +} +public func joinAll(_ parts: any Sequence) -> String { parts.joined(separator: ",") } +public func evens(below limit: Int) -> any Sequence { stride(from: 0, to: limit, by: 2) } diff --git a/metadata-generator/TestFixtures/SwiftDemo/symbolgraphs/SwiftDemo.symbols.json b/metadata-generator/TestFixtures/SwiftDemo/symbolgraphs/SwiftDemo.symbols.json index d25286f0..839c6f10 100644 --- a/metadata-generator/TestFixtures/SwiftDemo/symbolgraphs/SwiftDemo.symbols.json +++ b/metadata-generator/TestFixtures/SwiftDemo/symbolgraphs/SwiftDemo.symbols.json @@ -1 +1 @@ -{"metadata":{"formatVersion":{"major":0,"minor":6,"patch":0},"generator":"Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)"},"module":{"name":"SwiftDemo","platform":{"architecture":"arm64","environment":"simulator","vendor":"apple","operatingSystem":{"name":"ios","minimumVersion":{"major":15,"minor":0}}}},"symbols":[{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge"],"names":{"title":"Badge","navigator":[{"kind":"identifier","spelling":"Badge"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Badge"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Badge"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":4,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:)"],"names":{"title":"focusedValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the focused value for the given object type."},{"text":""},{"text":"- Important: This initializer only accepts objects conforming to the"},{"text":" `Observable` protocol. For reading environment objects that conform to"},{"text":" `ObservableObject`, use `focusedObject(_:)`, instead."},{"text":""},{"text":"To read this value, use the `FocusedValue` property wrapper."},{"text":""},{"text":"- Parameter object: The object to read the focus value for."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:)"],"names":{"title":"focusedSceneValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the focused value for the given object type at a scene-wide scope."},{"text":""},{"text":"- Important: This initializer only accepts objects conforming to the"},{"text":" `Observable` protocol. For reading environment objects that conform to"},{"text":" `ObservableObject`, use `focusedObject(_:)`, instead."},{"text":""},{"text":"To read this value, use the `FocusedValue` property wrapper."},{"text":""},{"text":"- Parameter object: The object to read the focus value for."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(for:edges:alignment:)"],"names":{"title":"contentMargins(for:edges:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Insets the content of this view by a content margin guide."},{"text":""},{"text":"Use this modifier to lay a view out against a system metric, like"},{"text":"the margins of the container it appears in:"},{"text":""},{"text":" NavigationStack {"},{"text":" AlbumGrid()"},{"text":" .contentMargins(for: .container, edges: .horizontal)"},{"text":" }"},{"text":""},{"text":"The view is proposed the size it would otherwise receive, and is"},{"text":"inset by the value of `guide` when it's placed."},{"text":""},{"text":"A view that doesn't fill the size it was proposed is positioned"},{"text":"within the inset bounds using `alignment`. Here, a compose button"},{"text":"sits in the bottom trailing corner of the margins of its container:"},{"text":""},{"text":" ZStack {"},{"text":" MessageList()"},{"text":" ComposeButton()"},{"text":" .contentMargins("},{"text":" for: .container, alignment: .bottomTrailing)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - guide: The guide that provides the insets."},{"text":" - edges: The edges to inset, any edges not in this set are"},{"text":" unchanged, even when `guide` provides a value for them."},{"text":" - alignment: The alignment of the view within the inset bounds."},{"text":" Most alignment values have no apparent effect when the view"},{"text":" fills the size it was proposed."},{"text":""},{"text":"- Returns: A view inset on `edges` by `guide`."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"guide","declarationFragments":[{"kind":"identifier","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","offset(_:)"],"names":{"title":"offset(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Offset this view by the horizontal and vertical amount specified in the"},{"text":"offset parameter."},{"text":""},{"text":"Use `offset(_:)` to shift the displayed contents by the amount"},{"text":"specified in the `offset` parameter."},{"text":""},{"text":"The original dimensions of the view aren't changed by offsetting the"},{"text":"contents; in the example below the gray border drawn by this view"},{"text":"surrounds the original position of the text:"},{"text":""},{"text":" Text(\"Offset by passing CGSize()\")"},{"text":" .border(Color.green)"},{"text":" .offset(CGSize(width: 20, height: 25))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view that offset from its original position a"},{"text":"CGPoint to specify the x and y offset.](SwiftUI-View-offset.png)"},{"text":""},{"text":"- Parameter offset: The distance to offset this view."},{"text":""},{"text":"- Returns: A view that offsets this view by `offset`."}]},"functionSignature":{"parameters":[{"name":"offset","declarationFragments":[{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"offset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","offset(x:y:)"],"names":{"title":"offset(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Offset this view by the specified horizontal and vertical distances."},{"text":""},{"text":"Use `offset(x:y:)` to shift the displayed contents by the amount"},{"text":"specified in the `x` and `y` parameters."},{"text":""},{"text":"The original dimensions of the view aren't changed by offsetting the"},{"text":"contents; in the example below the gray border drawn by this view"},{"text":"surrounds the original position of the text:"},{"text":""},{"text":" Text(\"Offset by passing horizontal & vertical distance\")"},{"text":" .border(Color.green)"},{"text":" .offset(x: 20, y: 50)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view that offset from its original position"},{"text":"using and x and y offset.](swiftui-offset-xy.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: The horizontal distance to offset this view."},{"text":" - y: The vertical distance to offset this view."},{"text":""},{"text":"- Returns: A view that offsets this view by `x` and `y`."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fixedSize(horizontal:vertical:)"],"names":{"title":"fixedSize(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Fixes this view at its ideal size in the specified dimensions."},{"text":""},{"text":"This function behaves like ``View/fixedSize()``, except with"},{"text":"`fixedSize(horizontal:vertical:)` the fixing of the axes can be"},{"text":"optionally specified in one or both dimensions. For example, if you"},{"text":"horizontally fix a text view before wrapping it in the frame view,"},{"text":"you're telling the text view to maintain its ideal _width_. The view"},{"text":"calculates this to be the space needed to represent the entire string."},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .fixedSize(horizontal: true, vertical: false)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"This can result in the view exceeding the parent's bounds, which may or"},{"text":"may not be the effect you want."},{"text":""},{"text":"![A screenshot showing a text view exceeding the bounds of its"},{"text":"parent.](SwiftUI-View-fixedSize-3.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - horizontal: A Boolean value that indicates whether to fix the width"},{"text":" of the view."},{"text":" - vertical: A Boolean value that indicates whether to fix the height"},{"text":" of the view."},{"text":""},{"text":"- Returns: A view that fixes this view at its ideal size in the"},{"text":" dimensions specified by `horizontal` and `vertical`."}]},"functionSignature":{"parameters":[{"name":"horizontal","declarationFragments":[{"kind":"identifier","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"vertical","declarationFragments":[{"kind":"identifier","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fixedSizeQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fixedSize()"],"names":{"title":"fixedSize()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Fixes this view at its ideal size."},{"text":""},{"text":"During the layout of the view hierarchy, each view proposes a size to"},{"text":"each child view it contains. If the child view doesn't need a fixed size"},{"text":"it can accept and conform to the size offered by the parent."},{"text":""},{"text":"For example, a ``Text`` view placed in an explicitly sized frame wraps"},{"text":"and truncates its string to remain within its parent's bounds:"},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing the text in a text view contained within its"},{"text":"parent.](SwiftUI-View-fixedSize-1.png)"},{"text":""},{"text":"The `fixedSize()` modifier can be used to create a view that maintains"},{"text":"the *ideal size* of its children both dimensions:"},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .fixedSize()"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"This can result in the view exceeding the parent's bounds, which may or"},{"text":"may not be the effect you want."},{"text":""},{"text":"![A screenshot showing a text view exceeding the bounds of its"},{"text":"parent.](SwiftUI-View-fixedSize-2.png)"},{"text":""},{"text":"You can think of `fixedSize()` as the creation of a *counter proposal*"},{"text":"to the view size proposed to a view by its parent. The ideal size of a"},{"text":"view, and the specific effects of `fixedSize()` depends on the"},{"text":"particular view and how you have configured it."},{"text":""},{"text":"To create a view that fixes the view's size in either the horizontal or"},{"text":"vertical dimensions, see ``View/fixedSize(horizontal:vertical:)``."},{"text":""},{"text":"- Returns: A view that fixes this view at its ideal size."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","rotationEffect(_:anchor:)"],"names":{"title":"rotationEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotationEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Rotates a view's rendered output in two dimensions around the specified"},{"text":"point."},{"text":""},{"text":"This modifier rotates the view's content around the axis that points"},{"text":"out of the xy-plane. It has no effect on the view's frame."},{"text":"The following code rotates text by 22˚ and then draws a border around"},{"text":"the modified view to show that the frame remains unchanged by the"},{"text":"rotation modifier:"},{"text":""},{"text":" Text(\"Rotation by passing an angle in degrees\")"},{"text":" .rotationEffect(.degrees(22))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of text and a wide grey box. The text says Rotation by passing an angle in degrees. The baseline of the text is rotated clockwise by 22 degrees relative to the box. The center of the box and the center of the text are aligned.](SwiftUI-View-rotationEffect)"},{"text":""},{"text":"- Parameters:"},{"text":" - angle: The angle by which to rotate the view."},{"text":" - anchor: A unit point within the view about which to"},{"text":" perform the rotation. The default value is ``UnitPoint/center``."},{"text":"- Returns: A view with rotated content."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotationEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:isEnabled:)"],"names":{"title":"hoverEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view, while providing a way to"},{"text":"conditionally enable or disable it."},{"text":""},{"text":"By default, ``CustomHoverEffect/automatic`` is used. You can control"},{"text":"the behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The hover effect to apply to this view."},{"text":" - isEnabled: Whether the hover effect is enabled or not."},{"text":"- Returns: A view with the hover effect applied."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomHoverEffect","rhs":"CustomHoverEffect","rhsPrecise":"s:7SwiftUI17CustomHoverEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:)"],"names":{"title":"hoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view."},{"text":""},{"text":"By default, ``HoverEffect/automatic`` is used. You can control the"},{"text":"behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The effect to apply to this view."},{"text":"- Returns: A new view that applies a hover effect to `self`."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:isEnabled:)"],"names":{"title":"hoverEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view."},{"text":""},{"text":"By default, ``HoverEffect/automatic`` is used. You can control the"},{"text":"behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The effect to apply to this view."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":"- Returns: A new view that applies a hover effect to `self`."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultHoverEffect(_:)"],"names":{"title":"defaultHoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default hover effect to use for views within this view."},{"text":""},{"text":"Use this modifier to set a specific hover effect for all views with the"},{"text":"``View/hoverEffect(_:)`` modifier applied within a view. The default"},{"text":"effect is typically used when no ``HoverEffect`` was provided or if"},{"text":"``HoverEffect/automatic`` is specified."},{"text":""},{"text":"For example, this view uses ``HoverEffect/highlight`` for both the red"},{"text":"and green Color views:"},{"text":""},{"text":" HStack {"},{"text":" Color.red.hoverEffect()"},{"text":" Color.green.hoverEffect()"},{"text":" }"},{"text":" .defaultHoverEffect(.highlight)"},{"text":""},{"text":"This also works for customizing the default hover effect in views like"},{"text":"``Button``s when using a SwiftUI-defined style like"},{"text":"``ButtonStyle/bordered``, which can provide a hover effect by default."},{"text":"For example, this view replaces the hover effect for a ``Button`` with"},{"text":"``HoverEffect/highlight``:"},{"text":""},{"text":" Button(\"Next\") {}"},{"text":" // perform action"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":" .defaultHoverEffect(.highlight)"},{"text":""},{"text":"Use a `nil` effect to indicate that the default hover effect should not"},{"text":"be modified."},{"text":""},{"text":"- Parameter effect: The default hover effect to use for views within"},{"text":" this view."},{"text":"- Returns: A view that uses this effect as the default hover effect."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultHoverEffect(_:)"],"names":{"title":"defaultHoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default hover effect to use within this view hierarchy."},{"text":""},{"text":"Use this modifier to set a specific hover effect for all views with the"},{"text":"``View/hoverEffect(_:)`` modifier applied to them within a view"},{"text":"hierarchy. The default effect is typically used when no"},{"text":"``CustomHoverEffect`` was provided or if ``CustomHoverEffect/automatic``"},{"text":"is specified."},{"text":""},{"text":"For example, this view applies a custom effect named `FadeInHoverEffect`"},{"text":"for both the red and green Color views:"},{"text":""},{"text":""},{"text":" HStack {"},{"text":" Color.red.hoverEffect()"},{"text":" Color.green.hoverEffect()"},{"text":" }"},{"text":" .defaultHoverEffect(FadeInHoverEffect())"},{"text":""},{"text":""},{"text":"This also works for customizing the default hover effect in views like"},{"text":"``Button``s when using a SwiftUI-defined style like"},{"text":"``ButtonStyle/bordered``, which can provide a hover effect by default."},{"text":"For example, this view replaces the hover effect for a ``Button`` with"},{"text":"a `FadeInHoverEffect` effect:"},{"text":""},{"text":""},{"text":" Button(\"Next\") {"},{"text":" // perform action"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":" .defaultHoverEffect(FadeInHoverEffect())"},{"text":""},{"text":""},{"text":"- Parameter effect: The default hover effect to use within this view"},{"text":" hierarchy."},{"text":"- Returns: A view that uses `effect` as the default hover effect."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomHoverEffect","rhs":"CustomHoverEffect","rhsPrecise":"s:7SwiftUI17CustomHoverEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffectDisabled(_:)"],"names":{"title":"hoverEffectDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a condition that controls whether this view can display hover"},{"text":"effects."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button does not display a hover"},{"text":"effect because the outer `hoverEffectDisabled(_:)` modifier overrides"},{"text":"the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Press\") {}"},{"text":" .hoverEffectDisabled(false)"},{"text":" }"},{"text":" .hoverEffectDisabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether this view"},{"text":" can display hover effects."},{"text":""},{"text":"- Returns: A view that controls whether hover effects can be displayed"},{"text":" in this view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundColor(_:)"],"names":{"title":"foregroundColor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundColor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the color of the foreground elements displayed by this view."},{"text":""},{"text":"- Parameter color: The foreground color to use when displaying this"},{"text":" view. Pass `nil` to remove any custom foreground color and to allow"},{"text":" the system or the container to provide its own foreground color."},{"text":" If a container-specific override doesn't exist, the system uses"},{"text":" the primary color."},{"text":""},{"text":"- Returns: A view that uses the foreground color you supply."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundColor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accentColor(_:)"],"names":{"title":"accentColor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the accent color for this view and the views it contains."},{"text":""},{"text":"Use `accentColor(_:)` when you want to apply a broad theme color to"},{"text":"your app's user interface. Some styles of controls use the accent color"},{"text":"as a default tint color."},{"text":""},{"text":"> Note: In macOS, SwiftUI applies customization of the accent color"},{"text":"only if the user chooses Multicolor under General > Accent color"},{"text":"in System Preferences."},{"text":""},{"text":"In the example below, the outer ``VStack`` contains two child views. The"},{"text":"first is a button with the default accent color. The second is a ``VStack``"},{"text":"that contains a button and a slider, both of which adopt the purple"},{"text":"accent color of their containing view. Note that the ``Text`` element"},{"text":"used as a label alongside the `Slider` retains its default color."},{"text":""},{"text":" VStack(spacing: 20) {"},{"text":" Button(action: {}) {"},{"text":" Text(\"Regular Button\")"},{"text":" }"},{"text":" VStack {"},{"text":" Button(action: {}) {"},{"text":" Text(\"Accented Button\")"},{"text":" }"},{"text":" HStack {"},{"text":" Text(\"Accented Slider\")"},{"text":" Slider(value: $sliderValue, in: -100...100, step: 0.1)"},{"text":" }"},{"text":" }"},{"text":" .accentColor(.purple)"},{"text":" }"},{"text":""},{"text":"![A VStack showing two child views: one VStack containing a default"},{"text":"accented button, and a second VStack where the VStack has a purple"},{"text":"accent color applied. The accent color modifies the enclosed button and"},{"text":"slider, but not the color of a Text item used as a label for the"},{"text":"slider.](View-accentColor-1)"},{"text":""},{"text":"- Parameter accentColor: The color to use as an accent color. Set the"},{"text":" value to `nil` to use the inherited accent color."}]},"functionSignature":{"parameters":[{"name":"accentColor","declarationFragments":[{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"accentColor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyframeAnimator(initialValue:trigger:content:keyframes:)"],"names":{"title":"keyframeAnimator(initialValue:trigger:content:keyframes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Plays the given keyframes when the given trigger value changes, updating"},{"text":"the view using the modifiers you apply in `body`."},{"text":""},{"text":"Note that the `content` closure will be updated on every frame while"},{"text":"animating, so avoid performing any expensive operations directly within"},{"text":"`content`."},{"text":""},{"text":"If the trigger value changes while animating, the `keyframes` closure"},{"text":"will be called with the current interpolated value, and the keyframes"},{"text":"that you return define a new animation that replaces the old one. The"},{"text":"previous velocity will be preserved, so cubic or spring keyframes will"},{"text":"maintain continuity from the previous animation if they do not specify"},{"text":"a custom initial velocity."},{"text":""},{"text":"When a keyframe animation finishes, the animator will remain at the"},{"text":"end value, which becomes the initial value for the next animation."},{"text":""},{"text":"- Parameters:"},{"text":" - initialValue: The initial value that the keyframes will animate"},{"text":" from."},{"text":" - trigger: A value to observe for changes."},{"text":" - content: A content builder closure that takes two parameters. The first"},{"text":" parameter is a proxy value representing the modified view. The"},{"text":" second parameter is the interpolated value generated by the"},{"text":" keyframes."},{"text":" - keyframes: Keyframes defining how the value changes over time. The"},{"text":" current value of the animator is the single argument, which is"},{"text":" equal to `initialValue` when the view first appears, then is equal"},{"text":" to the end value of the previous keyframe animation on subsequent"},{"text":" calls."}]},"functionSignature":{"parameters":[{"name":"initialValue","declarationFragments":[{"kind":"identifier","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"keyframes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Value","rhs":"(some Keyframes).Value"},{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"some Keyframes","rhs":"Keyframes","rhsPrecise":"s:7SwiftUI9KeyframesP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyframeAnimator(initialValue:repeating:content:keyframes:)"],"names":{"title":"keyframeAnimator(initialValue:repeating:content:keyframes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Loops the given keyframes continuously, updating"},{"text":"the view using the modifiers you apply in `body`."},{"text":""},{"text":"Note that the `content` closure will be updated on every frame while"},{"text":"animating, so avoid performing any expensive operations directly within"},{"text":"`content`."},{"text":""},{"text":"- Parameters:"},{"text":" - initialValue: The initial value that the keyframes will animate"},{"text":" from."},{"text":" - repeating: Whether the keyframes are currently repeating. If false,"},{"text":" the value at the beginning of the keyframe timeline will be"},{"text":" provided to the content closure."},{"text":" - content: A content builder closure that takes two parameters. The first"},{"text":" parameter is a proxy value representing the modified view. The"},{"text":" second parameter is the interpolated value generated by the"},{"text":" keyframes."},{"text":" - keyframes: Keyframes defining how the value changes over time. The"},{"text":" current value of the animator is the single argument, which is"},{"text":" equal to `initialValue` when the view first appears, then is equal"},{"text":" to the end value of the previous keyframe animation on subsequent"},{"text":" calls."}]},"functionSignature":{"parameters":[{"name":"initialValue","declarationFragments":[{"kind":"identifier","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]},{"name":"repeating","declarationFragments":[{"kind":"identifier","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"keyframes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Value","rhs":"(some Keyframes).Value"},{"kind":"conformance","lhs":"some Keyframes","rhs":"Keyframes","rhsPrecise":"s:7SwiftUI9KeyframesP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:)"],"names":{"title":"padding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a different padding amount to each edge of this view."},{"text":""},{"text":"Use this modifier to add a different amount of padding on each edge"},{"text":"of a view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by different amounts on each edge.\")"},{"text":" .padding(EdgeInsets(top: 10, leading: 20, bottom: 40, trailing: 0))"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by different amounts on each edge."},{"text":"Its border is gray, and there are different amounts of space between"},{"text":"the string and its border on each edge: 40 points on the bottom, 10"},{"text":"points on the top, 20 points on the leading edge, and no space on"},{"text":"the trailing edge."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-3-iOS)"},{"text":""},{"text":"To pad a view on specific edges with equal padding for all padded"},{"text":"edges, use ``View/padding(_:_:)``. To pad all edges of a view"},{"text":"equally, use ``View/padding(_:)``."},{"text":""},{"text":"- Parameter insets: An ``EdgeInsets`` instance that contains"},{"text":" padding amounts for each edge."},{"text":""},{"text":"- Returns: A view that's padded by different amounts on each edge."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:_:)"],"names":{"title":"padding(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an equal padding amount to specific edges of this view."},{"text":""},{"text":"Use this modifier to add a specified amount of padding to one or more"},{"text":"edges of the view. Indicate the edges to pad by naming either a single"},{"text":"value from ``Edge/Set``, or by specifying an"},{"text":""},{"text":"that contains edge values:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by 20 points on the bottom and trailing edges.\")"},{"text":" .padding([.bottom, .trailing], 20)"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by 20 points"},{"text":"on the bottom and trailing edges."},{"text":"Its border is gray, and there are 20 points of space between the bottom"},{"text":"and trailing edges of the string and its border."},{"text":"There's no space between the string and the border on the other edges."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-2-iOS)"},{"text":""},{"text":"You can omit either or both of the parameters. If you omit the `length`,"},{"text":"SwiftUI uses a default amount of padding. If you"},{"text":"omit the `edges`, SwiftUI applies the padding to all edges. Omit both"},{"text":"to add a default padding all the way around a view. SwiftUI chooses a"},{"text":"default amount of padding that's appropriate for the platform and"},{"text":"the presentation context."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text with default padding.\")"},{"text":" .padding()"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The example above looks like this in iOS under typical conditions:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text with default padding."},{"text":"Its border is gray, and there is padding on all sides"},{"text":"between the border and the string it encloses in an amount that's"},{"text":"similar to the height of the text."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-2a-iOS)"},{"text":""},{"text":"To control the amount of padding independently for each edge, use"},{"text":"``View/padding(_:)-6pgqq``. To pad all outside edges of a view by a"},{"text":"specified amount, use ``View/padding(_:)-68shk``."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges to pad for this view. The default"},{"text":" is ``Edge/Set/all``."},{"text":" - length: An amount, given in points, to pad this view on the"},{"text":" specified edges. If you set the value to `nil`, SwiftUI uses"},{"text":" a platform-specific default amount. The default value of this"},{"text":" parameter is `nil`."},{"text":""},{"text":"- Returns: A view that's padded by the specified amount on the"},{"text":" specified edges."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:)"],"names":{"title":"padding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a specific padding amount to each edge of this view."},{"text":""},{"text":"Use this modifier to add padding all the way around a view."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by 10 points on each edge.\")"},{"text":" .padding(10)"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by 10 points on each edge."},{"text":"Its border is gray, and there are 10 points of space on all sides"},{"text":"between the string and its border."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-1-iOS)"},{"text":""},{"text":"To independently control the amount of padding for each edge, use"},{"text":"``View/padding(_:)-6pgqq``. To pad a select set of edges by the"},{"text":"same amount, use ``View/padding(_:_:)``."},{"text":""},{"text":"- Parameter length: The amount, given in points, to pad this view on all"},{"text":" edges."},{"text":""},{"text":"- Returns: A view that's padded by the amount you specify."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffect(_:in:)"],"names":{"title":"glassEffect(_:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a glass effect to this view."},{"text":""},{"text":"When you use a glass effect, the platform:"},{"text":" - Renders a shape anchored behind this view filled with"},{"text":" the physical glass material"},{"text":" - Applies the foreground effects of the glass over this view."},{"text":""},{"text":"For example, you could add a glass effect to a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .glassEffect()"},{"text":""},{"text":"SwiftUI uses the ``Glass/regular`` variant by default along with"},{"text":"a ``Capsule`` shape."},{"text":""},{"text":"SwiftUI anchors the glass to the view's bounds. For the example"},{"text":"above, the physical glass material fills the entirety of the label's"},{"text":"frame, which includes the padding."},{"text":""},{"text":"You typically use this modifier with a ``GlassEffectContainer``"},{"text":"to combine multiple glass shapes into a single shape that"},{"text":"can morph shapes into one another."}]},"functionSignature":{"parameters":[{"name":"glass","declarationFragments":[{"kind":"identifier","spelling":"glass"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Shape","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"glass"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"},{"kind":"text","spelling":" = .regular, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":" = DefaultGlassEffectShape()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectTransition(_:)"],"names":{"title":"glassEffectTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a glass effect transition with any"},{"text":"glass effects defined within this view."},{"text":""},{"text":"You use this modifier with the ``View/glassEffect(_:in:)``"},{"text":"view modifier and ``GlassEffectContainer`` view. When used together,"},{"text":"SwiftUI will use the provided transition to apply changes to"},{"text":"the glass effect when you add or remove views with"},{"text":"these effects from the view hierarchy."},{"text":""},{"text":"In the example below, the notepad image will transition into and out"},{"text":"of the pencil image when the isExpanded variable changes."},{"text":""},{"text":" var isExpanded: Bool"},{"text":" @Namespace private var namespace"},{"text":""},{"text":" var body: some View {"},{"text":" GlassEffectContainer(spacing: 10.0) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" Image(systemName: \"pencil\")"},{"text":" .frame(width: 20.0, height: 20.0)"},{"text":" .glassEffect()"},{"text":" .glassEffectID(\"pencil\", in: namespace)"},{"text":""},{"text":" if isExpanded {"},{"text":" Image(systemName: \"note\")"},{"text":" .frame(width: 20.0, height: 20.0)"},{"text":" .glassEffect()"},{"text":" .glassEffectID(\"note\", in: namespace)"},{"text":" .glassEffectTransition(.matchedGeometry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onOpenURL(prefersInApp:)"],"names":{"title":"onOpenURL(prefersInApp:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets an `OpenURLAction` that prefers opening URL with an in-app browser."},{"text":"The `handler` closure takes a URL as input, and returns a ``OpenURLAction.Result`` that"},{"text":"indicates the outcome of the action."},{"text":""},{"text":"It's equivalent to calling `.onOpenURL(_:)`"},{"text":""},{"text":" .onOpenURL { _ in"},{"text":" .systemAction(prefersInApp: prefersInApp)"},{"text":" }"},{"text":""},{"text":"- Parameter prefersInApp: A boolean value that specifies whether to prefer to open the URL"},{"text":"with an in-app browser or not."}]},"functionSignature":{"parameters":[{"name":"prefersInApp","declarationFragments":[{"kind":"identifier","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutRatio(_:)"],"names":{"title":"splitArrangementLayoutRatio(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred size ratio for an arrangement view in a split style."},{"text":"Use this modifier when you want to customize the size of the view"},{"text":"compared to its other views in the split layout."},{"text":""},{"text":"The view with the highest `layoutPriority` will be sized first using"},{"text":"its ratio. When a ratio is used on a view that would be greater than"},{"text":"the remaining size of the arrangement view container, the remaining size"},{"text":"will be used. When a ratio of a view would result in the views of the"},{"text":"container not filling its total size, the highest priority view will"},{"text":"fill the remaining size of the container."},{"text":""},{"text":" ArrangementView {"},{"text":" ConversationView()"},{"text":" .splitArrangementLayoutRatio(0.3)"},{"text":" } secondary: {"},{"text":" PhotosView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split.axes(.horizontal))"},{"text":""},{"text":"- Parameter ratio: The ratio the view uses for its preferred size."}]},"functionSignature":{"parameters":[{"name":"ratio","declarationFragments":[{"kind":"identifier","spelling":"ratio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"ratio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)"],"names":{"title":"splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size ratio for an arrangement view in a split style."},{"text":"Use this modifier when you want to customize the size of the view"},{"text":"compared to its other views in the split layout."},{"text":""},{"text":" ArrangementView {"},{"text":" NumpadView()"},{"text":" .splitArrangementLayoutRatio("},{"text":" minHorizontal: 0.2,"},{"text":" idealHorizontal: 0.3,"},{"text":" maxHorizontal: 0.5,"},{"text":" idealVertical: 0.4)"},{"text":" } secondary: {"},{"text":" HistoryView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - minHorizontal: The minimum ratio for horizontal splits."},{"text":" - idealHorizontal: The ideal ratio for horizontal splits."},{"text":" - maxHorizontal: The maximum ratio for horizontal splits."},{"text":" - minVertical: The minimum ratio for vertical splits."},{"text":" - idealVertical: The ideal ratio for vertical splits."},{"text":" - maxVertical: The maximum ratio for vertical splits."}]},"functionSignature":{"parameters":[{"name":"minHorizontal","declarationFragments":[{"kind":"identifier","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHorizontal","declarationFragments":[{"kind":"identifier","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHorizontal","declarationFragments":[{"kind":"identifier","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minVertical","declarationFragments":[{"kind":"identifier","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealVertical","declarationFragments":[{"kind":"identifier","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxVertical","declarationFragments":[{"kind":"identifier","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)"],"names":{"title":"splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size constraints for an arrangement view in a split style."},{"text":""},{"text":"Views with higher `layoutPriority` are sized first using their ideal"},{"text":"size, clamped to their min and max values. Width constraints apply to"},{"text":"horizontal arrangements, and height constraints apply to vertical"},{"text":"arrangements."},{"text":""},{"text":" ArrangementView {"},{"text":" PhotoView()"},{"text":" .splitArrangementLayoutSize("},{"text":" minWidth: 200,"},{"text":" idealWidth: 320,"},{"text":" maxWidth: 400)"},{"text":" } secondary: {"},{"text":" InfoView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - minWidth: The minimum width for horizontal splits."},{"text":" - idealWidth: The ideal width for horizontal splits."},{"text":" - maxWidth: The maximum width for horizontal splits."},{"text":" - minHeight: The minimum height for vertical splits."},{"text":" - idealHeight: The ideal height for vertical splits."},{"text":" - maxHeight: The maximum height for vertical splits."}]},"functionSignature":{"parameters":[{"name":"minWidth","declarationFragments":[{"kind":"identifier","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealWidth","declarationFragments":[{"kind":"identifier","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxWidth","declarationFragments":[{"kind":"identifier","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minHeight","declarationFragments":[{"kind":"identifier","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHeight","declarationFragments":[{"kind":"identifier","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHeight","declarationFragments":[{"kind":"identifier","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementFixedLayoutSize(horizontal:vertical:)"],"names":{"title":"splitArrangementFixedLayoutSize(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementFixedLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred size constraint for an arrangement view in a split"},{"text":"style to the ideal size of the view within its container. The"},{"text":"arrangement view will prefer this size, but may resize to a smaller"},{"text":"size depending on the priority of the view."},{"text":""},{"text":" ArrangementView {"},{"text":" ChartView()"},{"text":" .splitArrangementFixedLayoutSize(horizontal: true, vertical: false)"},{"text":" } secondary: {"},{"text":" NewsView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - horizontal: Whether to prefer a fixed width for the view"},{"text":" in a horizontal split."},{"text":" - vertical: Whether to prefer a fixed height for the view"},{"text":" in a vertical split."}]},"functionSignature":{"parameters":[{"name":"horizontal","declarationFragments":[{"kind":"identifier","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"vertical","declarationFragments":[{"kind":"identifier","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementFixedLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineHeight(_:)"],"names":{"title":"lineHeight(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default line height in the view hierarchy."},{"text":""},{"text":"The default value is `nil`. In that case, SwiftUI automatically chooses"},{"text":"an appropriate line height setting for each context."},{"text":""},{"text":"- SeeAlso: ``EnvironmentValues/lineHeight``"}]},"functionSignature":{"parameters":[{"name":"lineHeight","declarationFragments":[{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"lineHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply a text formatting definition to nested views."},{"text":""},{"text":"Applying a text formatting definition to a ``Text`` or ``TextEditor``"},{"text":"created using the ``Text/init(_:)-(AttributedString)`` or"},{"text":"``TextEditor/init(text:selection:)`` initializer, respectively, makes"},{"text":"sure that any content observable to the user adheres to the constraints"},{"text":"of the formatting definition."},{"text":""},{"text":"You can compose your own definition from an attribute scope and a series"},{"text":"of ``AttributedTextValueConstraint``s:"},{"text":""},{"text":" // MyTextFormattingDefinition.swift"},{"text":""},{"text":" struct MyTextFormattingDefinition: AttributedTextFormattingDefinition {"},{"text":" var body: some AttributedTextFormattingDefinition<"},{"text":" AttributeScopes.SwiftUIAttributes"},{"text":" > {"},{"text":" ValueConstraint("},{"text":" for: \\.underlineStyle,"},{"text":" values: [nil, .single],"},{"text":" default: .single)"},{"text":" MyAttributedTextValueConstraint()"},{"text":" }"},{"text":" }"},{"text":""},{"text":" // MyEditorView.swift"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(MyTextFormattingDefinition())"},{"text":""},{"text":"- Note: A ``Binding`` to the text of a view with an"},{"text":"``AttributedTextFormattingDefinition`` may still contain values that do"},{"text":"not adhere to text formatting definition. E.g., a ``TextEditor`` may"},{"text":"choose to not apply constraints in the text formatting definition to"},{"text":"parts of a bound attributed string that are not visible on screen."},{"text":""},{"text":"To manually enforce constraints, e.g. before serializing text contents,"},{"text":"use the ``AttributedTextFormattingDefinition/constrain(_:)-(AttributedString)``"},{"text":"method."}]},"functionSignature":{"parameters":[{"name":"definition","declarationFragments":[{"kind":"identifier","spelling":"definition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"AttributedTextFormattingDefinition","rhsPrecise":"s:7SwiftUI34AttributedTextFormattingDefinitionP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"definition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributedTextFormattingDefinition","preciseIdentifier":"s:7SwiftUI34AttributedTextFormattingDefinitionP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply an attribute-only text formatting definition to all nested editor"},{"text":"views."},{"text":""},{"text":"Using only an attribute scope for the text formatting definition allows"},{"text":"the editor to use all attributes in the scope, but does not constrain"},{"text":"their values in any way. To constrain what values attribute can have,"},{"text":"use ``attributedTextFormattingDefinition(_:)-81jn6``."},{"text":""},{"text":"This example editor allows using Genmoji, but otherwise is a plain text"},{"text":"editor:"},{"text":""},{"text":" struct MyAttributeScope: AttributeScope {"},{"text":" let adaptiveImageGlyph: AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute"},{"text":" }"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(MyAttributeScope.self)"}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"AttributeScope","rhsPrecise":"s:10Foundation14AttributeScopeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributeScope","preciseIdentifier":"s:10Foundation14AttributeScopeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply an attribute-only text formatting definition to all nested editor"},{"text":"views."},{"text":""},{"text":"Using only an attribute scope for the text formatting definition allows"},{"text":"the editor to use all attributes in the scope, but does not constrain"},{"text":"their values in any way. To constrain what values attribute can have,"},{"text":"use ``attributedTextFormattingDefinition(_:)-81jn6``."},{"text":""},{"text":"This example editor allows using Genmoji, but otherwise is a plain text"},{"text":"editor:"},{"text":""},{"text":" struct MyAttributeScope: AttributeScope {"},{"text":" let adaptiveImageGlyph: AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute"},{"text":" }"},{"text":""},{"text":" extension AttributeScopes {"},{"text":" var myAttributeScope: MyAttributeScope.Type { MyAttributeScope.self }"},{"text":" }"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(\\.myAttributeScope)"},{"text":""},{"text":"The default configuration uses SwiftUI's attribute scope:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(\\.swiftUI)"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"AttributeScope","rhsPrecise":"s:10Foundation14AttributeScopeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributeScope","preciseIdentifier":"s:10Foundation14AttributeScopeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectUnion(id:namespace:)"],"names":{"title":"glassEffectUnion(id:namespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectUnion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates any glass effects defined within this view"},{"text":"to a union with the provided id."},{"text":""},{"text":"You may want the geometries of multiple views to contribute to"},{"text":"a single glass effect shape. In these cases, you can use a"},{"text":"``View/glassEffectUnion(id:namespace:)`` to specify that"},{"text":"a view should contribute to a union of glass effects with"},{"text":"a particular id. All glass effects with the same"},{"text":"shape and glass will be combined into a single shape."},{"text":""},{"text":"In the example below, two shapes are rendered on the leading"},{"text":"and trailing edge each encapsulating two distinct views."},{"text":""},{"text":" enum PlacementGroup: Hashable {"},{"text":" case leading"},{"text":" case trailing"},{"text":" case spacer"},{"text":" }"},{"text":""},{"text":" struct Item: Identifiable {"},{"text":" var id: String"},{"text":" var placement: Placement"},{"text":" }"},{"text":""},{"text":" @State private var items: [Item] = ["},{"text":" Item(id: \"0\", placement: .leading),"},{"text":" Item(id: \"1\", placement: .leading),"},{"text":" Item(id: \"spacer\", placement: .spacer),"},{"text":" Item(id: \"2\", placement: .trailing),"},{"text":" Item(id: \"3\", placement: .trailing)"},{"text":" ]"},{"text":" @Namespace private var namespace"},{"text":""},{"text":" var body: some View {"},{"text":" GlassEffectContainer {"},{"text":" HStack {"},{"text":" ForEach(items) { item in"},{"text":" itemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func itemView(_ item: Item) -> some View {"},{"text":" VStack {"},{"text":" if item.placement == .spacer {"},{"text":" Spacer()"},{"text":" } else {"},{"text":" Text(items.id)"},{"text":" .padding()"},{"text":" .glassEffect()"},{"text":" .glassEffectUnion(id: item.placement, namespace: namespace)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?"}]},{"name":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectUnion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayArrangementEdge(_:)"],"names":{"title":"overlayArrangementEdge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The vertical edge a view in an overlay arrangement occupies when"},{"text":"the arrangement transitions to a vertical layout."},{"text":""},{"text":"Use this modifier to anchor the given view when its overlay layout"},{"text":"transitions into a vertical layout. For example, to move the view"},{"text":"to the top of the arrangement view, use the `top` edge."},{"text":""},{"text":" var body: some View {"},{"text":" ArrangementView {"},{"text":" ControlsView()"},{"text":" .overlayArrangementEdge(.top)"},{"text":" } secondary: {"},{"text":" ContentView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edge: The vertical edge to position the view at."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayArrangementEdge(_:)"],"names":{"title":"overlayArrangementEdge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The horizontal edge a view in an overlay arrangement occupies when"},{"text":"the arrangement transitions to a horizontal layout."},{"text":""},{"text":"Use this modifier to anchor the given view when its overlay layout"},{"text":"transitions into a horizontal layout. For example, to move the view"},{"text":"to the trailing side of the arrangement view, use the `trailing` edge."},{"text":""},{"text":" var body: some View {"},{"text":" ArrangementView {"},{"text":" ControlsView()"},{"text":" .overlayArrangementEdge(.trailing)"},{"text":" } secondary: {"},{"text":" ContentView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edge: The horizontal edge to position the view at."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingDirection(strategy:)"],"names":{"title":"writingDirection(strategy:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default text writing direction strategy in the view"},{"text":"hierarchy."},{"text":""},{"text":"To control the writing direction explicitly, choose the"},{"text":"``Text/WritingDirectionStrategy/layoutBased`` mode and set the"},{"text":"``EnvironmentValues/layoutDirection`` to the appropriate value."}]},"functionSignature":{"parameters":[{"name":"strategy","declarationFragments":[{"kind":"identifier","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","arrangementViewStyle(_:)"],"names":{"title":"arrangementViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"arrangementViewStyle"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the style for arrangement views within this view."},{"text":""},{"text":"Use this modifier to set a specific style for all arrangement views"},{"text":"within a view:"},{"text":""},{"text":" ArrangementView {"},{"text":" PrimaryContent()"},{"text":" } secondary: {"},{"text":" SecondaryContent()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some ArrangementViewStyle","rhs":"ArrangementViewStyle","rhsPrecise":"s:7SwiftUI20ArrangementViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"arrangementViewStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","multilineTextAlignment(strategy:)"],"names":{"title":"multilineTextAlignment(strategy:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default text alignment strategy in the view"},{"text":"hierarchy."},{"text":""},{"text":"To control the alignment explicitly at a view level, choose the"},{"text":"``Text/AlignmentStrategy/layoutBased`` mode and set the"},{"text":"``EnvironmentValues/multilineTextAlignment`` to the appropriate value."}]},"functionSignature":{"parameters":[{"name":"strategy","declarationFragments":[{"kind":"identifier","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerCornerOffset(_:sizeToFit:)"],"names":{"title":"containerCornerOffset(_:sizeToFit:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerCornerOffset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adjusts the view's layout to avoid the container view's corner insets"},{"text":"for the specified edges."},{"text":""},{"text":"Use this modifier when you would like the view's layout to adapt to"},{"text":"avoid the container view's corner insets for a set of edges. Corner"},{"text":"insets may include pieces of system UI as well as the corner radii for"},{"text":"windows and presentations. When a specific edge is provided the view is"},{"text":"positioned to avoid insets from only the corners of that edge. When"},{"text":"multiple corner edges overlap in the same axis the view will be"},{"text":"positioned off the larger overlapping inset."},{"text":""},{"text":" DrawingCanvasView(canvas: $canvas)"},{"text":" .ignoresSafeArea()"},{"text":" .overlay(alignment: .topLeading) {"},{"text":" DrawingToolPaletteView(tool: $selectedTool)"},{"text":" .containerCornerOffset(.horizontal)"},{"text":" }"},{"text":""},{"text":"The modifier provides a `sizeToFit` parameter to indicate how the"},{"text":"view should be sized when it has been offset from a corner inset."},{"text":"By default, `false` is provided, and the content's size will"},{"text":"be unchanged, only the position of the view's content will be offset."},{"text":"When `true`, the content will attempt to size itself with a proposal"},{"text":"using the remaining size of the original view subtracted from the"},{"text":"overlapping corner insets."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges which the container view should add corner"},{"text":" insets from."},{"text":" - sizeToFit: A flag indicating when this view is offset off a"},{"text":" corner inset whether its size should attempt to fit into its"},{"text":" remaining space of the view or fill its original size."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"sizeToFit","declarationFragments":[{"kind":"identifier","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerCornerOffset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectID(_:in:)"],"names":{"title":"glassEffectID(_:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectID"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates an identity value to glass effects defined within"},{"text":"this view."},{"text":""},{"text":"You use this modifier with the ``View/glassEffect(_:in:)``"},{"text":"view modifier and ``GlassEffectContainer`` view. When used together,"},{"text":"SwiftUI will use the provided identifier to animate shapes to and from"},{"text":"each other during transitions."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectID"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(value:)"],"names":{"title":"accessibility(value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibility(label:),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibility(value:)."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sliderThumbVisibility(_:)"],"names":{"title":"sliderThumbVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sliderThumbVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the thumb visibility for `Slider`s within this view."},{"text":""},{"text":"Use this modifier to override the default slider thumb"},{"text":"visibility. For example, the code below creates a `Slider` without an"},{"text":"indicator:"},{"text":""},{"text":" @State private var speed = 50.0"},{"text":" @State private var isEditing = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Slider("},{"text":" value: $speed,"},{"text":" in: 0...100,"},{"text":" onEditingChanged: { editing in"},{"text":" isEditing = editing"},{"text":" }"},{"text":" )"},{"text":" .sliderThumbVisibility(.hidden)"},{"text":""},{"text":" Text(\"\\(speed)\")"},{"text":" .foregroundColor(isEditing ? .red : .blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Note: On watchOS, the slider thumb is always visible."},{"text":""},{"text":"- Parameter visibility: The slider thumb visibility to apply."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sliderThumbVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","actionSheet(item:content:)"],"names":{"title":"actionSheet(item:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an action sheet using the given item as a data source for the"},{"text":"sheet's content."},{"text":""},{"text":"Use this method when you need to populate the fields of an action sheet"},{"text":"with content from a data source. The example below shows a custom data"},{"text":"source, `FileDetails`, that provides data to populate the action sheet:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":""},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var sheetDetail: FileDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Action Sheet\") {"},{"text":" sheetDetail = FileDetails(name: \"MyImageFile.png\","},{"text":" fileType: .png)"},{"text":" }"},{"text":" .actionSheet(item: $sheetDetail) { detail in"},{"text":" ActionSheet("},{"text":" title: Text(\"File Import\"),"},{"text":" message: Text(\"\"\""},{"text":" Import \\(detail.name)?"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\"),"},{"text":" buttons: ["},{"text":" .destructive(Text(\"Import\"),"},{"text":" action: importFile),"},{"text":" .cancel()"},{"text":" ])"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func importFile() {"},{"text":" // Handle import action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing an action sheet populated using a custom data"},{"text":"source that describes a file and file"},{"text":"format.](SwiftUI-View-ActionSheetItemContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the action"},{"text":" sheet. When `item` is non-`nil`, the system passes"},{"text":" the contents to the modifier's closure. You use this content"},{"text":" to populate the fields of an action sheet that you create that the"},{"text":" system displays to the user. If `item` changes, the system"},{"text":" dismisses the currently displayed action sheet and replaces it"},{"text":" with a new one using the same process."},{"text":" - content: A closure returning the ``ActionSheet`` you create."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting::actions:)`instead."},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","actionSheet(isPresented:content:)"],"names":{"title":"actionSheet(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an action sheet when a given condition is true."},{"text":""},{"text":"In the example below, a button conditionally presents an action sheet"},{"text":"depending upon the value of a bound Boolean variable. When the Boolean"},{"text":"value is set to `true`, the system displays an action sheet with both"},{"text":"destructive and default actions:"},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingSheet = false"},{"text":" var body: some View {"},{"text":" Button(\"Show Action Sheet\", action: {"},{"text":" isShowingSheet = true"},{"text":" })"},{"text":" .actionSheet(isPresented: $isShowingSheet) {"},{"text":" ActionSheet("},{"text":" title: Text(\"Permanently erase the items in the Trash?\"),"},{"text":" message: Text(\"You can't undo this action.\"),"},{"text":" buttons:["},{"text":" .destructive(Text(\"Empty Trash\"),"},{"text":" action: emptyTrashAction),"},{"text":" .cancel()"},{"text":" ]"},{"text":" )}"},{"text":" }"},{"text":""},{"text":" func emptyTrashAction() {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![An action sheet with a title and message showing the use of default"},{"text":"and destructive button"},{"text":"types.](SwiftUI-View-ActionSheetisPresentedContent.png)"},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders alert sheets"},{"text":" as a popover that the user dismisses by tapping anywhere outside the"},{"text":" popover, rather than displaying the default dismiss button."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the action sheet that you create in the modifier's"},{"text":" `content` closure. When the user presses or taps the sheet's default"},{"text":" action button the system sets this value to `false` dismissing"},{"text":" the sheet."},{"text":" - content: A closure returning the `ActionSheet` to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting::actions:)`instead."},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSelection(_:)"],"names":{"title":"searchSelection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSelection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TextSelection","preciseIdentifier":"s:7SwiftUI13TextSelectionV"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Binds the selection of the search field associated with the nearest"},{"text":"searchable modifier to the given ``TextSelection`` value."},{"text":""},{"text":"Use this modifier to read and set selection in your search interface."},{"text":"Selection is represented using `TextSelection` where the indices are"},{"text":"relative to the search text you provide on the"},{"text":"``View/searchable(text:placement:prompt:)`` modifier. Note that this"},{"text":"value will not represent selection outside of the text, such as in any"},{"text":"leading tokens."},{"text":""},{"text":"SwiftUI will automatically update this value when the user changes"},{"text":"selection, such as by typing. Likewise, you can change selection by"},{"text":"writing to this value."},{"text":""},{"text":"The following example creates a search interface that selects all of"},{"text":"the text on focus."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State var text = \"Hello, world!\""},{"text":" @State var selection: TextSelection?"},{"text":" @FocusState var focused"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" Sidebar()"},{"text":" .searchable(text: $text)"},{"text":" .searchFocused($focused)"},{"text":" .searchSelection($selection)"},{"text":" } detail: {"},{"text":" Detail()"},{"text":" }"},{"text":" .onChange(of: focused) {"},{"text":" if focused {"},{"text":" selection = TextSelection("},{"text":" range: text.startIndex.."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSelection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TextSelection","preciseIdentifier":"s:7SwiftUI13TextSelectionV"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTargetBehavior(_:)"],"names":{"title":"scrollTargetBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetBehavior"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the scroll behavior of views scrollable in the provided axes."},{"text":""},{"text":"A scrollable view calculates where scroll gestures should end using its"},{"text":"deceleration rate and the state of its scroll gesture by default. A"},{"text":"scroll behavior allows for customizing this logic. You can provide"},{"text":"your own ``ScrollTargetBehavior`` or use one of the built in behaviors"},{"text":"provided by SwiftUI."},{"text":""},{"text":"### Paging Behavior"},{"text":""},{"text":"SwiftUI offers a ``PagingScrollTargetBehavior`` behavior which uses the"},{"text":"geometry of the scroll view to decide where to allow scrolls to end."},{"text":""},{"text":"In the following example, every view in the lazy stack is flexible"},{"text":"in both directions and the scroll view will settle to container aligned"},{"text":"boundaries."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" FullScreenItem(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetBehavior(.paging)"},{"text":""},{"text":"### View Aligned Behavior"},{"text":""},{"text":"SwiftUI offers a ``ViewAlignedScrollTargetBehavior`` scroll behavior"},{"text":"that will always settle on the geometry of individual views."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollTargetBehavior(.viewAligned)"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"You configure which views should be used for settling using the"},{"text":"``View/scrollTargetLayout(isEnabled:)`` modifier. Apply this modifier to"},{"text":"a layout container like ``LazyVStack`` or ``HStack`` and each individual"},{"text":"view in that layout will be considered for alignment."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some ScrollTargetBehavior","rhs":"ScrollTargetBehavior","rhsPrecise":"s:7SwiftUI20ScrollTargetBehaviorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTargetLayout(isEnabled:)"],"names":{"title":"scrollTargetLayout(isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the outermost layout as a scroll target layout."},{"text":""},{"text":"This modifier works together with the"},{"text":"``ViewAlignedScrollTargetBehavior`` to ensure that scroll views align"},{"text":"to view based content."},{"text":""},{"text":"Apply this modifier to layout containers like ``LazyHStack`` or"},{"text":"``VStack`` within a ``ScrollView`` that contain the main repeating"},{"text":"content of your ``ScrollView``."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollTargetBehavior(.viewAligned)"},{"text":""},{"text":"A scroll target layout ensures that any target layout nested within"},{"text":"the primary one will not also become a scroll target layout."},{"text":""},{"text":" LazyHStack { // a scroll target layout"},{"text":" VStack { ... } // not a scroll target layout"},{"text":" LazyHStack { ... } // also not a scroll target layout"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":""}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinuousHover(coordinateSpace:perform:)"],"names":{"title":"onContinuousHover(coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the pointer enters, moves within, and"},{"text":"exits the view's bounds."},{"text":""},{"text":"Call this method to define a region for detecting pointer movement with"},{"text":"the size and position of this view."},{"text":"The following example updates `hoverLocation` and `isHovering` to be"},{"text":"based on the phase provided to the closure:"},{"text":""},{"text":" @State private var hoverLocation: CGPoint = .zero"},{"text":" @State private var isHovering = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red"},{"text":" .frame(width: 400, height: 400)"},{"text":" .onContinuousHover { phase in"},{"text":" switch phase {"},{"text":" case .active(let location):"},{"text":" hoverLocation = location"},{"text":" isHovering = true"},{"text":" case .ended:"},{"text":" isHovering = false"},{"text":" }"},{"text":" }"},{"text":" .overlay {"},{"text":" Rectangle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" .foregroundColor(isHovering ? .green : .blue)"},{"text":" .offset(x: hoverLocation.x, y: hoverLocation.y)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - coordinateSpace: The coordinate space for the"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform whenever the pointer enters,"},{"text":" moves within, or exits the view's bounds. The `action` closure"},{"text":" passes the ``HoverPhase/active(_:)`` phase with the pointer's"},{"text":" coordinates if the pointer is in the view's bounds; otherwise, it"},{"text":" passes ``HoverPhase/ended``."},{"text":""},{"text":"- Returns: A view that calls `action` when the pointer enters,"},{"text":" moves within, or exits the view's bounds."}]},"functionSignature":{"parameters":[{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingToolsBehavior(_:)"],"names":{"title":"writingToolsBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the Writing Tools behavior for text and text input in the"},{"text":"environment."},{"text":""},{"text":"Use this view modifier to customize or disable the Writing Tools editing"},{"text":"experience for ``Text`` (when selectable), ``TextField``, and"},{"text":"``TextEditor`` views."},{"text":""},{"text":"- Parameter behavior: The Writing Tools behavior for text and text input in the"},{"text":" environment."},{"text":""},{"text":"- Returns: A view preferring the specified Writing Tools behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropDestination(for:action:isTargeted:)"],"names":{"title":"dropDestination(for:action:isTargeted:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The dropped content can be provided as binary data, file URLs, or file promises."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":" @State private var isDropTargeted = false"},{"text":""},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .dropDestination(for: String.self) { receivedTitles, location in"},{"text":" animateDrop(at: location)"},{"text":" process(titles: receivedTitles)"},{"text":" } isTargeted: {"},{"text":" isDropTargeted = $0"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func process(titles: [String]) { ... }"},{"text":" func animateDrop(at: CGPoint) { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The expected type of the dropped models."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":" - isTargeted: A closure that is called when a drag and drop operation"},{"text":" enters or exits the drop target area. The received value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified type."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { _ in }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `dropDestination(for:isEnabled:action:)` with an `action` that takes a `DropSession` parameter instead."},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `dropDestination(for:isEnabled:action:)` with an `action` that takes a `DropSession` parameter instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchScopes(_:scopes:)"],"names":{"title":"searchScopes(_:scopes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search scopes for this view."},{"text":""},{"text":"To enable people to narrow the scope of their searches, you can"},{"text":"create a type that represents the possible scopes, and then create a"},{"text":"state variable to hold the current selection. For example, you can"},{"text":"scope the product search to just fruits or just vegetables:"},{"text":""},{"text":" enum ProductScope {"},{"text":" case fruit"},{"text":" case vegetable"},{"text":" }"},{"text":""},{"text":" @State private var scope: ProductScope = .fruit"},{"text":""},{"text":"Provide a binding to the scope, as well as a view that represents each"},{"text":"scope:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text, tokens: $tokens) { token in"},{"text":" switch token {"},{"text":" case .apple: Text(\"Apple\")"},{"text":" case .pear: Text(\"Pear\")"},{"text":" case .banana: Text(\"Banana\")"},{"text":" }"},{"text":" }"},{"text":" .searchScopes($scope) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"SwiftUI uses this binding and view to add a ``Picker`` with the search"},{"text":"field. In iOS, iPadOS, macOS, and tvOS, the picker appears below the"},{"text":"search field when search is active. To ensure that the picker operates"},{"text":"correctly, match the type of the scope binding with the type of each"},{"text":"view's tag. Then modify your search to account for the current value of"},{"text":"the `scope` state property."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - scope: The active scope of the search field."},{"text":" - scopes: A content builder that represents the scoping options"},{"text":" SwiftUI uses to populate a ``Picker``."}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"scopes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchScopes(_:activation:_:)"],"names":{"title":"searchScopes(_:activation:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search scopes for this view with the specified"},{"text":"activation strategy."},{"text":""},{"text":"To enable people to narrow the scope of their searches, you can"},{"text":"create a type that represents the possible scopes, and then create a"},{"text":"state variable to hold the current selection. For example, you can"},{"text":"scope the product search to just fruits or just vegetables:"},{"text":""},{"text":" enum ProductScope {"},{"text":" case fruit"},{"text":" case vegetable"},{"text":" }"},{"text":""},{"text":" @State private var scope: ProductScope = .fruit"},{"text":""},{"text":"Provide a binding to the scope, as well as a view that represents each"},{"text":"scope:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text, tokens: $tokens) { token in"},{"text":" switch token {"},{"text":" case .apple: Text(\"Apple\")"},{"text":" case .pear: Text(\"Pear\")"},{"text":" case .banana: Text(\"Banana\")"},{"text":" }"},{"text":" }"},{"text":" .searchScopes($scope) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"SwiftUI uses this binding and view to add a ``Picker`` below the search"},{"text":"field. In iOS, macOS, and tvOS, the picker appears below the search"},{"text":"field when search is active. To ensure that the picker operates"},{"text":"correctly, match the type of the scope binding with the type of each"},{"text":"view's tag. Then condition your search on the current value of the"},{"text":"`scope` state property."},{"text":""},{"text":"By default, the appearance of scopes varies by platform:"},{"text":" - In iOS and iPadOS, search scopes appear when someone enters text"},{"text":" into the search field and disappear when someone cancels the search."},{"text":" - In macOS, search scopes appear when SwiftUI presents search and"},{"text":" disappear when someone cancels the search."},{"text":""},{"text":"However, you can use the `activation` parameter with a value of"},{"text":"``SearchScopeActivation/onTextEntry`` or"},{"text":"``SearchScopeActivation/onSearchPresentation`` to configure this"},{"text":"behavior:"},{"text":""},{"text":" .searchScopes($scope, activation: .onSearchPresentation) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - scope: The active scope of the search field."},{"text":" - activation: The activation style of the search field's scopes."},{"text":" - scopes: A content builder that represents the scoping options"},{"text":" SwiftUI uses to populate a ``Picker``."}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"activation","declarationFragments":[{"kind":"identifier","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"}]},{"name":"scopes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","selectionDisabled(_:)"],"names":{"title":"selectionDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"selectionDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition that controls whether users can select this view."},{"text":""},{"text":"Use this modifier to control the selectability of views in"},{"text":"selectable containers like ``List`` or ``Table``. In the example,"},{"text":"below, the user can't select the first item in the list."},{"text":""},{"text":" @Binding var selection: Item.ID?"},{"text":" @Binding var items: [Item]"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item: item)"},{"text":" .selectionDisabled(item.id == items.first?.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can also use this modifier to specify the selectability of views"},{"text":"within a `Picker`. The following example represents a flavor picker"},{"text":"that disables selection on flavors that are unavailable."},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue.capitalized)"},{"text":" .selectionDisabled(isSoldOut(flavor))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that determines whether users can"},{"text":" select this view."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"selectionDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","statusBarHidden(_:)"],"names":{"title":"statusBarHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBarHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the status bar."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" status bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBarHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use .toolbarVisibility(_, for: .statusBar) instead"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Has no effect on visionOS"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","statusBar(hidden:)"],"names":{"title":"statusBar(hidden:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the status bar."},{"text":""},{"text":"Use `statusBar(hidden:)` to show or hide the status bar."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" status bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"statusBarHidden(_:)"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Has no effect on visionOS"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardType(_:)"],"names":{"title":"keyboardType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the keyboard type for this view."},{"text":""},{"text":"Use `keyboardType(_:)` to specify the keyboard type to use for text"},{"text":"entry. A number of different keyboard types are available to meet"},{"text":"specialized input needs, such as entering email addresses or phone"},{"text":"numbers."},{"text":""},{"text":"The example below presents a ``TextField`` to input an email address."},{"text":"Setting the text field's keyboard type to `.emailAddress` ensures the"},{"text":"user can only enter correctly formatted email addresses."},{"text":""},{"text":" TextField(\"someone@example.com\", text: $emailAddress)"},{"text":" .keyboardType(.emailAddress)"},{"text":""},{"text":"There are several different kinds of specialized keyboard types"},{"text":"available though the"},{"text":" enumeration. To"},{"text":"specify the default system keyboard type, use `.default`."},{"text":""},{"text":"![A screenshot showing the use of a specialized keyboard type with a"},{"text":"text field.](SwiftUI-View-keyboardType.png)"},{"text":""},{"text":"- Parameter type: One of the keyboard types defined in the"},{"text":" enumeration."}]},"functionSignature":{"parameters":[{"name":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","autocapitalization(_:)"],"names":{"title":"autocapitalization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to apply auto-capitalization to this view."},{"text":""},{"text":"Use `autocapitalization(_:)` when you need to automatically capitalize"},{"text":"words, sentences, or other text like proper nouns."},{"text":""},{"text":"In example below, as the user enters text each word is automatically"},{"text":"capitalized:"},{"text":""},{"text":" TextField(\"Last, First\", text: $fullName)"},{"text":" .autocapitalization(UITextAutocapitalizationType.words)"},{"text":""},{"text":"The "},{"text":"enumeration defines the available capitalization modes. The default is"},{"text":"."},{"text":""},{"text":"- Parameter style: One of the autocapitalization modes defined in the"},{"text":""},{"text":"enumeration."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuOrder(_:)"],"names":{"title":"menuOrder(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuOrder"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the preferred order of items for menus presented from this view."},{"text":""},{"text":"Use this modifier to override the default menu order. On supported"},{"text":"platforms, ``MenuOrder/priority`` order keeps the first items closer"},{"text":"to the user’s point of interaction, whereas ``MenuOrder/fixed`` order"},{"text":"always orders items from top to bottom."},{"text":""},{"text":"On iOS, the ``MenuOrder/automatic`` order resolves to"},{"text":"``MenuOrder/fixed`` for menus presented within scrollable content."},{"text":"Pickers that use the ``PickerStyle/menu`` style also default to"},{"text":"``MenuOrder/fixed`` order. In all other cases, menus default to"},{"text":"``MenuOrder/priority`` order."},{"text":""},{"text":"On macOS, tvOS and watchOS, the ``MenuOrder/automatic`` order always"},{"text":"resolves to ``MenuOrder/fixed`` order."},{"text":""},{"text":"The following example creates a menu that presents its content in a"},{"text":"fixed order from top to bottom:"},{"text":""},{"text":" Menu {"},{"text":" Button(\"Select\", action: selectFolders)"},{"text":" Button(\"New Folder\", action: createFolder)"},{"text":" Picker(\"Appearance\", selection: $appearance) {"},{"text":" Label(\"Icons\", systemImage: \"square.grid.2x2\").tag(Appearance.icons)"},{"text":" Label(\"List\", systemImage: \"list.bullet\").tag(Appearance.list)"},{"text":" }"},{"text":" } label: {"},{"text":" Label(\"Settings\", systemImage: \"ellipsis.circle\")"},{"text":" }"},{"text":" .menuOrder(.fixed)"},{"text":""},{"text":"You can use this modifier on controls that present a menu."},{"text":"For example, the code below creates a ``Picker`` using the"},{"text":"``PickerStyle/menu`` style with a priority-based order:"},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" Text(\"Chocolate\").tag(Flavor.chocolate)"},{"text":" Text(\"Vanilla\").tag(Flavor.vanilla)"},{"text":" Text(\"Strawberry\").tag(Flavor.strawberry)"},{"text":" }"},{"text":" .pickerStyle(.menu)"},{"text":" .menuOrder(.priority)"},{"text":""},{"text":"You can also use this modifier on context menus. The example below"},{"text":"creates a context menu that presents its content in a fixed order:"},{"text":""},{"text":" Text(\"Favorite Card Suit\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button(\"♥️ - Hearts\", action: selectHearts)"},{"text":" Button(\"♣️ - Clubs\", action: selectClubs)"},{"text":" Button(\"♠️ - Spades\", action: selectSpades)"},{"text":" Button(\"♦️ - Diamonds\", action: selectDiamonds)"},{"text":" }"},{"text":" .menuOrder(.fixed)"},{"text":""},{"text":"The modifier has no effect when applied to a subsection or"},{"text":"submenu of a menu."},{"text":""},{"text":"- Parameter order: The menu item ordering strategy to apply."},{"text":""},{"text":"- Returns: A view that uses the specified menu ordering strategy."}]},"functionSignature":{"parameters":[{"name":"order","declarationFragments":[{"kind":"identifier","spelling":"order"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuOrder"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"order"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:_:for:)"],"names":{"title":"contentMargins(_:_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The edges to add the margins to."},{"text":" - insets: The amount of margins to add."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:_:for:)"],"names":{"title":"contentMargins(_:_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The edges to add the margins to."},{"text":" - length: The amount of margins to add."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:for:)"],"names":{"title":"contentMargins(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - length: The amount of margins to add on all edges."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionIndexLabel(_:)"],"names":{"title":"sectionIndexLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the label that is used in a section index to point to this"},{"text":"section, typically only a single character long."},{"text":""},{"text":"- Parameter label: The label to display in the section index, or `nil`"},{"text":"to display no label for this section."},{"text":""},{"text":"- See also `listSectionIndexVisibility(_:)`"}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionIndexLabel(_:)"],"names":{"title":"sectionIndexLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title that is used for the section index label pointing to this"},{"text":"section, typically only a single character long."},{"text":""},{"text":"- Parameter label: The title to use for the index label for this"},{"text":"section, or `nil` to display no label for this section."},{"text":""},{"text":"- See also `listSectionIndexVisibility(_:)`"}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionIndexVisibility(_:)"],"names":{"title":"listSectionIndexVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionIndexVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the visibility of the list section index."},{"text":""},{"text":"The section index shows the section index labels of sections, which are"},{"text":"set using the `sectionIndexLabel` modifier. These are typically the"},{"text":"letters of the alphabet, used for sorted sections."},{"text":""},{"text":" List(sections) { section in"},{"text":" Section(section.title) {"},{"text":" ForEach(section.rows) { row in"},{"text":" // ..."},{"text":" }"},{"text":" }"},{"text":" .sectionIndexLabel(section.indexTitle)"},{"text":" }"},{"text":" .listSectionIndexVisibility(.visible)"},{"text":""},{"text":"On iOS, the section index is displayed as a number of vertically stacked"},{"text":"letters on the trailing side of the list. Users can jump to a specific"},{"text":"section in the list by tapping on the corresponding index label."},{"text":""},{"text":"![A list on iOS showing alphabetically sorted contact details, with a"},{"text":"section index](Example_iOS.png)"},{"text":""},{"text":"On watchOS, the index of the section currently visible is displayed next"},{"text":"to the scroll indicator when the user is scrolling through the list"},{"text":"using the crown."},{"text":""},{"text":"![A list on watchOS showing an alphabetically sorted list of sporst,"},{"text":"with a section index](Example_iOS.png)"},{"text":""},{"text":"By default, the list section index is visible if the list contains any"},{"text":"sections with an index label."},{"text":""},{"text":"The index only shows labels for sections with a `sectionIndexLabel`"},{"text":"modifier. This can be used to hide certain sections from the index."},{"text":""},{"text":"By hiding section headers of empty sections with an index label, a list"},{"text":"section index can be made to show index labels without a corresponding"},{"text":"section."},{"text":""},{"text":"- Parameter visibility: The visibility of the list section index."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionIndexVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultFocus(_:_:priority:)"],"names":{"title":"defaultFocus(_:_:priority:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a region of the window in which default focus is evaluated by"},{"text":"assigning a value to a given focus state binding."},{"text":""},{"text":"By default, SwiftUI evaluates default focus when the window first"},{"text":"appears, and when a focus state binding update moves focus"},{"text":"automatically, but not when responding to user-driven navigation"},{"text":"commands."},{"text":""},{"text":"Clients can override the default behavior by specifying an evaluation"},{"text":"priority of ``DefaultFocusEvaluationPriority/userInitiated``, which"},{"text":"causes SwiftUI to use the client's preferred default focus in response"},{"text":"to user-driven focus navigation as well as automatic changes."},{"text":""},{"text":"In the following example, focus automatically goes to the second of the"},{"text":"two text fields when the view is first presented in the window."},{"text":""},{"text":" WindowGroup {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused($focusedField, equals: .firstField)"},{"text":" TextField(...)"},{"text":" .focused($focusedField, equals: .secondField)"},{"text":" }"},{"text":" .defaultFocus($focusedField, .secondField)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - binding: A focus state binding to update when evaluating default"},{"text":" focus in the modified view hierarchy."},{"text":" - value: The value to set the binding to during evaluation."},{"text":" - priority: An indication of how to prioritize the preferred default"},{"text":" focus target when focus moves into the modified view hierarchy."},{"text":" The default value is `automatic`, which means the preference will"},{"text":" be given priority when focus is being initialized or relocated"},{"text":" programmatically, but not when responding to user-directed"},{"text":" navigation commands."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollTargetVisibilityChange(idType:threshold:_:)"],"names":{"title":"onScrollTargetVisibilityChange(idType:threshold:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollTargetVisibilityChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", (["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be called with information about what views would"},{"text":"be considered visible."},{"text":""},{"text":"Use this modifier along with the modifier ``View/scrollTargetLayout()``"},{"text":"to be informed when the views in the targetted scroll view have crossed"},{"text":"the provided threshold to be considered on/off screen."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(models) { model in"},{"text":" CardView(model: model)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .onScrollTargetVisibilityChange(for: Model.ID.self, threshold: 0.2) { onScreenCards in"},{"text":" // Disable video playback for cards that are offscreen..."},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - idType: The type of Identity provided by the subviews."},{"text":" - threshold: The amount required to be visible within the viewport of the"},{"text":" the scrollview before the `action` is fired. By default when the view"},{"text":" has crossed more than 50% on-screen, the action will be called."},{"text":" - action: The action which will be called when the views within the"},{"text":" scroll view cross the provided threshold. The callback will include"},{"text":" which views are considered visible."}]},"functionSignature":{"parameters":[{"name":"idType","declarationFragments":[{"kind":"identifier","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type"}]},{"name":"threshold","declarationFragments":[{"kind":"identifier","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollTargetVisibilityChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollVisibilityChange(threshold:_:)"],"names":{"title":"onScrollVisibilityChange(threshold:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollVisibilityChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be called when the view crosses the threshold to be considered on/off screen."},{"text":""},{"text":"Use this modifier to be informed when the view has crossed the"},{"text":"provided threshold to be considered on/off screen."},{"text":""},{"text":" struct VideoPlayer: View {"},{"text":" @State var playing: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" Group {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollVisibilityChange(threshold: 0.2) { isVisible in"},{"text":" playing = isVisible"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the view appears on-screen, the action will be called if the threshold"},{"text":"has already been reached."},{"text":""},{"text":"- Parameters:"},{"text":" - threshold: The amount required to be visible within the viewport of the parent"},{"text":" view before the `action` is fired. By default when the view has crossed more than 50%"},{"text":" on-screen, the action will be called."},{"text":" - action: The action which will be called when the threshold has been reached."}]},"functionSignature":{"parameters":[{"name":"threshold","declarationFragments":[{"kind":"identifier","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollVisibilityChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchFocused(_:)"],"names":{"title":"searchFocused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding the focus state of the search field"},{"text":"associated with the nearest searchable modifier to the given"},{"text":"Boolean value."},{"text":""},{"text":"To control focus by matching a non-boolean value, use the"},{"text":"``View/searchFocused(_:equals:)`` modifier instead."},{"text":""},{"text":"For more information about using searchable modifiers, refer to"},{"text":"."},{"text":""},{"text":"- Parameter binding: The focus state to bind. When focus moves"},{"text":" to the associated search field, the binding sets the bound value to"},{"text":" `true`. If a caller sets the value to `true` programmatically, then"},{"text":" focus moves to the search field. When focus leaves the search field,"},{"text":" the binding sets the value to `false`. If a caller sets the value to"},{"text":" `false`, SwiftUI automatically dismisses focus."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchFocused(_:equals:)"],"names":{"title":"searchFocused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding the focus state of the search field"},{"text":"associated with the nearest searchable modifier to the given value."},{"text":""},{"text":"To control focus by matching a simple boolean condition, use the"},{"text":"``View/searchFocused(_:)`` modifier instead."},{"text":""},{"text":"For more information about using searchable modifiers, refer to"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When focus moves to the"},{"text":" associated search field, the binding sets the bound value to the"},{"text":" corresponding match value. If a caller sets the state value"},{"text":" programmatically to the matching value, then focus moves to the"},{"text":" search field. When focus leaves the search field, the binding sets"},{"text":" the bound value to `nil`. If a caller sets the value to `nil`,"},{"text":" SwiftUI automatically dismisses focus."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewStyle(_:)"],"names":{"title":"navigationSplitViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for navigation split views within this view."},{"text":""},{"text":"- Parameter style: The style to set."},{"text":""},{"text":"- Returns: A view that uses the specified navigation split view style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"NavigationSplitViewStyle","rhsPrecise":"s:7SwiftUI24NavigationSplitViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"NavigationSplitViewStyle","preciseIdentifier":"s:7SwiftUI24NavigationSplitViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingToolsAffordanceVisibility(_:)"],"names":{"title":"writingToolsAffordanceVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsAffordanceVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether the system should show the Writing Tools affordance"},{"text":"for text input views affected by the environment."},{"text":""},{"text":"Use this view modifier to disable the Writing Tools affordance"},{"text":"for ``TextField`` views when running on macOS or Mac Catalyst."},{"text":""},{"text":"- Parameter visibility: Whether the affordance may be shown for text"},{"text":"input views."},{"text":""},{"text":"- Returns: A view with the specified Writing Tools affordance visibility."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsAffordanceVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(leading:trailing:)"],"names":{"title":"navigationBarItems(leading:trailing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"leading","declarationFragments":[{"kind":"identifier","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"trailing","declarationFragments":[{"kind":"identifier","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(leading:)"],"names":{"title":"navigationBarItems(leading:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"leading","declarationFragments":[{"kind":"identifier","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(trailing:)"],"names":{"title":"navigationBarItems(trailing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"trailing","declarationFragments":[{"kind":"identifier","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(hidden:)"],"names":{"title":"accessibility(hidden:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(label:)"],"names":{"title":"accessibility(label:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(hint:)"],"names":{"title":"accessibility(hint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\" or"},{"text":"\"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(inputLabels:)"],"names":{"title":"accessibility(inputLabels:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" ``accessibility(label:)`` modifier."},{"text":""},{"text":"- Parameter inputLabels: An array of Text elements to use as input labels."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(identifier:)"],"names":{"title":"accessibility(identifier:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the specified string to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(selectionIdentifier:)"],"names":{"title":"accessibility(selectionIdentifier:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a selection identifier for this view's accessibility element."},{"text":""},{"text":"Picker uses the value to determine what node to use for the"},{"text":"accessibility value."}]},"functionSignature":{"parameters":[{"name":"selectionIdentifier","declarationFragments":[{"kind":"identifier","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyDeprecated":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyDeprecated":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyDeprecated":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":6},"isUnconditionallyDeprecated":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(sortPriority:)"],"names":{"title":"accessibility(sortPriority:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sort priority order for this view's accessibility element,"},{"text":"relative to other elements at the same level."},{"text":""},{"text":"Higher numbers are sorted first. The default sort priority is zero."}]},"functionSignature":{"parameters":[{"name":"sortPriority","declarationFragments":[{"kind":"identifier","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(activationPoint:)"],"names":{"title":"accessibility(activationPoint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the point where activations occur in the view."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(activationPoint:)"],"names":{"title":"accessibility(activationPoint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the unit point where activations occur in the view."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTransition(_:)"],"names":{"title":"navigationTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTransition"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the navigation transition style for this view."},{"text":""},{"text":"Add this modifier to a view that appears within a"},{"text":"``NavigationStack`` or a sheet, outside of any containers such as"},{"text":"``VStack``."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Namespace private var namespace"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" NavigationLink {"},{"text":" DetailView()"},{"text":" .navigationTransition(.zoom(sourceID: \"world\", in: namespace))"},{"text":" } label: {"},{"text":" Image(systemName: \"globe\")"},{"text":" .matchedTransitionSource(id: \"world\", in: namespace)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some NavigationTransition","rhs":"NavigationTransition","rhsPrecise":"s:7SwiftUI20NavigationTransitionP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabBarMinimizeBehavior(_:)"],"names":{"title":"tabBarMinimizeBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabBarMinimizeBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the behavior for tab bar minimization."},{"text":""},{"text":"The following TabView minimizes its tab bar when scrolling in the"},{"text":"'Numbers' or 'Alerts' tabs on iPhone."},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Numbers\", systemImage: \"number\") {"},{"text":" ScrollView {"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":" }"},{"text":" .tabBarMinimizeBehavior(.onScrollDown)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter behavior: The minimize behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabBarMinimizeBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","persistentSystemOverlays(_:)"],"names":{"title":"persistentSystemOverlays(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"persistentSystemOverlays"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the preferred visibility of the non-transient system views"},{"text":"overlaying the app."},{"text":""},{"text":"Use this modifier to influence the appearance of system overlays"},{"text":"in your app. The behavior varies by platform."},{"text":""},{"text":"In iOS, the following example hides every persistent system overlay."},{"text":"In visionOS 2 and later, the SharePlay Indicator hides if the"},{"text":"scene is shared through SharePlay, or not shared at all."},{"text":"During screen sharing, the indicator always remains visible."},{"text":"The Home indicator doesn't appear without specific user intent"},{"text":"when you set visibility to ``hidden``. For a ``WindowGroup``,"},{"text":"the modifier affects the visibility of the window chrome. For an"},{"text":"``ImmersiveSpace``, it affects the Home indicator."},{"text":""},{"text":" struct ImmersiveView: View {"},{"text":" var body: some View {"},{"text":" Text(\"Maximum immersion\")"},{"text":" .persistentSystemOverlays(.hidden)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: You can indicate a preference with this modifier, but the system"},{"text":"might or might not be able to honor that preference."},{"text":""},{"text":"Affected non-transient system views can include, but are not limited to:"},{"text":"- The Home indicator."},{"text":"- The SharePlay indicator."},{"text":"- The Multitasking Controls button and Picture in Picture on iPad."},{"text":""},{"text":"- Parameter visibility: A value that indicates the visibility of the"},{"text":"non-transient system views overlaying the app."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"persistentSystemOverlays"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackground(_:for:)"],"names":{"title":"toolbarBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred shape style of the background of a bar managed"},{"text":"by SwiftUI."},{"text":""},{"text":"The preferred style flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS. This example"},{"text":"shows a view that renders the navigation bar with a blue background"},{"text":"and dark color scheme."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.white)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to customize"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .blue, for: .navigationBar, .tabBar)"},{"text":" .toolbarColorScheme("},{"text":" .dark, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When used within a ``TabView``, the specified style will be"},{"text":"preferred while the tab is currently active. You can use a ``Group``"},{"text":"to specify the same preferred background for every tab."},{"text":""},{"text":" TabView {"},{"text":" Group {"},{"text":" MainView()"},{"text":" SettingsView()"},{"text":" }"},{"text":" .toolbarBackground(.blue, for: .tabBar)"},{"text":" }"},{"text":""},{"text":"Depending on the specified bars, the requested style may not be able to"},{"text":"be fullfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - style: The style to display as the background of the bar."},{"text":" - bars: The bars to use the style for or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackground(_:for:)"],"names":{"title":"toolbarBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred visibility of backgrounds on a bar managed by"},{"text":"SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"In iOS, a value of ``ToolbarPlacement/automatic`` makes the visibility"},{"text":"of a tab bar or navigation bar background depend on where a ``List`` or"},{"text":"``ScrollView`` settles. For example, when aligned to the bottom edge of"},{"text":"of a scroll view's content, the background of a tab bar becomes"},{"text":"transparent."},{"text":""},{"text":"Specify a value of ``Visibility/visible`` to ensure that the"},{"text":"background of a bar remains visible regardless of where any scroll"},{"text":"view or list stops scrolling."},{"text":""},{"text":"This example shows a view that prefers to always have the tab bar"},{"text":"visible when the middle tab is selected:"},{"text":""},{"text":" TabView {"},{"text":" FirstTab()"},{"text":" MiddleTab()"},{"text":" .toolbarBackground(.visible, for: .tabBar)"},{"text":" LastTab()"},{"text":" }"},{"text":""},{"text":"You can provide multiple placements to customize multiple bars"},{"text":"at once, as in the following example:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .visible, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the background of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackgroundVisibility(_:for:)"],"names":{"title":"toolbarBackgroundVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackgroundVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred visibility of backgrounds on a bar managed by"},{"text":"SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"In iOS, a value of ``ToolbarPlacement/automatic`` makes the visibility"},{"text":"of a tab bar or navigation bar background depend on where a ``List`` or"},{"text":"``ScrollView`` settles. For example, when aligned to the bottom edge of"},{"text":"of a scroll view's content, the background of a tab bar becomes"},{"text":"transparent."},{"text":""},{"text":"Specify a value of ``Visibility/visible`` to ensure that the"},{"text":"background of a bar remains visible regardless of where any scroll"},{"text":"view or list stops scrolling."},{"text":""},{"text":"This example shows a view that prefers to always have the tab bar"},{"text":"visible when the middle tab is selected:"},{"text":""},{"text":" TabView {"},{"text":" FirstTab()"},{"text":" MiddleTab()"},{"text":" .toolbarBackgroundVisibility(.visible, for: .tabBar)"},{"text":" LastTab()"},{"text":" }"},{"text":""},{"text":"You can provide multiple placements to customize multiple bars"},{"text":"at once, as in the following example:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackgroundVisibility("},{"text":" .visible, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the background of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackgroundVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarColorScheme(_:for:)"],"names":{"title":"toolbarColorScheme(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarColorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred color scheme of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred color scheme flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS. Pass in a value"},{"text":"of nil to match the current system's color scheme."},{"text":""},{"text":"This examples shows a view that renders the navigation bar with a blue"},{"text":"background and dark color scheme:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.blue)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":" // other tabs..."},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to customize"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .blue, for: .navigationBar, .tabBar)"},{"text":" .toolbarColorScheme("},{"text":" .dark, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Note that the provided color scheme is only respected while a"},{"text":"background is visible in the requested bar. As the background becomes"},{"text":"visible, the bar transitions from the color scheme of the app to the"},{"text":"requested color scheme. You can ensure that the color scheme is always"},{"text":"respected by specifying that the background of the bar always be"},{"text":"visible."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.visible)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":""},{"text":"Depending on the specified bars, the requested color scheme may not be"},{"text":"able to be fullfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - colorScheme: The preferred color scheme of the background"},{"text":" of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarColorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(_:for:)"],"names":{"title":"toolbar(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"This examples shows a view that hides the navigation bar on iOS, or the"},{"text":"window toolbar items on macOS."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar(.hidden)"},{"text":" }"},{"text":""},{"text":"To hide the entire titlebar on macOS, use this modifier with"},{"text":"``ToolbarPlacement/windowToolbar`` placement."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar(.hidden, for: .windowToolbar)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to hide"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar("},{"text":" .hidden, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: In macOS, if you provide ``ToolbarCommands`` to the scene"},{"text":" of your app, this modifier disables the toolbar visibility command"},{"text":" while the value of the modifier is not ``ToolbarPlacement/automatic``."},{"text":""},{"text":"Depending on the specified bars, the requested visibility may not be"},{"text":"able to be fulfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the bar."},{"text":" - bars: The bars to update the visibility of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVisibility(_:for:)"],"names":{"title":"toolbarVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"This examples shows a view that hides the navigation bar on iOS, or the"},{"text":"window toolbar items on macOS."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility(.hidden)"},{"text":" }"},{"text":""},{"text":"To hide the entire titlebar on macOS, use this modifier with"},{"text":"``ToolbarPlacement/windowToolbar`` placement."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility(.hidden, for: .windowToolbar)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to hide"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility("},{"text":" .hidden, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: In macOS, if you provide ``ToolbarCommands`` to the scene"},{"text":" of your app, this modifier disables the toolbar visibility command"},{"text":" while the value of the modifier is not ``ToolbarPlacement/automatic``."},{"text":""},{"text":"Depending on the specified bars, the requested visibility may not be"},{"text":"able to be fulfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the bar."},{"text":" - bars: The bars to update the visibility of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarForegroundStyle(_:for:)"],"names":{"title":"toolbarForegroundStyle(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarForegroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred foreground style of bars managed by SwiftUI."},{"text":""},{"text":"This examples shows a view that renders the navigation bar"},{"text":"with a blue foreground color."},{"text":""},{"text":" NavigationStack {"},{"text":" ContentView()"},{"text":" .navigationTitle(\"Blue\")"},{"text":" .toolbarForegroundStyle("},{"text":" .blue, for: .navigationBar)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarForegroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","isUnconditionallyUnavailable":true},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:isEnabled:move:)"],"names":{"title":"reorderContainer(for:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable()`` to the content of your container"},{"text":"to make those views reorderable."},{"text":""},{"text":"Use this overload if your container only has one collection within it."},{"text":"If you have multiple collections of reorderable views, use"},{"text":"``View/reorderContainer(for:in:isEnabled:move:)`` instead and provide a"},{"text":"type for collection identifiers."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a different to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of landmark views that a person can"},{"text":"move to reorder inside the ``VStack``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var landmarks: [Landmark] = []"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(landmarks) { landmark in"},{"text":" LandmarkView(landmark)"},{"text":" }"},{"text":" .reorderable()"},{"text":" }"},{"text":" .reorderContainer(for: Landmark.self) { difference in"},{"text":" apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:in:isEnabled:move:)"],"names":{"title":"reorderContainer(for:in:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type you specify to"},{"text":"identify sections."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - collectionID: The type used to identify collections of reorderable"},{"text":" items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable(collectionID:)`` to the content of"},{"text":"your container to make those views reorderable."},{"text":""},{"text":"Use this overload if your container contains multiple collections. If"},{"text":"your container only has a single collection, use the convenience"},{"text":"``View/reorderContainer(for:isEnabled:move:)`` modifier."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a difference to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of reminder views that a person can"},{"text":"move to reorder inside and between each ``Section`` in the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var model = ReminderModel()"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(model.sections) { section in"},{"text":" Section(section.name) {"},{"text":" ForEach(section.reminders) { reminder in"},{"text":" ReminderView(reminder)"},{"text":" }"},{"text":" .reorderable(collectionID: section.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .reorderContainer("},{"text":" for: Reminder.self, in: ReminderModel.Section.ID.self"},{"text":" ) { difference in"},{"text":" model.apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"collectionID","declarationFragments":[{"kind":"identifier","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"CollectionID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"CollectionID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"CollectionID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:itemID:isEnabled:move:)"],"names":{"title":"reorderContainer(for:itemID:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type and keypath you"},{"text":"specify to identify items."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - itemID: A keypath to the identifier used to represent this item."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable()`` to the content of your container"},{"text":"to make those views reorderable."},{"text":""},{"text":"Use this overload if your container only has one collection within it."},{"text":"If you have multiple collections of reorderable views and you need to"},{"text":"provide the type and keypath you use to identify items, use"},{"text":"``View/reorderContainer(for:itemID:in:isEnabled:move:)`` instead and"},{"text":"provide a type for collection identifiers."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a different to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of landmark views that a person can"},{"text":"move to reorder inside the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var landmarks: [Landmark] = []"},{"text":" @State private var selection = Set()"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(landmarks, id: \\.location) { landmark in"},{"text":" LandmarkView(landmark)"},{"text":" }"},{"text":" .reorderable()"},{"text":" }"},{"text":" .reorderContainer(for: Landmark.self, id: \\.location) {"},{"text":" (difference) in"},{"text":" apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:itemID:in:isEnabled:move:)"],"names":{"title":"reorderContainer(for:itemID:in:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type and keypath you"},{"text":"use to identify items and a type you use to identify collections."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - itemID: A keypath to the identifier used to represent this item."},{"text":" - collectionID: The type used to identify collections of reorderable"},{"text":" items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable(collectionID:)`` to the content of"},{"text":"your container to make those views reorderable."},{"text":""},{"text":"Use this overload if your container contains multiple collections and"},{"text":"you need to provide the type and keypath you use to identify items. If"},{"text":"your container only has a single collection, use the convenience"},{"text":"``View/reorderContainer(for:itemID:isEnabled:move:)`` modifier."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a difference to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of reminder views that a person can"},{"text":"move to reorder inside and between each ``Section`` in the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var model = ReminderModel()"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(model.sections) { section in"},{"text":" Section(section.name) {"},{"text":" ForEach("},{"text":" section.reminders, id: \\.databaseID"},{"text":" ) { reminder in"},{"text":" ReminderView(reminder)"},{"text":" }"},{"text":" .reorderable(collectionID: section.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .reorderContainer("},{"text":" for: Reminder.self, itemID: \\.databaseID,"},{"text":" in: ReminderModel.Section.ID.self"},{"text":" ) { difference in"},{"text":" model.apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"collectionID","declarationFragments":[{"kind":"identifier","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1},{"name":"CollectionID","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"CollectionID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"CollectionID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","pasteDestination(for:action:validator:)"],"names":{"title":"pasteDestination(for:action:validator:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pasteDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"validator"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action that adds validated items to a view in response to"},{"text":"the system's Paste command."},{"text":""},{"text":"Use this modifier to paste one or more items into a view from the"},{"text":"Clipboard when someone issues a Paste command. People issue a Paste"},{"text":"command by choosing Edit > Paste from the app's menu, or by using the"},{"text":"Command-V keyboard shortcut. The system enables the Paste command for"},{"text":"your app when the view in focus provides a paste destination."},{"text":""},{"text":"For example, the following code enables people to paste bird names"},{"text":"into a list:"},{"text":""},{"text":" struct PasteDestinationExample: View {"},{"text":" @State private var birds: [String] = []"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" let knownBirds = [\"owl\", \"parrot\", \"swift\","},{"text":" \"sparrow\", \"robin\", \"bluebird\"]"},{"text":""},{"text":" var body: some View {"},{"text":" List(birds, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .pasteDestination(for: String.self) { values in"},{"text":" birds.append(contentsOf: values)"},{"text":" } validator: { values in"},{"text":" values.filter { knownBirds.contains($0) }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The paste destination handles only pasted content with a type that"},{"text":"matches the `payloadType` that you specify. The list in the above"},{"text":"example only accepts strings."},{"text":""},{"text":"Use the `validator` closure to restrict the pasted content to items that"},{"text":"make sense in the context of the view. The above example allows people"},{"text":"to paste only strings that match one of a known list of bird names"},{"text":"because the list is meant to contain only birds. You can omit the final"},{"text":"closure if you don't need to perform any validation."},{"text":""},{"text":"> Note: To enable people to paste using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Paste command,"},{"text":"access the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The type of data that the paste destination accepts."},{"text":" The type must conform to the"},{"text":" "},{"text":" protocol."},{"text":" - action: The action to perform when someone uses the system's Paste"},{"text":" command to paste one or more items of the payload type. The closure"},{"text":" takes one parameter, which is the array of items to paste."},{"text":" - validator: A closure that you implement to validate the data to"},{"text":" paste. SwiftUI calls this before it calls the `action` closure,"},{"text":" and passes in an array of items to validate. Inspect the items, and"},{"text":" return an array that includes only those from the input array that"},{"text":" you consider valid. The array that you return from this closure"},{"text":" becomes the input to the `action` closure. If you return an empty"},{"text":" array, SwiftUI doesn't call the `action` closure."},{"text":""},{"text":"- Returns: A view that people can paste into using the system Paste"},{"text":" command."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"validator","declarationFragments":[{"kind":"identifier","spelling":"validator"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pasteDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"validator"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"] = { $0 }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","cuttable(for:action:)"],"names":{"title":"cuttable(for:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cuttable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action that moves items to the Clipboard in response to"},{"text":"the system's Cut command."},{"text":""},{"text":"Use this modifier to remove one or more items from a collection of"},{"text":"items and then move the items to the Clipboard when someone issues"},{"text":"a Cut command. People issue a Cut command by choosing Edit > Cut from"},{"text":"the app's menu, or by using the Command-X keyboard shortcut. The system"},{"text":"enables the Cut command for your app when it detects cuttable content."},{"text":""},{"text":"For example, the following code enables people to remove bird names"},{"text":"from a list of birds:"},{"text":""},{"text":" struct CuttableExample: View {"},{"text":" @State private var birds = [\"owl\", \"parrot\", \"swift\"]"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(birds, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .cuttable(for: String.self) {"},{"text":" for bird in selection {"},{"text":" birds.removeAll(where: { $0 == bird })"},{"text":" }"},{"text":" return Array(selection)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone selects \"owl\" and issues a Cut command, the `action`"},{"text":"closure removes the selected item from the list and returns it."},{"text":"In response, SwiftUI moves it to the Clipboard. If you want to"},{"text":"copy the item without removing it, use the ``copyable(_:)`` modifier"},{"text":"instead."},{"text":""},{"text":"> Note: To enable people to cut using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Cut command,"},{"text":"update the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The type of items to cut."},{"text":" - action: A closure that you implement to delete the selected"},{"text":" items from the collection, and return them for addition to the"},{"text":" Clipboard. The items must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that sends one or more items to the Clipboard"},{"text":" in response to a Cut command."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cuttable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","copyable(_:)"],"names":{"title":"copyable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"copyable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies a list of items to copy in response to the system's Copy"},{"text":"command."},{"text":""},{"text":"Use this modifier to specify one or more items that the system copies"},{"text":"to the Clipboard when someone issues a Copy command while the modified"},{"text":"view has focus. People issue a Copy command by choosing Edit > Copy"},{"text":"from the app's menu, or by using the Command-C keyboard shortcut. The"},{"text":"system enables the Copy command for your app when it detects copyable"},{"text":"content."},{"text":""},{"text":"For example, the following code enables people to copy all of the"},{"text":"strings that they select in a ``List``:"},{"text":""},{"text":" struct CopyableExample: View {"},{"text":" let strings = [\"Alpha\", \"Beta\", \"Gamma\"]"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(strings, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .copyable(Array(selection))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The command copies each item's representation as specified by the"},{"text":"item's conformance to the"},{"text":""},{"text":"protocol. The above example records selection using each list item's"},{"text":"corresponding string, and strings conform to the `Transferable` protocol"},{"text":"by default. For more complex cases, you might need to take additional"},{"text":"steps."},{"text":""},{"text":"For example, the following code displays colors composed from a list"},{"text":"of `Item` instances that contain both a color and its name, as well as"},{"text":"an identifier. The list manages selection using item identifiers:"},{"text":""},{"text":" struct Item: Identifiable, Transferable {"},{"text":" let color: Color"},{"text":" let name: String"},{"text":" let id = UUID()"},{"text":""},{"text":" static var transferRepresentation: some TransferRepresentation {"},{"text":" ProxyRepresentation(exporting: \\.name)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct CopyableIDExample: View {"},{"text":" let items: [Item] = ["},{"text":" Item(color: .red, name: \"red\"),"},{"text":" Item(color: .green, name: \"green\"),"},{"text":" Item(color: .blue, name: \"blue\")"},{"text":" ]"},{"text":""},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(items, selection: $selection) { item in"},{"text":" item.color"},{"text":" }"},{"text":" .copyable(items.filter { selection.contains($0.id) })"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example does two things that the previous example didn't have to:"},{"text":""},{"text":"* It converts the list of selected item identifiers into a list of"},{"text":" selected items for use with the copyable modifier."},{"text":"* It ensures that the copyable items conform to the"},{"text":" "},{"text":" protocol, using the item's `name` property as the representation."},{"text":""},{"text":"When someone copies the first item in the list, which appears in the"},{"text":"interface as a red rectangle, and then pastes into a text editor, they"},{"text":"get the string \"red\"."},{"text":""},{"text":"> Note: To enable people to copy using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Copy command,"},{"text":"update the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payload: A closure that returns an array of items to copy"},{"text":" to the Clipboard when someone issues a Copy command. The"},{"text":" items in the array must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that adds one or more items to the Clipboard"},{"text":" in response to a Copy command."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"copyable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSuggestions(_:)"],"names":{"title":"searchSuggestions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search suggestions for this view."},{"text":""},{"text":"You can suggest search terms during a search operation by providing a"},{"text":"collection of view to this modifier. The interface presents the"},{"text":"suggestion views as a list of choices when someone activates the"},{"text":"search interface. Associate a string with each suggestion"},{"text":"view by adding the ``View/searchCompletion(_:)`` modifier to"},{"text":"the view. For example, you can suggest fruit types by displaying their"},{"text":"emoji, and provide the corresponding search string as a search"},{"text":"completion in each case:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text)"},{"text":" .searchSuggestions {"},{"text":" Text(\"🍎\").searchCompletion(\"apple\")"},{"text":" Text(\"🍐\").searchCompletion(\"pear\")"},{"text":" Text(\"🍌\").searchCompletion(\"banana\")"},{"text":" }"},{"text":""},{"text":"When someone chooses a suggestion, SwiftUI replaces the text in the"},{"text":"search field with the search completion string. If you omit the search"},{"text":"completion modifier for a particular suggestion view, SwiftUI displays"},{"text":"the suggestion, but the suggestion view doesn't react to taps or clicks."},{"text":""},{"text":"> Important: In tvOS, searchable modifiers only support suggestion views"},{"text":"of type ``Text``, like in the above example. Other platforms can use any"},{"text":"view for the suggestions, including custom views."},{"text":""},{"text":"You can update the suggestions that you provide as conditions change."},{"text":""},{"text":"For example, you can specify an array of suggestions that you store"},{"text":"in a model:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text)"},{"text":" .searchSuggestions {"},{"text":" ForEach(model.suggestedSearches) { suggestion in"},{"text":" Label(suggestion.title, image: suggestion.image)"},{"text":" .searchCompletion(suggestion.text)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If the model's `suggestedSearches` begins as an empty array, the"},{"text":"interface doesn't display any suggestions to start. You can then provide"},{"text":"logic that updates the array based on some condition. For example, you"},{"text":"might update the completions based on the current search text. Note that"},{"text":"certain events or actions, like when someone moves a macOS window, might"},{"text":"dismiss the suggestion view."},{"text":""},{"text":"For more information about using search modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSearchActivation(_:)"],"names":{"title":"tabViewSearchActivation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSearchActivation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the activation and deactivation behavior of search in the"},{"text":"search tab."},{"text":""},{"text":"Use this modifier on a ``TabView`` to change how search activation is"},{"text":"handled. The exact activation behavior is determined by the"},{"text":"``TabSearchActivation`` you pass to this modifier:"},{"text":""},{"text":" struct TabExampleView: View {"},{"text":" @State private var text: String = \"\""},{"text":""},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Books\", systemImage: \"book\") {"},{"text":" BooksTab()"},{"text":" }"},{"text":" Tab(role: .search) {"},{"text":" NavigationStack {"},{"text":" SearchContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .searchable(text: $text)"},{"text":" .tabViewSearchActivation(.searchTabSelection)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, search is only activated and deactivated by the user."}]},"functionSignature":{"parameters":[{"name":"activation","declarationFragments":[{"kind":"identifier","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSearchActivation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultScrollAnchor(_:)"],"names":{"title":"defaultScrollAnchor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates an anchor to control which part of the scroll view's"},{"text":"content should be rendered by default."},{"text":""},{"text":"Use this modifier to specify an anchor to control both which part of"},{"text":"the scroll view's content should be visible initially and how"},{"text":"the scroll view handles content size changes."},{"text":""},{"text":"Provide a value of ``UnitPoint/center`` to have the scroll"},{"text":"view start in the center of its content when a scroll view"},{"text":"is scrollable in both axes."},{"text":""},{"text":" ScrollView([.horizontal, .vertical]) {"},{"text":" // initially centered content"},{"text":" }"},{"text":" .defaultScrollAnchor(.center)"},{"text":""},{"text":"Provide a value of ``UnitPoint/bottom`` to have the scroll view"},{"text":"start at the bottom of its content when scrollable in the"},{"text":"vertical axis."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .defaultScrollAnchor(.bottom)"},{"text":""},{"text":"The user may scroll away from the initial defined scroll position."},{"text":"When the content size of the scroll view changes, it may consult"},{"text":"the anchor to know how to reposition the content."},{"text":""}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultScrollAnchor(_:for:)"],"names":{"title":"defaultScrollAnchor(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates an anchor to control the position of a scroll view in a"},{"text":"particular circumstance."},{"text":""},{"text":"You can associate a ``UnitPoint`` to a ``ScrollView`` using the"},{"text":"``View/defaultScrollAnchor(_:)`` modifier. By default, the system"},{"text":"uses this point for different kinds of behaviors including:"},{"text":" - Where the scroll view should initially be scrolled"},{"text":" - How the scroll view should handle content size or"},{"text":" container size changes"},{"text":" - How the scroll view should align content smaller than"},{"text":" its container size"},{"text":""},{"text":"You can further customize this behavior by assigning different unit"},{"text":"points for these different cases."},{"text":""},{"text":"For example, you can use the ``View/defaultScrollAnchor(_:)`` modifier"},{"text":"to provide a value of ``UnitPoint/bottom`` as the anchor for all cases"},{"text":"and then opt out of certain cases by providing a different value"},{"text":"for them."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .defaultScrollAnchor(.bottom)"},{"text":" .defaultScrollAnchor(.topLeading, for: .alignment)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundExtensionEffect()"],"names":{"title":"backgroundExtensionEffect()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the background extension effect to the view. The view will be"},{"text":"duplicated into mirrored copies which will be placed around the view on"},{"text":"any edge with available safe area. Additionally, a blur effect will be"},{"text":"applied on top to blur out the copies."},{"text":""},{"text":"Use this modifier when you want to extend the view beyond its bounds so"},{"text":"the copies can function as backgrounds for other elements on top. The"},{"text":"most common use case is to apply this to a view in the detail column of"},{"text":"a navigation split view so it can extend under the sidebar or inspector"},{"text":"region to provide seamless immersive visuals."},{"text":""},{"text":"```"},{"text":"NavigationSplitView {"},{"text":" // sidebar content"},{"text":"} detail: {"},{"text":" ZStack {"},{"text":" BannerView()"},{"text":" .backgroundExtensionEffect()"},{"text":" }"},{"text":"}"},{"text":".inspector(isPresented: $showInspector) {"},{"text":" // inspector content"},{"text":"}"},{"text":"```"},{"text":""},{"text":"Apply this modifier with discretion. This should often be used with only"},{"text":"a single instance of background content with consideration of visual"},{"text":"clarity and performance."},{"text":""},{"text":"- Note: This modifier will clip the view to prevent copies from"},{"text":"overlapping with each other."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundExtensionEffect(isEnabled:)"],"names":{"title":"backgroundExtensionEffect(isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the background extension effect to the view. The view will be"},{"text":"duplicated into mirrored copies which will be placed around the view on"},{"text":"any edge with available safe area. Additionally, a blur effect will be"},{"text":"applied on top to blur out the copies."},{"text":""},{"text":"Use this modifier when you want to create copies outside of the safe"},{"text":"area so the view and its copies together can function as backgrounds for"},{"text":"other elements on top. The most common use case is to apply this to a"},{"text":"view in the detail column of a navigation split view so it can extend"},{"text":"under the sidebar or inspector region to provide seamless immersive"},{"text":"visuals."},{"text":""},{"text":"```"},{"text":"@State private var extendBackground: Bool = true"},{"text":""},{"text":"NavigationSplitView {"},{"text":" // sidebar content"},{"text":"} detail: {"},{"text":" ZStack {"},{"text":" BannerView()"},{"text":" .backgroundExtensionEffect(isEnabled: extendBackground)"},{"text":" }"},{"text":"}"},{"text":".inspector(isPresented: $showInspector) {"},{"text":" // inspector content"},{"text":"}"},{"text":"```"},{"text":""},{"text":"Apply this modifier with discretion. This should often be used with only"},{"text":"a single instance of background content with consideration of visual"},{"text":"clarity and performance."},{"text":""},{"text":"- Parameter isEnabled: Should the extension effect be active or not."},{"text":"- Note: This modifier will clip the view to prevent copies from"},{"text":"overlapping with each other."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicators(_:axes:)"],"names":{"title":"scrollIndicators(_:axes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicators"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of scroll indicators within this view."},{"text":""},{"text":"Use this modifier to hide or show scroll indicators on scrollable"},{"text":"content in views like a ``ScrollView``, ``List``, or ``TextEditor``."},{"text":"This modifier applies the preferred visibility to any"},{"text":"scrollable content within a view hierarchy."},{"text":""},{"text":" ScrollView {"},{"text":" VStack(alignment: .leading) {"},{"text":" ForEach(0..<100) {"},{"text":" Text(\"Row \\($0)\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollIndicators(.hidden)"},{"text":""},{"text":"Use the ``ScrollIndicatorVisibility/hidden`` value to indicate that you"},{"text":"prefer that views never show scroll indicators along a given axis."},{"text":"Use ``ScrollIndicatorVisibility/visible`` when you prefer that"},{"text":"views show scroll indicators. Depending on platform conventions,"},{"text":"visible scroll indicators might only appear while scrolling. Pass"},{"text":"``ScrollIndicatorVisibility/automatic`` to allow views to"},{"text":"decide whether or not to show their indicators."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility to apply to scrollable views."},{"text":" - axes: The axes of scrollable views that the visibility applies to."},{"text":""},{"text":"- Returns: A view with the specified scroll indicator visibility."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"}]},{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicators"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":" = [.vertical, .horizontal]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollEdgeEffectStyle(_:for:)"],"names":{"title":"scrollEdgeEffectStyle(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectStyle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the scroll edge effect style for scroll views within this"},{"text":"hierarchy."},{"text":""},{"text":"By default, a scroll view renders an automatic edge effect."},{"text":"Use this modifier to change the scroll edge effect style."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(data) { item in"},{"text":" RowView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollEdgeEffectStyle(.hard, for: .all)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollEdgeEffectHidden(_:for:)"],"names":{"title":"scrollEdgeEffectHidden(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides any scroll edge effects for scroll views within this"},{"text":"hierarchy."},{"text":""},{"text":"By default, a scroll view renders an automatic edge effect style."},{"text":"Use this modifier to hide any edge effects for scroll views"},{"text":"within this hierarchy."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(data) { item in"},{"text":" RowView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollEdgeEffectHidden()"},{"text":""}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"for","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollInputBehavior(_:for:)"],"names":{"title":"scrollInputBehavior(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollInputBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables or disables scrolling in scrollable views when using particular"},{"text":"inputs."},{"text":""},{"text":"In contrast to ``View/scrollDisabled(_:)``, this modifier will enable"},{"text":"or disable scrolling only for particular inputs. The following, for"},{"text":"instance, disables double-tap-to-scroll on watchOS while preserving"},{"text":"the ability to scroll via touch and the Digital Crown:"},{"text":""},{"text":" ScrollView(...)"},{"text":" .scrollInputBehavior(.disabled, for: .handGestureShortcut)"},{"text":""},{"text":"If `scrollDisabled(true)` has been applied to this view, scrolling will"},{"text":"be disabled for all inputs and this modifier cannot be used to re-enable"},{"text":"scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: Whether scrolling should be enabled or disabled for this"},{"text":" input."},{"text":" - input: The input for which to enable or disable scrolling."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"}]},{"name":"for","internalName":"input","declarationFragments":[{"kind":"identifier","spelling":"input"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollInputBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"input"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicatorsFlash(trigger:)"],"names":{"title":"scrollIndicatorsFlash(trigger:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Flashes the scroll indicators of scrollable views when a value changes."},{"text":""},{"text":"When the value that you provide to this modifier changes, the scroll"},{"text":"indicators of any scrollable views within the modified view hierarchy"},{"text":"briefly flash. The following example configures the scroll indicators"},{"text":"to flash any time `flashCount` changes:"},{"text":""},{"text":" @State private var isPresented = false"},{"text":" @State private var flashCount = 0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollIndicatorsFlash(trigger: flashCount)"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" // ..."},{"text":" }"},{"text":" .onChange(of: isPresented) { newValue in"},{"text":" if newValue {"},{"text":" flashCount += 1"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Only scroll indicators that you configure to be visible flash."},{"text":"To flash scroll indicators when a scroll view initially appears,"},{"text":"use ``View/scrollIndicatorsFlash(onAppear:)`` instead."},{"text":""},{"text":"- Parameter value: The value that causes scroll indicators to flash."},{"text":" The value must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that flashes any visible scroll indicators when a"},{"text":" value changes."}]},"functionSignature":{"parameters":[{"name":"trigger","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicatorsFlash(onAppear:)"],"names":{"title":"scrollIndicatorsFlash(onAppear:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Flashes the scroll indicators of a scrollable view when it appears."},{"text":""},{"text":"Use this modifier to control whether the scroll indicators of a scroll"},{"text":"view briefly flash when the view first appears. For example, you can"},{"text":"make the indicators flash by setting the `onAppear` parameter to `true`:"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollIndicatorsFlash(onAppear: true)"},{"text":""},{"text":"Only scroll indicators that you configure to be visible flash."},{"text":"To flash scroll indicators when a value changes, use"},{"text":"``View/scrollIndicatorsFlash(trigger:)`` instead."},{"text":""},{"text":"- Parameter onAppear: A Boolean value that indicates whether the scroll"},{"text":" indicators flash when the scroll view appears."},{"text":""},{"text":"- Returns: A view that flashes any visible scroll indicators when it"},{"text":" first appears."}]},"functionSignature":{"parameters":[{"name":"onAppear","declarationFragments":[{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollDisabled(_:)"],"names":{"title":"scrollDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Disables or enables scrolling in scrollable views."},{"text":""},{"text":"Use this modifier to control whether a ``ScrollView`` can scroll:"},{"text":""},{"text":" @State private var isScrollDisabled = false"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" Toggle(\"Disable\", isOn: $isScrollDisabled)"},{"text":" MyContent()"},{"text":" }"},{"text":" }"},{"text":" .scrollDisabled(isScrollDisabled)"},{"text":" }"},{"text":""},{"text":"SwiftUI passes the disabled property through the environment, which"},{"text":"means you can use this modifier to disable scrolling for all scroll"},{"text":"views within a view hierarchy. In the following example, the modifier"},{"text":"affects both scroll views:"},{"text":""},{"text":" ScrollView {"},{"text":" ForEach(rows) { row in"},{"text":" ScrollView(.horizontal) {"},{"text":" RowContent(row)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollDisabled(true)"},{"text":""},{"text":"You can also use this modifier to disable scrolling for other kinds"},{"text":"of scrollable views, like a ``List`` or a ``TextEditor``."},{"text":""},{"text":"- Parameter disabled: A Boolean that indicates whether scrolling is"},{"text":" disabled."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollClipDisabled(_:)"],"names":{"title":"scrollClipDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollClipDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether a scroll view clips its content to its bounds."},{"text":""},{"text":"By default, a scroll view clips its content to its bounds, but you can"},{"text":"disable that behavior by using this modifier. For example, if the views"},{"text":"inside the scroll view have shadows that extend beyond the bounds of the"},{"text":"scroll view, you can use this modifier to avoid clipping the shadows:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var disabled: Bool"},{"text":" let colors: [Color] = [.red, .green, .blue, .mint, .teal]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 20) {"},{"text":" ForEach(colors, id: \\.self) { color in"},{"text":" Rectangle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" .foregroundStyle(color)"},{"text":" .shadow(color: .primary, radius: 20)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollClipDisabled(disabled)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The scroll view in the above example clips when the"},{"text":"content view's `disabled` input is `false`, as it does"},{"text":"if you omit the modifier, but not when the input is `true`:"},{"text":""},{"text":"@TabNavigator {"},{"text":" @Tab(\"True\") {"},{"text":" ![A horizontal row of uniformly sized, evenly spaced, vertically aligned squares inside a bounding box that's about twice the height of the squares, and almost four times the width. From left to right, three squares appear in full, while only the first quarter of a fourth square appears at the far right. All the squares have shadows that fade away before reaching the top or the bottom of the bounding box.](View-scrollClipDisabled-1-iOS)"},{"text":" }"},{"text":" @Tab(\"False\") {"},{"text":" ![A horizontal row of uniformly sized, evenly spaced, vertically aligned squares inside a bounding box that's about twice the height of the squares, and almost four times the width. From left to right, three squares appear in full, while only the first quarter of a fourth square appears at the far right. All the squares have shadows that are visible in between squares, but clipped at the top and bottom of the squares.](View-scrollClipDisabled-2-iOS)"},{"text":" }"},{"text":"}"},{"text":""},{"text":"While you might want to avoid clipping parts of views that exceed the"},{"text":"bounds of the scroll view, like the shadows in the above example, you"},{"text":"typically still want the scroll view to clip at some point."},{"text":"Create custom clipping by using the ``View/clipShape(_:style:)``"},{"text":"modifier to add a different clip shape. The following code disables"},{"text":"the default clipping and then adds rectangular clipping that exceeds"},{"text":"the bounds of the scroll view by the default padding amount:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollClipDisabled()"},{"text":" .padding()"},{"text":" .clipShape(Rectangle())"},{"text":""},{"text":"- Parameter disabled: A Boolean value that specifies whether to disable"},{"text":" scroll view clipping."},{"text":""},{"text":"- Returns: A view that disables or enables scroll view clipping."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollClipDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollDismissesKeyboard(_:)"],"names":{"title":"scrollDismissesKeyboard(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDismissesKeyboard"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior in which scrollable content interacts with"},{"text":"the software keyboard."},{"text":""},{"text":"You use this modifier to customize how scrollable content interacts"},{"text":"with the software keyboard. For example, you can specify a value of"},{"text":"``ScrollDismissesKeyboardMode/immediately`` to indicate that you"},{"text":"would like scrollable content to immediately dismiss the keyboard if"},{"text":"present when a scroll drag gesture begins."},{"text":""},{"text":" @State private var text = \"\""},{"text":""},{"text":" ScrollView {"},{"text":" TextField(\"Prompt\", text: $text)"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" .scrollDismissesKeyboard(.immediately)"},{"text":""},{"text":"You can also use this modifier to customize the keyboard dismissal"},{"text":"behavior for other kinds of scrollable views, like a ``List`` or a"},{"text":"``TextEditor``."},{"text":""},{"text":"By default, a ``TextEditor`` is interactive while other kinds"},{"text":"of scrollable content always dismiss the keyboard on a scroll"},{"text":"when linked against iOS 16 or later. Pass a value of"},{"text":"``ScrollDismissesKeyboardMode/never`` to indicate that scrollable"},{"text":"content should never automatically dismiss the keyboard."},{"text":""},{"text":"- Parameter mode: The keyboard dismissal mode that scrollable content"},{"text":" uses."},{"text":""},{"text":"- Returns: A view that uses the specified keyboard dismissal mode."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDismissesKeyboard"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollBounceBehavior(_:axes:)"],"names":{"title":"scrollBounceBehavior(_:axes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollBounceBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the bounce behavior of scrollable views along the specified"},{"text":"axis."},{"text":""},{"text":"Use this modifier to indicate whether scrollable views bounce when"},{"text":"people scroll to the end of the view's content, taking into account the"},{"text":"relative sizes of the view and its content. For example, the following"},{"text":"``ScrollView`` only enables bounce behavior if its content is large"},{"text":"enough to require scrolling:"},{"text":""},{"text":" ScrollView {"},{"text":" Text(\"Small\")"},{"text":" Text(\"Content\")"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize)"},{"text":""},{"text":"The modifier passes the scroll bounce mode through the ``Environment``,"},{"text":"which means that the mode affects any scrollable views in the modified"},{"text":"view hierarchy. Provide an axis to the modifier to constrain the kinds"},{"text":"of scrollable views that the mode affects. For example, all the scroll"},{"text":"views in the following example can access the mode value, but"},{"text":"only the two nested scroll views are affected, because only they use"},{"text":"horizontal scrolling:"},{"text":""},{"text":" ScrollView { // Defaults to vertical scrolling."},{"text":" ScrollView(.horizontal) {"},{"text":" ShelfContent()"},{"text":" }"},{"text":" ScrollView(.horizontal) {"},{"text":" ShelfContent()"},{"text":" }"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize, axes: .horizontal)"},{"text":""},{"text":"You can use this modifier to configure any kind of scrollable view,"},{"text":"including ``ScrollView``, ``List``, ``Table``, and ``TextEditor``:"},{"text":""},{"text":" List {"},{"text":" Text(\"Hello\")"},{"text":" Text(\"World\")"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize)"},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: The bounce behavior to apply to any scrollable views"},{"text":" within the configured view. Use one of the ``ScrollBounceBehavior``"},{"text":" values."},{"text":" - axes: The set of axes to apply `behavior` to. The default is"},{"text":" ``Axis/vertical``."},{"text":""},{"text":"- Returns: A view that's configured with the specified scroll bounce"},{"text":" behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"}]},{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollBounceBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":" = [.vertical]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerBackground(_:for:)"],"names":{"title":"containerBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the container background of the enclosing container using a view."},{"text":""},{"text":"The following example uses a ``LinearGradient`` as a background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Blue\") {"},{"text":" Text(\"Blue\")"},{"text":" .containerBackground(.blue.gradient, for: .navigation)"},{"text":" }"},{"text":" NavigationLink(\"Red\") {"},{"text":" Text(\"Red\")"},{"text":" .containerBackground(.red.gradient, for: .navigation)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `.containerBackground(_:for:)` modifier differs from the"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` modifier by automatically"},{"text":"filling an entire parent container. ``ContainerBackgroundPlacement``"},{"text":"describes the available containers."},{"text":""},{"text":"- Parameters"},{"text":" - style: The shape style to use as the container background."},{"text":" - container: The container that will use the background."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"container","declarationFragments":[{"kind":"identifier","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerBackground(for:alignment:content:)"],"names":{"title":"containerBackground(for:alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the container background of the enclosing container using a view."},{"text":""},{"text":"The following example uses a custom ``View`` as a background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Image\") {"},{"text":" Text(\"Image\")"},{"text":" .containerBackground(for: .navigation) {"},{"text":" Image(name: \"ImageAsset\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `.containerBackground(for:alignment:content:)` modifier differs from"},{"text":"the ``View/background(_:ignoresSafeAreaEdges:)`` modifier by"},{"text":"automatically filling an entire parent container."},{"text":"``ContainerBackgroundPlacement`` describes the available containers."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default is"},{"text":" ``Alignment/center``."},{"text":" - container: The container that will use the background."},{"text":" - content: The view to use as the background of the container."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"container","declarationFragments":[{"kind":"identifier","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentBrowserContextMenu(_:)"],"names":{"title":"documentBrowserContextMenu(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentBrowserContextMenu"},{"kind":"text","spelling":"((["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds to a `DocumentLaunchView` actions that accept"},{"text":"a list of selected files as their parameter."},{"text":""},{"text":"Add `documentBrowserContextMenu` modifier to ``DocumentLaunchView``"},{"text":"to provide additional actions to the document browser items' context menu."},{"text":"For example, a book editor application could have a \"Favorite\" button"},{"text":"that marks user-chosen books as their favorite. The button enables when the user"},{"text":"switches the browser into \"Selection\" mode."},{"text":""},{"text":" import UniformTypeIdentifiers"},{"text":""},{"text":" struct BookEditor: View {"},{"text":""},{"text":" var body: some View {"},{"text":" DocumentLaunchView(for: [.book]) {"},{"text":" NewDocumentButton(\"Start New Book\")"},{"text":" } onDocumentOpen: { url in"},{"text":" BookEditor(url)"},{"text":" }"},{"text":" .documentBrowserContextMenu { selectedURLs in"},{"text":" FavoriteBookButton(urls: selectedURLs)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct FavoriteBookButton: View {"},{"text":" var urls: [URL]?"},{"text":" var body: some View {"},{"text":" Button {"},{"text":" updateFavorite(urls)"},{"text":" } label: {"},{"text":" Image(systemName: allFavorite(urls) ? \"heart.fill\" : \"heart\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func allFavorite(_ urls: [URL]?) -> Bool { ... }"},{"text":" func updateFavorite(_ urls: [URL]?) { ... }"},{"text":" }"},{"text":""},{"text":" struct BookEditor: View {"},{"text":" init(_ url: URL) { ... }"},{"text":" }"},{"text":""},{"text":" extension UTType {"},{"text":" static let book = UTType(exportedAs: \"com.example.bookEditor\")"},{"text":" }"},{"text":""},{"text":"In the example above, the application stores a list of URLs to favorite books,"},{"text":"and does not need to access the file on disk. In cases when an application wants to read"},{"text":"the contents of the URL from the disk or associated metadata, it should call"},{"text":"``URL.startAccessingSecurityScopedResource()`` to gain access to the resource,"},{"text":"and ``URL.stopAccessingSecurityScopedResource()`` to relinquish access when it is not needed."},{"text":""},{"text":"The actions are displayed in the document browser navigation bar"},{"text":"when a document browser is in Select mode, and also added to"},{"text":"context menu for the file items."},{"text":""},{"text":"- Parameters:"},{"text":" - menu: Items representing the content of the menu."}]},"functionSignature":{"parameters":[{"name":"menu","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menu"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentBrowserContextMenu"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"menu"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":1}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollPhaseChange(_:)"],"names":{"title":"onScrollPhaseChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the scroll phase of the first scroll"},{"text":"view in the hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to a scroll view's"},{"text":"phase. A scroll view may be in a variety of different phases like"},{"text":"panning or decelerating. See ``ScrollPhase`` for more information"},{"text":"on the phases of a scroll view."},{"text":""},{"text":"When the phase of a scroll view changes, the system invokes the action"},{"text":"you provide. In the following example, a selection binding is updated"},{"text":"when the scroll view transitions to the ``ScrollPhase/decelerating``"},{"text":"or ``ScrollPhase/idle`` phase."},{"text":""},{"text":" @Binding var selection: SelectionValue?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { _, newPhase in"},{"text":" if newPhase == .decelerating || newPhase == .idle {"},{"text":" selection = updateSelection()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system can also provide you with the geometry of the scroll view"},{"text":"at the time of the phase change. You can use the geometry to"},{"text":"understand where the scroll view has come or gone between the"},{"text":"phase changes and update dependent state on that information."},{"text":"In the following example, whether toolbar content is hidden is"},{"text":"determined based on the direction of the last user initiated"},{"text":"scroll."},{"text":""},{"text":" @Binding var hidesToolbarContent: Bool"},{"text":" @State private var lastOffset: CGFloat = 0.0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { oldPhase, newPhase, context in"},{"text":" if newPhase == .interacting {"},{"text":" lastOffset = context.geometry.contentOffset.y"},{"text":" }"},{"text":" if oldPhase == .interacting, newPhase != .animating,"},{"text":" context.geometry.contentOffset.y - lastOffset < 0.0"},{"text":" {"},{"text":" hidesToolbarContent = true"},{"text":" } else {"},{"text":" hidesToolbarContent = false"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its phase changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollPhaseChange { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the scroll phase changes."},{"text":" - term oldPhase: The old scroll phase."},{"text":" - term newPhase: The new scroll phase."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollPhaseChange(_:)"],"names":{"title":"onScrollPhaseChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the scroll phase of the first scroll"},{"text":"view in the hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to a scroll view's"},{"text":"phase. A scroll view may be in a variety of different phases like"},{"text":"interacting or decelerating. See ``ScrollPhase`` for more information"},{"text":"on the phases of a scroll view."},{"text":""},{"text":"When the phase of a scroll view changes, the system invokes the action"},{"text":"you provide. In the following example, a selection binding is updated"},{"text":"when the scroll view transitions to the ``ScrollPhase/decelerating``"},{"text":"or ``ScrollPhase/idle`` phase."},{"text":""},{"text":" @Binding var selection: SelectionValue?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { _, newPhase in"},{"text":" if newPhase == .decelerating || newPhase == .idle {"},{"text":" selection = updateSelection()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system can also provide you with a context containing"},{"text":"the geometry of the scroll view at the time of the phase change."},{"text":"You can use the geometry to understand where the scroll view"},{"text":"has come or gone between the phase changes and update"},{"text":"dependent state on that information. In the following example,"},{"text":"whether toolbar content is hidden is determined based on"},{"text":"the direction of the last user initiated scroll."},{"text":""},{"text":" @Binding var hidesToolbarContent: Bool"},{"text":" @State private var lastOffset: CGFloat = 0.0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { oldPhase, newPhase, context in"},{"text":" if newPhase == .interacting {"},{"text":" lastOffset = context.geometry.contentOffset.y"},{"text":" }"},{"text":" if oldPhase == .interacting, newPhase != .animating,"},{"text":" context.geometry.contentOffset.y - lastOffset < 0.0"},{"text":" {"},{"text":" hidesToolbarContent = true"},{"text":" } else {"},{"text":" hidesToolbarContent = false"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its phase changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollPhaseChange { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the scroll phase changes."},{"text":" - term oldPhase: The old scroll phase."},{"text":" - term newPhase: The new scroll phase."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollGeometryChange(for:of:action:)"],"names":{"title":"onScrollGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"scroll geometry, changes."},{"text":""},{"text":"The geometry of a scroll view changes frequently while scrolling."},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``ScrollGeometry`` to a"},{"text":" your own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know when the user scrolls"},{"text":"a scroll view beyond the top of its content. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" @Binding var isBeyondZero: Bool"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollGeometryChange(for: Bool.self) { geometry in"},{"text":" geometry.contentOffset.y < geometry.contentInsets.top"},{"text":" } action: { wasBeyondZero, isBeyondZero in"},{"text":" self.isBeyondZero = isBeyondZero"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its geometry changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollGeometryChange(for: Bool.self) { geometry in"},{"text":" ..."},{"text":" } action: { oldValue, newValue in"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"For responding to non-scroll geometry changes, see the"},{"text":"``View/onGeometryChange(for:of:action:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a ``ScrollGeometry``."},{"text":" - transform: A closure that transforms a ``ScrollGeometry``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term oldValue: The old value that failed the comparison check."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewBottomAccessory(content:)"],"names":{"title":"tabViewBottomAccessory(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a view as the bottom accessory of the tab view."},{"text":""},{"text":"On iPhone, the placement of the bottom accessory depends on the tab bar"},{"text":"size: when the tab bar is normal size, the accessory appears above"},{"text":"it; when the tab bar is collapsed, the accessory displays inline."},{"text":"Use the ``EnvironmentValues/tabViewBottomAccessoryPlacement``"},{"text":"environment value to adjust the accessory's content based on its"},{"text":"placement."},{"text":""},{"text":"The following example sets a status view as the `TabView`"},{"text":"bottom accessory."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewBottomAccessory {"},{"text":" HomeStatusView()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewBottomAccessory(isEnabled:content:)"],"names":{"title":"tabViewBottomAccessory(isEnabled:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a view as the bottom accessory of the tab view. Use"},{"text":"this modifier to dynamically show and hide the accessory view."},{"text":""},{"text":"On iPhone, the placement of the bottom accessory depends on the tab bar"},{"text":"size: when the tab bar is normal size, the accessory appears above"},{"text":"it; when the tab bar is collapsed, the accessory displays inline."},{"text":"Use the ``EnvironmentValues/tabViewBottomAccessoryPlacement``"},{"text":"environment value to adjust the accessory's content based on its"},{"text":"placement."},{"text":""},{"text":"The following example shows a status view in the `TabView`"},{"text":"bottom accessory when there's a status update."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewBottomAccessory(isEnabled: hasStatusUpdate) {"},{"text":" HomeStatusView()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isEnabled: If true, the bottom accessory is shown; otherwise,"},{"text":" the bottom accessory is hidden."},{"text":" - content: The content view of the tab view accessory."},{"text":""}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":1}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuActionDismissBehavior(_:)"],"names":{"title":"menuActionDismissBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuActionDismissBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Tells a menu whether to dismiss after performing an action."},{"text":""},{"text":"Use this modifier to control the dismissal behavior of a menu."},{"text":"In the example below, the menu doesn't dismiss after someone"},{"text":"chooses either the increase or decrease action:"},{"text":""},{"text":" Menu(\"Font size\") {"},{"text":" Button(action: increase) {"},{"text":" Label(\"Increase\", systemImage: \"plus.magnifyingglass\")"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":" Button(\"Reset\", action: reset)"},{"text":""},{"text":" Button(action: decrease) {"},{"text":" Label(\"Decrease\", systemImage: \"minus.magnifyingglass\")"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":" }"},{"text":""},{"text":"You can use this modifier on any controls that present a menu, like a"},{"text":"``Picker`` that uses the ``PickerStyle/menu`` style or a"},{"text":"``ControlGroup``. For example, the code below creates a picker that"},{"text":"disables dismissal when someone selects one of the options:"},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue.capitalized)"},{"text":" .tag(flavor)"},{"text":" }"},{"text":" }"},{"text":" .pickerStyle(.menu)"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":"You can also use this modifier on context menus. The example below"},{"text":"creates a context menu that stays presented after someone selects an"},{"text":"action to run:"},{"text":""},{"text":" Text(\"Favorite Card Suit\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button(\"♥️ - Hearts\", action: increaseHeartsCount)"},{"text":" Button(\"♣️ - Clubs\", action: increaseClubsCount)"},{"text":" Button(\"♠️ - Spades\", action: increaseSpadesCount)"},{"text":" Button(\"♦️ - Diamonds\", action: increaseDiamondsCount)"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: The menu action dismissal behavior to apply."},{"text":""},{"text":"- Returns: A view that has the specified menu dismissal behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuActionDismissBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","asyncImageURLSession(_:)"],"names":{"title":"asyncImageURLSession(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"asyncImageURLSession"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A modifier that adds a URL session for asynchronous images contained"},{"text":"in the view to use when fetching image data."},{"text":""},{"text":"- Parameters:"},{"text":" - urlSession: An instance of"},{"text":" "},{"text":" for ``AsyncImage`` instances to use for image download data tasks."}]},"functionSignature":{"parameters":[{"name":"urlSession","declarationFragments":[{"kind":"identifier","spelling":"urlSession"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"asyncImageURLSession"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"urlSession"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSuggestions(_:for:)"],"names":{"title":"searchSuggestions(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures how to display search suggestions within this view."},{"text":""},{"text":"SwiftUI presents search suggestions differently depending on several"},{"text":"factors, like the platform, the position of the search field, and the"},{"text":"size class. Use this modifier when you want to only display suggestions"},{"text":"in certain ways under certain conditions. For example, you might choose"},{"text":"to display suggestions in a menu when possible, but directly filter"},{"text":"your data source otherwise."},{"text":""},{"text":" enum FruitSuggestion: String, Identifiable {"},{"text":" case apple, banana, orange"},{"text":" var id: Self { self }"},{"text":" }"},{"text":""},{"text":" @State private var text = \"\""},{"text":" @State private var suggestions: [FruitSuggestion] = []"},{"text":""},{"text":" var body: some View {"},{"text":" MainContent()"},{"text":" .searchable(text: $text) {"},{"text":" ForEach(suggestions) { suggestion"},{"text":" Text(suggestion.rawValue)"},{"text":" .searchCompletion(suggestion.rawValue)"},{"text":" }"},{"text":" .searchSuggestions(.hidden, for: .content)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of the search suggestions"},{"text":" for the specified locations."},{"text":" - placements: The set of locations in which to set the visibility of"},{"text":" search suggestions."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"placements","declarationFragments":[{"kind":"identifier","spelling":"placements"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placements"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedTransitionSource(id:in:)"],"names":{"title":"matchedTransitionSource(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Identifies this view as the source of a navigation transition, such"},{"text":"as a zoom transition."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an ``Namespace`` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedTransitionSource(id:in:configuration:)"],"names":{"title":"matchedTransitionSource(id:in:configuration:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Identifies this view as the source of a navigation transition, such"},{"text":"as a zoom transition."},{"text":""},{"text":"The appearance of the source can be configured using the"},{"text":"`configuration` trailing closure. Any modifiers applied will"},{"text":"be smoothly interpolated when a zoom transition originates from"},{"text":"this matched transition source."},{"text":""},{"text":"```"},{"text":"MyView()"},{"text":" .matchedTransitionSource(id: someID, in: someNamespace) { source in"},{"text":" source"},{"text":" .cornerRadius(8.0)"},{"text":" }"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an ``Namespace`` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."},{"text":" - configuration: A closure that you can use to apply styling to the source."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]},{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some MatchedTransitionSourceConfiguration","rhs":"MatchedTransitionSourceConfiguration","rhsPrecise":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:)"],"names":{"title":"navigationDocument(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I2"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I1","index":1,"depth":1},{"name":"I2","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I1","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I2","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I2"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:)"],"names":{"title":"navigationDocument(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - url: The URL content associated to the"},{"text":" navigation title."}]},"functionSignature":{"parameters":[{"name":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(removing:)"],"names":{"title":"toolbar(removing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Remove a toolbar item present by default"},{"text":""},{"text":"Use this modifier to remove toolbar items other `View`s add"},{"text":"by default. For example, to remove the sidebar toggle toolbar"},{"text":"item provided by `NavigationSplitView`:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" SidebarView()"},{"text":" .toolbar(removing: .sidebarToggle)"},{"text":" } detail: {"},{"text":" DetailView()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - defaultItemKind: The kind of default item to remove"}]},"functionSignature":{"parameters":[{"name":"removing","internalName":"defaultItemKind","declarationFragments":[{"kind":"identifier","spelling":"defaultItemKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removing"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultItemKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaBar(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaBar(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Shows the specified content as a custom bar above or below the modified"},{"text":"view."},{"text":""},{"text":"Similar to the ``View/safeAreaInset(edge:alignment:spacing:content:)-4s51l``"},{"text":"modifier, the `content` view is anchored to the specified vertical"},{"text":"edge of the parent view and its height insets the safe area."},{"text":""},{"text":"Additionally, it extends the edge effect of any scroll views affected by"},{"text":"the inset safe area."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The vertical edge of the view on which `content` is placed."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" horizontally."},{"text":" - content: A content builder function providing the view to display as a"},{"text":" custom bar."},{"text":""},{"text":"- Returns: A new view that displays `content` above or below the"},{"text":" modified view,"},{"text":" making space for the `content` view by vertically insetting the"},{"text":" modified view, adjusting the safe area and scroll edge effects to"},{"text":" match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaBar(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaBar(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Shows the specified content as a custom bar beside the modified view."},{"text":""},{"text":"Similar to the ``View/safeAreaInset(edge:alignment:spacing:content:)-6gwby``"},{"text":"modifier, the `content` view is anchored to the specified horizontal"},{"text":"edge of the parent view and its width insets the safe area."},{"text":""},{"text":"Additionally, it extends the edge effect of any scroll views affected by"},{"text":"the inset safe area."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The horizontal edge of the view on which `content` is placed."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" vertically."},{"text":" - content: A content builder function providing the view to display as a"},{"text":" custom bar."},{"text":""},{"text":"- Returns: A new view that displays `content` beside the modified view,"},{"text":" making space for the `content` view by horizontally insetting the"},{"text":" modified view, adjusting the safe area and scroll edge effects to"},{"text":" match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation, using a string"},{"text":"binding."},{"text":""},{"text":"In iOS, iPadOS, and macOS, this allows editing the navigation title"},{"text":"when the title is displayed in the toolbar."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The text of the title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defersSystemGestures(on:)"],"names":{"title":"defersSystemGestures(on:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defersSystemGestures"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"on"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the screen edge from which you want your gesture to take"},{"text":"precedence over the system gesture."},{"text":""},{"text":"The following code defers the vertical screen edges system gestures"},{"text":"of a given canvas."},{"text":""},{"text":" struct DeferredView: View {"},{"text":" var body: some View {"},{"text":" Canvas()"},{"text":" .defersSystemGestures(on: .vertical)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edges: A value that indicates the screen edge from which"},{"text":" you want your gesture to take precedence over the system gesture."}]},"functionSignature":{"parameters":[{"name":"on","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defersSystemGestures"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"on"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textContentType(_:)"],"names":{"title":"textContentType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the text content type for this view, which the system uses to"},{"text":"offer suggestions while the user enters text on an iOS or tvOS device."},{"text":""},{"text":"Use this method to set the content type for input text."},{"text":"For example, you can configure a ``TextField`` for the entry of email"},{"text":"addresses:"},{"text":""},{"text":" TextField(\"Enter your email\", text: $emailAddress)"},{"text":" .textContentType(.emailAddress)"},{"text":""},{"text":"- Parameter textContentType: One of the content types available in the"},{"text":" "},{"text":" structure that identify the semantic meaning expected for a text-entry"},{"text":" area. These include support for email addresses, location names, URLs,"},{"text":" and telephone numbers, to name just a few."}]},"functionSignature":{"parameters":[{"name":"textContentType","declarationFragments":[{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textContentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarTitleMenu(content:)"],"names":{"title":"toolbarTitleMenu(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configure the title menu of a toolbar."},{"text":""},{"text":"A title menu represent common functionality that can be done on the"},{"text":"content represented by your app's toolbar or navigation title. This"},{"text":"menu may be populated from your app's commands like"},{"text":"``CommandGroupPlacement/saveItem`` or"},{"text":"``CommandGroupPlacement/printItem``."},{"text":""},{"text":" ContentView()"},{"text":" .toolbar {"},{"text":" ToolbarTitleMenu()"},{"text":" }"},{"text":""},{"text":"You can provide your own set of actions to override this behavior."},{"text":""},{"text":" ContentView()"},{"text":" .toolbarTitleMenu {"},{"text":" DuplicateButton()"},{"text":" PrintButton()"},{"text":" }"},{"text":""},{"text":"In iOS and iPadOS, this will construct a menu that can be presented by"},{"text":"tapping the navigation title in the app's navigation bar."},{"text":""},{"text":"- Parameter content: The content associated to the toolbar title menu."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchPresentationToolbarBehavior(_:)"],"names":{"title":"searchPresentationToolbarBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchPresentationToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search toolbar presentation behavior for any"},{"text":"searchable modifiers within this view."},{"text":""},{"text":"By default on iOS, a toolbar may hide parts of its content when"},{"text":"presenting search to focus on searching. You can override"},{"text":"this behavior by providing a value of"},{"text":"``SearchPresentationToolbarBehavior/avoidHidingContent``"},{"text":"to this modifer."},{"text":""},{"text":" @State private var searchText = \"\""},{"text":""},{"text":" List {"},{"text":" // ... content"},{"text":" }"},{"text":" .searchable(text: $searchText)"},{"text":" .searchPresentationToolbarBehavior(.avoidHidingContent)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchPresentationToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":1}},{"domain":"macOS","introduced":{"major":14,"minor":1}},{"domain":"tvOS","introduced":{"major":17,"minor":1}},{"domain":"watchOS","introduced":{"major":10,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchToolbarBehavior(_:)"],"names":{"title":"searchToolbarBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior for search in the toolbar."},{"text":""},{"text":"This modifier can be used to change the default behavior of a search"},{"text":"field that appears in the toolbar. Place this modifier after the"},{"text":"``View/searchable(text:isPresented:placement:prompt:)`` modifier that"},{"text":"renders search in the toolbar."},{"text":""},{"text":"On iPhone, the search field in the bottom toolbar can be configured to"},{"text":"appear as a button-like control when inactive:"},{"text":""},{"text":" @State private var searchText = \"\""},{"text":""},{"text":" NavigationStack {"},{"text":" RecipeList()"},{"text":" .searchable($searchText)"},{"text":" .searchToolbarBehavior(.minimized)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchDictationBehavior(_:)"],"names":{"title":"searchDictationBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchDictationBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the dictation behavior for any search fields configured"},{"text":"by the searchable modifier."},{"text":""},{"text":"By default, search fields on visionOS will automatically start"},{"text":"dictation when looking at the dictation button in the search field."},{"text":"You can change this behavior by providing a value of"},{"text":"``TextInputDictationBehavior/preventDictation`` to this modifier."},{"text":""},{"text":"See the ``TextInputDictationBehavior`` type for more information"},{"text":"on the available dictation behaviors."}]},"functionSignature":{"parameters":[{"name":"dictationBehavior","declarationFragments":[{"kind":"identifier","spelling":"dictationBehavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchDictationBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"dictationBehavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:_:)"],"names":{"title":"focusedValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by injecting a value that you provide for use by"},{"text":"other views whose state depends on the focused view hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of exported focus values."},{"text":" - value: The focus value to export."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:_:)"],"names":{"title":"focusedValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided value to other views whose"},{"text":"state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneValue(_:_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated"},{"text":"values, and you need an app- or scene-scoped element like a command or"},{"text":"toolbar item that operates on the value associated with whichever view"},{"text":"currently has focus. Each focusable view can supply its own value:"},{"text":""},{"text":""},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of exported focus values."},{"text":" - value: The focus value to export, or `nil` if no value is"},{"text":" currently available."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:_:)"],"names":{"title":"focusedSceneValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by injecting a value that you provide for use by"},{"text":"other views whose state depends on the focused scene."},{"text":""},{"text":"Use this method instead of ``View/focusedValue(_:_:)`` for values that"},{"text":"must be visible regardless of where focus is located in the active"},{"text":"scene. For example, if an app needs a command for moving focus to a"},{"text":"particular text field in the sidebar, it could use this modifier to"},{"text":"publish a button action that's visible to command views as long as the"},{"text":"scene is active, and regardless of where focus happens to be in it."},{"text":""},{"text":" struct Sidebar: View {"},{"text":" @FocusState var isFiltering: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused(when: $isFiltering)"},{"text":" .focusedSceneValue(\\.filterAction) {"},{"text":" isFiltering = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct NavigationCommands: Commands {"},{"text":" @FocusedValue(\\.filterAction) var filterAction"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Navigate\") {"},{"text":" Button(\"Filter in Sidebar\") {"},{"text":" filterAction?()"},{"text":" }"},{"text":" }"},{"text":" .disabled(filterAction == nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" extension FocusedValues {"},{"text":" @Entry var filterAction: (() -> Void)?"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of published focus values."},{"text":" - value: The focus value to publish."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:_:)"],"names":{"title":"focusedSceneValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided value to other views whose"},{"text":"state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedValue(_:_:)`` for values that"},{"text":"must be visible regardless of where focus is located in the active"},{"text":"scene. For example, if an app needs a command for moving focus to a"},{"text":"particular text field in the sidebar, it could use this modifier to"},{"text":"publish a button action that's visible to command views as long as the"},{"text":"scene is active, and regardless of where focus happens to be in it."},{"text":""},{"text":" struct Sidebar: View {"},{"text":" @FocusState var isFiltering: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused(when: $isFiltering)"},{"text":" .focusedSceneValue(\\.filterAction) {"},{"text":" isFiltering = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct NavigationCommands: Commands {"},{"text":" @FocusedValue(\\.filterAction) var filterAction"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Navigate\") {"},{"text":" Button(\"Filter in Sidebar\") {"},{"text":" filterAction?()"},{"text":" }"},{"text":" }"},{"text":" .disabled(filterAction == nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" extension FocusedValues {"},{"text":" @Entry var filterAction: (() -> Void)?"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of published focus values."},{"text":" - value: The focus value to publish, or `nil` if no value is"},{"text":" currently available."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarTitleDisplayMode(_:)"],"names":{"title":"toolbarTitleDisplayMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the toolbar title display mode for this view."},{"text":""},{"text":"Use this modifier to override the default toolbar title display"},{"text":"mode."},{"text":""},{"text":" NavigationStack {"},{"text":" ContentView()"},{"text":" .toolbarTitleDisplayMode(.inlineLarge)"},{"text":" }"},{"text":""},{"text":"See ``ToolbarTitleDisplayMode`` for more information on the"},{"text":"different kinds of display modes. This modifier has no effect"},{"text":"on macOS."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","autocorrectionDisabled(_:)"],"names":{"title":"autocorrectionDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocorrectionDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to disable autocorrection for this view."},{"text":""},{"text":"Use this method when the effect of autocorrection would"},{"text":"make it more difficult for the user to input information. The entry of"},{"text":"proper names and street addresses are examples where autocorrection can"},{"text":"negatively affect the user's ability complete a data entry task."},{"text":""},{"text":"The example below configures a ``TextField`` with the default"},{"text":"keyboard. Disabling autocorrection allows the user to enter arbitrary"},{"text":"text without the autocorrection system offering suggestions or"},{"text":"attempting to override their input."},{"text":""},{"text":" TextField(\"1234 Main St.\", text: $address)"},{"text":" .keyboardType(.default)"},{"text":" .autocorrectionDisabled(true)"},{"text":""},{"text":"- Parameter disable: A Boolean value that indicates whether"},{"text":" autocorrection is disabled for this view. The default value is `true`."}]},"functionSignature":{"parameters":[{"name":"disable","declarationFragments":[{"kind":"identifier","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocorrectionDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disableAutocorrection(_:)"],"names":{"title":"disableAutocorrection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disableAutocorrection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to disable autocorrection for this view."},{"text":""},{"text":"Use `disableAutocorrection(_:)` when the effect of autocorrection would"},{"text":"make it more difficult for the user to input information. The entry of"},{"text":"proper names and street addresses are examples where autocorrection can"},{"text":"negatively affect the user's ability complete a data entry task."},{"text":""},{"text":"In the example below configures a ``TextField`` with the `.default`"},{"text":"keyboard. Disabling autocorrection allows the user to enter arbitrary"},{"text":"text without the autocorrection system offering suggestions or"},{"text":"attempting to override their input."},{"text":""},{"text":" TextField(\"1234 Main St.\", text: $address)"},{"text":" .keyboardType(.default)"},{"text":" .disableAutocorrection(true)"},{"text":""},{"text":"- Parameter disable: A Boolean value that indicates whether"},{"text":" autocorrection is disabled for this view."}]},"functionSignature":{"parameters":[{"name":"disable","declarationFragments":[{"kind":"identifier","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disableAutocorrection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollPosition(_:anchor:)"],"names":{"title":"scrollPosition(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a binding to a scroll position with a scroll view within this"},{"text":"view."},{"text":""},{"text":"Use this modifier to control where a scroll view is positioned. You"},{"text":"can use the ``ScrollPosition`` type to scroll in a variety of ways:"},{"text":" - scroll to a view with a provided identity"},{"text":" - scroll to a concrete offset"},{"text":" - scroll to an edge"},{"text":""},{"text":"You can create a scroll position with a specified view identity type"},{"text":""},{"text":" @State private var position"},{"text":" = ScrollPosition(idType: MyItem.ID.self)"},{"text":""},{"text":"SwiftUI will use that along with the views in the scroll view's"},{"text":"scroll target layout to programmatically scroll to those views and to"},{"text":"update the ``ScrollPosition/viewID`` property as the user scrolls."},{"text":"Use the ``View/scrollTargetLayout(isEnabled:)`` modifier to configure"},{"text":"which the layout that contains your scroll targets."},{"text":""},{"text":"When scrolling to a view with an identifier, SwiftUI will update"},{"text":"the position with the value of the top-most view scrolled within"},{"text":"the visible region of the scroll view."},{"text":""},{"text":"In the following example, the position binding will update to reflect"},{"text":"the top-most ItemView as the scroll view scrolls."},{"text":""},{"text":" @Binding var items: [MyItem]"},{"text":" @State private var position: ScrollPosition"},{"text":" = .init(idType: MyItem.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":""},{"text":"You can then query the currently scrolled id by using the"},{"text":"``ScrollPosition/viewID(type:)``."},{"text":""},{"text":" let viewID: MyItem.ID = position.viewID(type: MyItem.ID.self)"},{"text":""},{"text":"While most use cases will use view identity based scrolling, you"},{"text":"can also use the scroll position type to scroll to offsets or edges."},{"text":"For example, you can create a button that scrolls to the bottom of"},{"text":"the scroll view by specifying an edge."},{"text":""},{"text":" Button(\"Scroll to bottom\") {"},{"text":" position.scrollTo(edge: .bottom)"},{"text":" }"},{"text":""},{"text":"When configuring a scroll position, SwiftUI will attempt to keep that"},{"text":"position stable. For an edge, that means keeping a top aligned"},{"text":"scroll view scrolled to the top if the content size changes."},{"text":"For a point, SwiftUI won't attempt to keep that exact offset scrolled"},{"text":"when the content size changes nor will it update to a new offset"},{"text":"when that changes."},{"text":""},{"text":"For view identity positions, SwiftUI will attempt to keep the view with"},{"text":"the identity specified in the provided binding visible when events occur"},{"text":"that might cause it to be scrolled out of view by the system."},{"text":"Some examples of these include:"},{"text":" - The data backing the content of a scroll view is re-ordered."},{"text":" - The size of the scroll view changes, like when a window is resized"},{"text":" on macOS or during a rotation on iOS."},{"text":" - The scroll view initially lays out it content defaulting to"},{"text":" the top most view, but the binding has a different view's identity."},{"text":""},{"text":"You can provide an anchor to a view identity based position to:"},{"text":" - Influence which view the system chooses as the view whose"},{"text":" identity value will update the providing binding as the scroll"},{"text":" view scrolls."},{"text":" - Control the alignment of the view when scrolling to a view"},{"text":" when writing a new binding value."},{"text":""},{"text":"In the example below, the bottom most view will be chosen to update the"},{"text":"position binding with."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position, anchor: .bottom)"},{"text":""},{"text":"For example, providing a value of ``UnitPoint/bottom`` will prefer"},{"text":"to have the bottom-most view chosen and prefer to scroll to views"},{"text":"aligned to the bottom."}]},"functionSignature":{"parameters":[{"name":"position","declarationFragments":[{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollPosition(id:anchor:)"],"names":{"title":"scrollPosition(id:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a binding to be updated when a scroll view within this"},{"text":"view scrolls."},{"text":""},{"text":"Use this modifier along with the ``View/scrollTargetLayout(isEnabled:)``"},{"text":"modifier to know the identity of the view that is actively scrolled."},{"text":"As the scroll view scrolls, the binding will be updated with the"},{"text":"identity of the leading-most / top-most view."},{"text":""},{"text":"Use the ``View/scrollTargetLayout(isEnabled:)`` modifier to configure"},{"text":"which the layout that contains your scroll targets. In the following"},{"text":"example, the top-most ItemView will update with the scrolledID"},{"text":"binding as the scroll view scrolls."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition(id: $scrolledID)"},{"text":""},{"text":"You can write to the binding to scroll to the view with"},{"text":"the provided identity."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollPosition(id: $scrolledID)"},{"text":" .toolbar {"},{"text":" Button(\"Scroll to Top\") {"},{"text":" scrolledID = items.first"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI will attempt to keep the view with the identity specified"},{"text":"in the provided binding visible when events occur that might cause it"},{"text":"to be scrolled out of view by the system. Some examples of these"},{"text":"include:"},{"text":" - The data backing the content of a scroll view is re-ordered."},{"text":" - The size of the scroll view changes, like when a window is resized"},{"text":" on macOS or during a rotation on iOS."},{"text":" - The scroll view initially lays out it content defaulting to"},{"text":" the top most view, but the binding has a different view's identity."},{"text":""},{"text":"You can provide an anchor to this modifier to both:"},{"text":" - Influence which view the system chooses as the view whose"},{"text":" identity value will update the providing binding as the scroll"},{"text":" view scrolls."},{"text":" - Control the alignment of the view when scrolling to a view"},{"text":" when writing a new binding value."},{"text":""},{"text":"For example, providing a value of ``UnitPoint/bottom`` will prefer"},{"text":"to have the bottom-most view chosen and prefer to scroll to views"},{"text":"aligned to the bottom."},{"text":""},{"text":"If no anchor has been provided, SwiftUI will scroll the minimal amount"},{"text":"when using the scroll position to programmatically scroll to a view."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9focusableyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusable(_:)"],"names":{"title":"focusable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies if the view is focusable."},{"text":""},{"text":"- Parameter isFocusable: A Boolean value that indicates whether this"},{"text":" view is focusable."},{"text":""},{"text":"- Returns: A view that sets whether a view is focusable."}]},"functionSignature":{"parameters":[{"name":"isFocusable","declarationFragments":[{"kind":"identifier","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusable(_:interactions:)"],"names":{"title":"focusable(_:interactions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies if the view is focusable, and if so, what focus-driven"},{"text":"interactions it supports."},{"text":""},{"text":"By default, SwiftUI enables all possible focus interactions. However, on"},{"text":"macOS and iOS it is conventional for button-like views to only accept"},{"text":"focus when the user has enabled keyboard navigation system-wide in the"},{"text":"Settings app. Clients can reproduce this behavior with custom views by"},{"text":"only supporting `.activate` interactions."},{"text":""},{"text":" MyTapGestureView(...)"},{"text":" .focusable(interactions: .activate)"},{"text":""},{"text":"- Note: The focus interactions allowed for custom views changed in"},{"text":" macOS 14—previously, custom views could only become focused with"},{"text":" keyboard navigation enabled system-wide. Clients built using older"},{"text":" SDKs will continue to see the older focus behavior, while custom views"},{"text":" in clients built using macOS 14 or later will always be focusable"},{"text":" unless the client requests otherwise by specifying a restricted set of"},{"text":" focus interactions."},{"text":""},{"text":"- Parameters:"},{"text":" - isFocusable: `true` if the view should participate in focus;"},{"text":" `false` otherwise. The default value is `true`."},{"text":" - interactions: The types of focus interactions supported by the view."},{"text":" The default value is `.automatic`."},{"text":"- Returns: A view that sets whether its child is focusable."}]},"functionSignature":{"parameters":[{"name":"isFocusable","declarationFragments":[{"kind":"identifier","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"interactions","declarationFragments":[{"kind":"identifier","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusEffectDisabled(_:)"],"names":{"title":"focusEffectDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition that controls whether this view can display focus"},{"text":"effects, such as a default focus ring or hover effect."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button does not display a focus"},{"text":"effect because the outer `focusEffectDisabled(_:)` modifier overrides"},{"text":"the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Press\") {}"},{"text":" .focusEffectDisabled(false)"},{"text":" }"},{"text":" .focusEffectDisabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether this view"},{"text":" can display focus effects."},{"text":"- Returns: A view that controls whether focus effects can be displayed"},{"text":" in this view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelsVisibility(_:)"],"names":{"title":"labelsVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls the visibility of labels of any controls contained within this"},{"text":"view."},{"text":""},{"text":"Use this modifier when you want to omit a label from one or more"},{"text":"labeled content in your user interface. For example, the first ``Toggle``"},{"text":"in the following example hides its label:"},{"text":""},{"text":" VStack {"},{"text":" Toggle(isOn: $toggle1) {"},{"text":" Text(\"Toggle 1\")"},{"text":" }"},{"text":" .labelsVisibility(.hidden)"},{"text":""},{"text":" Toggle(isOn: $toggle2) {"},{"text":" Text(\"Toggle 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``VStack`` in the example above centers the first toggle's control"},{"text":"element in the available space, while it centers the second toggle's"},{"text":"combined label and control element:"},{"text":""},{"text":"![A screenshot showing a view with two toggle controls where one label"},{"text":" is visible and the other label is hidden.](View-labelsHidden-1.png)"},{"text":""},{"text":"Always provide a label for controls, even when you hide the label,"},{"text":"because SwiftUI uses labels for other purposes, including accessibility."},{"text":""},{"text":"On iOS, a `Picker` within a `Menu` hides its label by default. You can use"},{"text":"this modifier to explicitly show the label in that context:"},{"text":""},{"text":" Menu {"},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" Text(\"Chocolate\").tag(Flavor.chocolate)"},{"text":" Text(\"Vanilla\").tag(Flavor.vanilla)"},{"text":" Text(\"Strawberry\").tag(Flavor.strawberry)"},{"text":" }"},{"text":" .labelsVisibility(.visible)"},{"text":" }"},{"text":""},{"text":"> Note: This modifier doesn't work for all labels. It applies to"},{"text":" ``LabeledContent`` elements, including controls like ``Picker`` and"},{"text":" ``Toggle``, but not to controls like a bordered button where the label"},{"text":" is inside the button's border."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarRole(_:)"],"names":{"title":"toolbarRole(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarRole"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the semantic role for the content populating the toolbar."},{"text":""},{"text":"Use this modifier to configure the semantic role for content"},{"text":"populating your app's toolbar. SwiftUI uses this role when"},{"text":"rendering the content of your app's toolbar."},{"text":""},{"text":" ContentView()"},{"text":" .navigationTitle(\"Browser\")"},{"text":" .toolbarRole(.browser)"},{"text":" .toolbar {"},{"text":" ToolbarItem(placement: .primaryAction) {"},{"text":" AddButton()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter role: The role of the toolbar."}]},"functionSignature":{"parameters":[{"name":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarRole"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(addTraits:)"],"names":{"title":"accessibility(addTraits:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"addTraits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the given traits to the view."}]},"functionSignature":{"parameters":[{"name":"addTraits","internalName":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"addTraits"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(removeTraits:)"],"names":{"title":"accessibility(removeTraits:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removeTraits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Removes the given traits from this view."}]},"functionSignature":{"parameters":[{"name":"removeTraits","internalName":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removeTraits"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the modified view `count` times. The action closure receives"},{"text":"the location of the interaction."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"The following code adds a tap gesture to a ``Circle`` that toggles the color"},{"text":"of the circle based on the tap location."},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" @State private var location: CGPoint = .zero"},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(self.location.y > 50 ? Color.blue : Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .onTapGesture { location in"},{"text":" self.location = location"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the modified view `count` times. The action closure receives"},{"text":"the location of the interaction."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"The following code adds a tap gesture to a ``Circle`` that toggles the color"},{"text":"of the circle based on the tap location."},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" @State private var location: CGPoint = .zero"},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(self.location.y > 50 ? Color.blue : Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .onTapGesture { location in"},{"text":" self.location = location"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","interactionActivityTrackingTag(_:)"],"names":{"title":"interactionActivityTrackingTag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactionActivityTrackingTag"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a tag that you use for tracking interactivity."},{"text":""},{"text":"The following example tracks the scrolling activity of a ``List``:"},{"text":""},{"text":" List {"},{"text":" Section(\"Today\") {"},{"text":" ForEach(messageStore.today) { message in"},{"text":" Text(message.title)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .interactionActivityTrackingTag(\"MessagesList\")"},{"text":""},{"text":"The resolved activity tracking tag is additive, so using the"},{"text":"modifier across the view hierarchy builds the tag from top to"},{"text":"bottom. The example below shows a hierarchical usage of this"},{"text":"modifier with the resulting tag `Home-Feed`:"},{"text":""},{"text":" var body: some View {"},{"text":" Home()"},{"text":" .interactionActivityTrackingTag(\"Home\")"},{"text":" }"},{"text":""},{"text":" struct Home: View {"},{"text":" var body: some View {"},{"text":" List {"},{"text":" Text(\"A List Item\")"},{"text":" Text(\"A Second List Item\")"},{"text":" Text(\"A Third List Item\")"},{"text":" }"},{"text":" .interactionActivityTrackingTag(\"Feed\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter tag: The tag used to track user interactions"},{"text":" hosted by this view as activities."},{"text":""},{"text":"- Returns: A view that uses a tracking tag."}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactionActivityTrackingTag"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","renameAction(_:)"],"names":{"title":"renameAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the rename action in the environment to update focus state."},{"text":""},{"text":"Use this modifier in conjunction with the ``RenameButton`` to implement"},{"text":"standard rename interactions. A rename button receives its action"},{"text":"from the environment. Use this modifier to customize the action"},{"text":"provided to the rename button."},{"text":""},{"text":" struct RowView: View {"},{"text":" @State private var text = \"\""},{"text":" @FocusState private var isFocused: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(text: $item.name) {"},{"text":" Text(\"Prompt\")"},{"text":" }"},{"text":" .focused($isFocused)"},{"text":" .contextMenu {"},{"text":" RenameButton()"},{"text":" // ... your own custom actions"},{"text":" }"},{"text":" .renameAction($isFocused)"},{"text":" }"},{"text":""},{"text":"When someone taps the rename button in the context menu, the rename"},{"text":"action focuses the text field by setting the `isFocused`"},{"text":"property to true."},{"text":""},{"text":"- Parameter isFocused: The focus binding to update when"},{"text":" activating the rename action."},{"text":""},{"text":"- Returns: A view that has the specified rename action."}]},"functionSignature":{"parameters":[{"name":"isFocused","declarationFragments":[{"kind":"identifier","spelling":"isFocused"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocused"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12renameActionyQryycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","renameAction(_:)"],"names":{"title":"renameAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a closure to run for the rename action."},{"text":""},{"text":"Use this modifier in conjunction with the ``RenameButton`` to implement"},{"text":"standard rename interactions. A rename button receives its action"},{"text":"from the environment. Use this modifier to customize the action"},{"text":"provided to the rename button."},{"text":""},{"text":" struct RowView: View {"},{"text":" @State private var text = \"\""},{"text":" @FocusState private var isFocused: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(text: $item.name) {"},{"text":" Text(\"Prompt\")"},{"text":" }"},{"text":" .focused($isFocused)"},{"text":" .contextMenu {"},{"text":" RenameButton()"},{"text":" // ... your own custom actions"},{"text":" }"},{"text":" .renameAction { isFocused = true }"},{"text":" }"},{"text":""},{"text":"When the user taps the rename button in the context menu, the rename"},{"text":"action focuses the text field by setting the `isFocused`"},{"text":"property to true."},{"text":""},{"text":"- Parameter action: A closure to run when renaming."},{"text":""},{"text":"- Returns: A view that has the specified rename action."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarOverflowMenu(content:)"],"names":{"title":"toolbarOverflowMenu(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarOverflowMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the overflow menu of a toolbar."},{"text":""},{"text":"An overflow menu represents actions that are always placed in the"},{"text":"toolbar's overflow menu, regardless of the toolbar mode, platform,"},{"text":"or customizability."},{"text":""},{"text":" ContentView()"},{"text":" .toolbarOverflowMenu {"},{"text":" Button(\"Action 1\") { }"},{"text":" Button(\"Action 2\") { }"},{"text":" }"},{"text":""},{"text":"In iOS and visionOS, this content is placed into the overflow menu"},{"text":"in the navigation bar."},{"text":""},{"text":"- Parameter content: The content of the overflow menu."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarOverflowMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDragSessionUpdated(_:)"],"names":{"title":"onDragSessionUpdated(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDragSessionUpdated"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action to perform on each update of an ongoing dragging operation"},{"text":"activated by `draggable(_:)` or anther drag modifiers."},{"text":""},{"text":"Below is an example of a view that displays a book and supports"},{"text":"dragging to copy, move, and delete. If the session ends"},{"text":"with moving or deleting the item, in the `onUpdate` closure,"},{"text":"the view lets the model layer know that the book should be deleted"},{"text":"from the source."},{"text":""},{"text":" struct DraggableBookView: View {"},{"text":" var id: UUID"},{"text":""},{"text":" var body: some View {"},{"text":" BookView()"},{"text":" .draggable(Book(id: id))"},{"text":" .dragConfiguration("},{"text":" DragConfiguration("},{"text":" operationsWithinApp: .init(allowMove: true, allowDelete: true),"},{"text":" operationsOutsideApp: .init(allowMove: true, allowDelete: true)"},{"text":" ))"},{"text":" .onDragSessionUpdated { session in"},{"text":" switch session.phase {"},{"text":" case .ended(at: _, with: let operation):"},{"text":" if operation == .move || operation == .delete {"},{"text":" if let id = session.draggedItemIDs(type: UUID.self).first {"},{"text":" removeBook(id: id)"},{"text":" }"},{"text":" }"},{"text":" default:"},{"text":" break"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func removeBook(id: UUID) { }"},{"text":""},{"text":"The `onUpdate` closure is called when the closest drag session"},{"text":"in the child view hierarchy becomes active."}]},"functionSignature":{"parameters":[{"name":"onUpdate","declarationFragments":[{"kind":"identifier","spelling":"onUpdate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDragSessionUpdated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"onUpdate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragConfiguration(_:)"],"names":{"title":"dragConfiguration(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragConfiguration"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures a drag session."},{"text":""},{"text":"Below is a simplified example of a view that supports copy, move and delete"},{"text":"operations for drag."},{"text":""},{"text":"### Drag to delete into trash bin"},{"text":""},{"text":"If a view wants to support drag-to-delete into the trash bin or another"},{"text":"location that has similar semantics, it should specify the"},{"text":"support for this operation in a drag configuration:"},{"text":""},{"text":" @State private var photos: [Photo] = []"},{"text":" @State private var selectedPhotos: [Photo.ID] = []"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" LazyVGrid(columns: gridColumns) {"},{"text":" ForEach(photos) { photo in"},{"text":" PhotoView(photo: photo)"},{"text":" .draggable(containerItemID: photo.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Photo.self) { draggedIDs in"},{"text":" photos(ids: draggedIDs)"},{"text":" }"},{"text":" .dragContainerSelection(selectedPhotos)"},{"text":" .dragConfiguration(DragConfiguration(allowMove: false, allowDelete: true))"},{"text":" .onDragSessionUpdated { session in"},{"text":" if session.phase == .ended(.delete) {"},{"text":" let ids = session.draggedItemIDs(for: Photo.ID.self)"},{"text":" removeAndTrash(ids)"},{"text":" }"},{"text":" }"},{"text":" .dragPreviewsFormation(.stack)"},{"text":" }"},{"text":""},{"text":" func removeAndTrash(_ ids: [Photo.ID]) {"},{"text":" ids.forEach { id"},{"text":" if let idx = photos.firstIndex(where: { $0.id == id }) {"},{"text":" let photo = photos[idx]"},{"text":" photos.remove(at: idx)"},{"text":" try? FileManager.default.trashItem("},{"text":" at: photo.fileURL, resultingItemURL: nil"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Note, that any drag supports copy operation by default."},{"text":" In the snippet above, the view supports both copy and delete"},{"text":" operations."},{"text":""},{"text":"- Parameter configuration: A value that describes the configuration"},{"text":"of a drag session."},{"text":"- Returns: A view that configures a drag session in a way, described"},{"text":"by the `configuration` parameter."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragConfiguration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","blendMode(_:)"],"names":{"title":"blendMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the blend mode for compositing this view with overlapping views."},{"text":""},{"text":"Use `blendMode(_:)` to combine overlapping views and use a different"},{"text":"visual effect to produce the result. The ``BlendMode`` enumeration"},{"text":"defines many possible effects."},{"text":""},{"text":"In the example below, the two overlapping rectangles have a"},{"text":"``BlendMode/colorBurn`` effect applied, which effectively removes the"},{"text":"non-overlapping portion of the second image:"},{"text":""},{"text":" HStack {"},{"text":" Color.yellow.frame(width: 50, height: 50, alignment: .center)"},{"text":""},{"text":" Color.red.frame(width: 50, height: 50, alignment: .center)"},{"text":" .rotationEffect(.degrees(45))"},{"text":" .padding(-20)"},{"text":" .blendMode(.colorBurn)"},{"text":" }"},{"text":""},{"text":"![Two overlapping rectangles showing the effect of the blend mode view"},{"text":"modifier applying the colorBurn effect.](SwiftUI-blendMode.png)"},{"text":""},{"text":"- Parameter blendMode: The ``BlendMode`` for compositing this view."},{"text":""},{"text":"- Returns: A view that applies `blendMode` to this view."}]},"functionSignature":{"parameters":[{"name":"blendMode","declarationFragments":[{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"blendMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","privacySensitive(_:)"],"names":{"title":"privacySensitive(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"privacySensitive"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Marks the view as containing sensitive, private user data."},{"text":""},{"text":"SwiftUI redacts views marked with this modifier when you apply the"},{"text":"``RedactionReasons/privacy`` redaction reason."},{"text":""},{"text":" struct BankAccountView: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Account #\")"},{"text":""},{"text":" Text(accountNumber)"},{"text":" .font(.headline)"},{"text":" .privacySensitive() // Hide only the account number."},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"sensitive","declarationFragments":[{"kind":"identifier","spelling":"sensitive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"privacySensitive"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sensitive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8contrastyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contrast(_:)"],"names":{"title":"contrast(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contrast"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the contrast and separation between similar colors in this view."},{"text":""},{"text":"Apply contrast to a view to increase or decrease the separation between"},{"text":"similar colors in the view."},{"text":""},{"text":"In the example below, the `contrast(_:)` modifier is applied to a set of"},{"text":"red squares each containing a contrasting green inner circle. At each"},{"text":"step in the loop, the `contrast(_:)` modifier changes the contrast of"},{"text":"the circle/square view in 20% increments. This ranges from -20% contrast"},{"text":"(yielding inverted colors — turning the red square to pale-green and the"},{"text":"green circle to mauve), to neutral-gray at 0%, to 100% contrast"},{"text":"(bright-red square / bright-green circle). Applying negative contrast"},{"text":"values, as shown in the -20% square, will apply contrast in addition to"},{"text":"inverting colors."},{"text":""},{"text":" struct CircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 25, height: 25, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Contrast: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(-1..<6) {"},{"text":" Color.red.frame(width: 50, height: 50, alignment: .center)"},{"text":" .overlay(CircleView(), alignment: .center)"},{"text":" .contrast(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Demonstration of the effect of contrast on a view applying contrast"},{"text":"values from -20% to 100% contrast.](SwiftUI-View-contrast.png)"},{"text":""},{"text":"- Parameter amount: The intensity of color contrast to apply. negative"},{"text":" values invert colors in addition to applying contrast."},{"text":""},{"text":"- Returns: A view that applies color contrast to this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contrast"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedGeometryEffect(id:in:properties:anchor:isSource:)"],"names":{"title":"matchedGeometryEffect(id:in:properties:anchor:isSource:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedGeometryEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Defines a group of views with synchronized geometry using an"},{"text":"identifier and namespace that you provide."},{"text":""},{"text":"This method sets the geometry of each view in the group from the"},{"text":"inserted view with `isSource = true` (known as the \"source\" view),"},{"text":"updating the values marked by `properties`."},{"text":""},{"text":"If inserting a view in the same transaction that another view"},{"text":"with the same key is removed, the system will interpolate their"},{"text":"frame rectangles in window space to make it appear that there"},{"text":"is a single view moving from its old position to its new"},{"text":"position. The usual transition mechanisms define how each of"},{"text":"the two views is rendered during the transition (e.g. fade"},{"text":"in/out, scale, etc), the `matchedGeometryEffect()` modifier"},{"text":"only arranges for the geometry of the views to be linked, not"},{"text":"their rendering."},{"text":""},{"text":"If the number of currently-inserted views in the group with"},{"text":"`isSource = true` is not exactly one results are undefined, due"},{"text":"to it not being clear which is the source view."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an `@Namespace` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."},{"text":" - properties: The properties to copy from the source view."},{"text":" - anchor: The relative location in the view used to produce"},{"text":" its shared position value."},{"text":" - isSource: True if the view should be used as the source of"},{"text":" geometry for other views in the group."},{"text":""},{"text":"- Returns: A new view that defines an entry in the global"},{"text":" database of views synchronizing their geometry."},{"text":""}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]},{"name":"properties","declarationFragments":[{"kind":"identifier","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"isSource","declarationFragments":[{"kind":"identifier","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedGeometryEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"},{"kind":"text","spelling":" = .frame, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environment(_:_:)"],"names":{"title":"environment(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the environment value of the specified key path to the given value."},{"text":""},{"text":"Use this modifier to set one of the writable properties of the"},{"text":"``EnvironmentValues`` structure, including custom values that you"},{"text":"create. For example, you can set the value associated with the"},{"text":"``EnvironmentValues/truncationMode`` key:"},{"text":""},{"text":" MyView()"},{"text":" .environment(\\.truncationMode, .head)"},{"text":""},{"text":"You then read the value inside `MyView` or one of its descendants"},{"text":"using the ``Environment`` property wrapper:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @Environment(\\.truncationMode) var truncationMode: Text.TruncationMode"},{"text":""},{"text":" var body: some View { ... }"},{"text":" }"},{"text":""},{"text":"SwiftUI provides dedicated view modifiers for setting most"},{"text":"environment values, like the ``View/truncationMode(_:)``"},{"text":"modifier which sets the ``EnvironmentValues/truncationMode`` value:"},{"text":""},{"text":" MyView()"},{"text":" .truncationMode(.head)"},{"text":""},{"text":"Prefer the dedicated modifier when available, and offer your own when"},{"text":"defining custom environment values, as described in"},{"text":"``Entry()``."},{"text":""},{"text":"This modifier affects the given view,"},{"text":"as well as that view's descendant views. It has no effect"},{"text":"outside the view hierarchy on which you call it."},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: A key path that indicates the property of the"},{"text":" ``EnvironmentValues`` structure to update."},{"text":" - value: The new value to set for the item specified by `keyPath`."},{"text":""},{"text":"- Returns: A view that has the given value set in its environment."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:alignment:)"],"names":{"title":"overlay(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Overlay"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers a secondary view in front of this view."},{"text":""},{"text":"When you apply an overlay to a view, the original view continues to"},{"text":"provide the layout characteristics for the resulting view. In the"},{"text":"following example, the heart image is shown overlaid in front of, and"},{"text":"aligned to the bottom of the folder image."},{"text":""},{"text":" Image(systemName: \"folder\")"},{"text":" .font(.system(size: 55, weight: .thin))"},{"text":" .overlay(Text(\"❤️\"), alignment: .bottom)"},{"text":""},{"text":"![View showing placement of a heart overlaid onto a folder"},{"text":"icon.](View-overlay-1)"},{"text":""},{"text":"- Parameters:"},{"text":" - overlay: The view to layer in front of this view."},{"text":" - alignment: The alignment for `overlay` in relation to this view."},{"text":""},{"text":"- Returns: A view that layers `overlay` in front of the view."}]},"functionSignature":{"parameters":[{"name":"overlay","declarationFragments":[{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Overlay"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Overlay","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Overlay"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"overlay"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","border(_:width:)"],"names":{"title":"border(_:width:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"border"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a border to this view with the specified style and width."},{"text":""},{"text":"Use this modifier to draw a border of a specified width around the"},{"text":"view's frame. By default, the border appears inside the bounds of this"},{"text":"view. For example, you can add a four-point wide border covers the text:"},{"text":""},{"text":" Text(\"Purple border inside the view bounds.\")"},{"text":" .border(Color.purple, width: 4)"},{"text":""},{"text":"![A screenshot showing the text Purple border inside the view bounds."},{"text":"The text is surrounded by a purple border that outlines the text,"},{"text":"but isn't quite big enough and encroaches on the text.](View-border-1)"},{"text":""},{"text":"To place a border around the outside of this view, apply padding of the"},{"text":"same width before adding the border:"},{"text":""},{"text":" Text(\"Purple border outside the view bounds.\")"},{"text":" .padding(4)"},{"text":" .border(Color.purple, width: 4)"},{"text":""},{"text":"![A screenshot showing the text Purple border outside the view bounds."},{"text":"The text is surrounded by a purple border that outlines the text"},{"text":"without touching the text.](View-border-2)"},{"text":""},{"text":"- Parameters:"},{"text":" - content: A value that conforms to the ``ShapeStyle`` protocol,"},{"text":" like a ``Color`` or ``HierarchicalShapeStyle``, that SwiftUI"},{"text":" uses to fill the border."},{"text":" - width: The thickness of the border. The default is 1 pixel."},{"text":""},{"text":"- Returns: A view that adds a border with the specified style and width"},{"text":" to this view."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"border"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(alignment:content:)"],"names":{"title":"overlay(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the views that you specify in front of this view."},{"text":""},{"text":"Use this modifier to place one or more views in front of another view."},{"text":"For example, you can place a group of stars on a ``RoundedRectangle``:"},{"text":""},{"text":" RoundedRectangle(cornerRadius: 8)"},{"text":" .frame(width: 200, height: 100)"},{"text":" .overlay(alignment: .topLeading) { Star(color: .red) }"},{"text":" .overlay(alignment: .topTrailing) { Star(color: .yellow) }"},{"text":" .overlay(alignment: .bottomLeading) { Star(color: .green) }"},{"text":" .overlay(alignment: .bottomTrailing) { Star(color: .blue) }"},{"text":""},{"text":"The example above assumes that you've defined a `Star` view with a"},{"text":"parameterized color:"},{"text":""},{"text":" struct Star: View {"},{"text":" var color = Color.yellow"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"star.fill\")"},{"text":" .foregroundStyle(color)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By setting different `alignment` values for each modifier, you make the"},{"text":"stars appear in different places on the rectangle:"},{"text":""},{"text":"![A screenshot of a rounded rectangle with a star in each corner. The"},{"text":"star in the upper-left is red; the start in the upper-right is yellow;"},{"text":"the star in the lower-left is green; the star the lower-right is"},{"text":"blue.](View-overlay-2)"},{"text":""},{"text":"If you specify more than one view in the `content` closure, the modifier"},{"text":"collects all of the views in the closure into an implicit ``ZStack``,"},{"text":"taking them in order from back to front. For example, you can place a"},{"text":"star and a ``Circle`` on a field of ``ShapeStyle/blue``:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":""},{"text":"Both the overlay modifier and the implicit ``ZStack`` composed from the"},{"text":"overlay content --- the circle and the star --- use a default"},{"text":"``Alignment/center`` alignment. The star appears centered on the circle,"},{"text":"and both appear as a composite view centered in front of the square:"},{"text":""},{"text":"![A screenshot of a star centered on a circle, which is"},{"text":"centered on a square.](View-overlay-3)"},{"text":""},{"text":"If you specify an alignment for the overlay, it applies to the implicit"},{"text":"stack rather than to the individual views in the closure. You can see"},{"text":"this if you add the ``Alignment/bottom`` alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay(alignment: .bottom) {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":""},{"text":"The circle and the star move down as a unit to align the stack's bottom"},{"text":"edge with the bottom edge of the square, while the star remains"},{"text":"centered on the circle:"},{"text":""},{"text":"![A screenshot of a star centered on a circle, which is on a square."},{"text":"The circle's bottom edge is aligned with the square's bottom"},{"text":"edge.](View-overlay-3a)"},{"text":""},{"text":"To control the placement of individual items inside the `content`"},{"text":"closure, either use a different overlay modifier for each item, as the"},{"text":"earlier example of stars in the corners of a rectangle demonstrates, or"},{"text":"add an explicit ``ZStack`` inside the content closure with its own"},{"text":"alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay(alignment: .bottom) {"},{"text":" ZStack(alignment: .bottom) {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The stack alignment ensures that the star's bottom edge aligns with the"},{"text":"circle's, while the overlay aligns the composite view with the square:"},{"text":""},{"text":"![A screenshot of a star, a circle, and a square with all their"},{"text":"bottom edges aligned.](View-overlay-4)"},{"text":""},{"text":"You can achieve layering without an overlay modifier by putting both the"},{"text":"modified view and the overlay content into a ``ZStack``. This can"},{"text":"produce a simpler view hierarchy, but changes the layout priority that"},{"text":"SwiftUI applies to the views. Use the overlay modifier when you want the"},{"text":"modified view to dominate the layout."},{"text":""},{"text":"If you want to specify a ``ShapeStyle`` like a ``Color`` or a"},{"text":"``Material`` as the overlay, use"},{"text":"``View/overlay(_:ignoresSafeAreaEdges:)`` instead. To specify a"},{"text":"``Shape``, use ``View/overlay(_:in:fillStyle:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the foreground views. The default"},{"text":" is ``Alignment/center``."},{"text":" - content: A ``ContentBuilder`` that you use to declare the views to"},{"text":" draw in front of this view, stacked in the order that you list them."},{"text":" The last view that you list appears at the front of the stack."},{"text":""},{"text":"- Returns: A view that uses the specified content as a foreground."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:ignoresSafeAreaEdges:)"],"names":{"title":"overlay(_:ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the specified style in front of this view."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``ShapeStyle``"},{"text":"protocol, like a ``Color``, ``Material``, or ``HierarchicalShapeStyle``,"},{"text":"in front of a view. For example, you can overlay the"},{"text":"``ShapeStyle/ultraThinMaterial`` over a ``Circle``:"},{"text":""},{"text":" struct CoveredCircle: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .frame(width: 300, height: 200)"},{"text":" .overlay(.ultraThinMaterial)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI anchors the style to the view's bounds. For the example above,"},{"text":"the overlay fills the entirety of the circle's frame (which happens"},{"text":"to be wider than the circle is tall):"},{"text":""},{"text":"![A screenshot of a circle showing through a rectangle that imposes"},{"text":"a blurring effect.](View-overlay-5)"},{"text":""},{"text":"SwiftUI also limits the style's extent to the view's"},{"text":"container-relative shape. You can see this effect if you constrain the"},{"text":"`CoveredCircle` view with a ``View/containerShape(_:)`` modifier:"},{"text":""},{"text":" CoveredCircle()"},{"text":" .containerShape(RoundedRectangle(cornerRadius: 30))"},{"text":""},{"text":"The overlay takes on the specified container shape:"},{"text":""},{"text":"![A screenshot of a circle showing through a rounded rectangle that"},{"text":"imposes a blurring effect.](View-overlay-6)"},{"text":""},{"text":"By default, the overlay ignores safe area insets on all edges, but you"},{"text":"can provide a specific set of edges to ignore, or an empty set to"},{"text":"respect safe area insets on all edges:"},{"text":""},{"text":" Rectangle()"},{"text":" .overlay("},{"text":" .secondary,"},{"text":" ignoresSafeAreaEdges: []) // Ignore no safe area insets."},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the overlay"},{"text":"rather than a style, use ``View/overlay(alignment:content:)`` instead."},{"text":"If you want to specify a ``Shape``, use"},{"text":"``View/overlay(_:in:fillStyle:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: An instance of a type that conforms to ``ShapeStyle`` that"},{"text":" SwiftUI layers in front of the modified view."},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the overlay. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the specified style drawn in front of it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:in:fillStyle:)"],"names":{"title":"overlay(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers a shape that you specify in front of this view."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``Shape``"},{"text":"protocol --- like a ``Rectangle``, ``Circle``, or ``Capsule`` --- in"},{"text":"front of a view. Specify a ``ShapeStyle`` that's used to fill the shape."},{"text":"For example, you can overlay the outline of one rectangle in front of"},{"text":"another:"},{"text":""},{"text":" Rectangle()"},{"text":" .frame(width: 200, height: 100)"},{"text":" .overlay(.teal, in: Rectangle().inset(by: 10).stroke(lineWidth: 5))"},{"text":""},{"text":"The example above uses the ``InsettableShape/inset(by:)`` method to"},{"text":"slightly reduce the size of the overlaid rectangle, and the"},{"text":"``Shape/stroke(lineWidth:)`` method to fill only the shape's outline."},{"text":"This creates an inset border:"},{"text":""},{"text":"![A screenshot of a rectangle with a teal border that's"},{"text":"inset from the edge.](View-overlay-7)"},{"text":""},{"text":"This modifier is a convenience method for layering a shape over a view."},{"text":"To handle the more general case of overlaying a ``View`` --- or a stack"},{"text":"of views --- with control over the position, use"},{"text":"``View/overlay(alignment:content:)`` instead. To cover a view with a"},{"text":"``ShapeStyle``, use ``View/overlay(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws in front of the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn in front of it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonSizing(_:)"],"names":{"title":"buttonSizing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonSizing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The preferred sizing behavior of buttons in the view hierarchy."},{"text":""},{"text":"Views may use the specified button sizing when determining the size they"},{"text":"choose to be in their primary axis within their parent view's proposed"},{"text":"size."},{"text":""},{"text":"Many built-in controls that display as a button adapt to this view"},{"text":"modifier. For example, you can make certain styles of ``Button``,"},{"text":"``Picker``, ``ControlGroup``, and ``Toggle`` flexible by applying"},{"text":"this modifier to them or their container."},{"text":""},{"text":"This example creates a button that spans the width of its container,"},{"text":"which you may want to do if the button is placed in a narrow context,"},{"text":"like the sidebar of a welcome window."},{"text":""},{"text":" Button(\"Open Document…\", action: openDocument)"},{"text":" .buttonSizing(.flexible)"},{"text":""},{"text":"Your own views and styles can adapt to this view modifier by reading the"},{"text":"``EnvironmentValues/buttonSizing`` environment value and applying an"},{"text":"appropriate frame."},{"text":""},{"text":" struct CustomButtonStyle: ButtonStyle {"},{"text":" @Environment(\\.buttonSizing) private var buttonSizing"},{"text":""},{"text":" private var maxWidth: CGFloat {"},{"text":" switch buttonSizing {"},{"text":" case .flexible: .infinity"},{"text":" case .fitted, _: nil"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func makeBody(configuration: Configuration) -> some View {"},{"text":" configuration.content"},{"text":" .frame(maxWidth: maxWidth)"},{"text":" .background(.tint, in: Capsule())"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter sizing: A button sizing behavior that may be used to"},{"text":" influence the primary axis size of buttons capable of adapting to it."}]},"functionSignature":{"parameters":[{"name":"sizing","declarationFragments":[{"kind":"identifier","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonSizing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","blur(radius:opaque:)"],"names":{"title":"blur(radius:opaque:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blur"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a Gaussian blur to this view."},{"text":""},{"text":"Use `blur(radius:opaque:)` to apply a gaussian blur effect to the"},{"text":"rendering of this view."},{"text":""},{"text":"The example below shows two ``Text`` views, the first with no blur"},{"text":"effects, the second with `blur(radius:opaque:)` applied with the"},{"text":"`radius` set to `2`. The larger the radius, the more diffuse the"},{"text":"effect."},{"text":""},{"text":" struct Blur: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"This is some text.\")"},{"text":" .padding()"},{"text":" Text(\"This is some blurry text.\")"},{"text":" .blur(radius: 2.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of applying gaussian blur effect to"},{"text":"the rendering of a view.](SwiftUI-View-blurRadius.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - radius: The radial size of the blur. A blur is more diffuse when its"},{"text":" radius is large."},{"text":" - opaque: A Boolean value that indicates whether the blur renderer"},{"text":" permits transparency in the blur output. Set to `true` to create an"},{"text":" opaque blur, or set to `false` to permit transparency."}]},"functionSignature":{"parameters":[{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"opaque","declarationFragments":[{"kind":"identifier","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blur"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorInvertQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorInvert()"],"names":{"title":"colorInvert()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorInvert"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Inverts the colors in this view."},{"text":""},{"text":"The `colorInvert()` modifier inverts all of the colors in a view so that"},{"text":"each color displays as its complementary color. For example, blue"},{"text":"converts to yellow, and white converts to black."},{"text":""},{"text":"In the example below, two red squares each have an interior green"},{"text":"circle. The inverted square shows the effect of the square's colors:"},{"text":"complimentary colors for red and green — teal and purple."},{"text":""},{"text":" struct InnerCircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 40, height: 40, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ColorInvert: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .overlay(Text(\"Normal\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .colorInvert()"},{"text":" .overlay(Text(\"Inverted\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" .padding(50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Two red squares with centered green circles with one showing the"},{"text":"effect of color inversion, which yields teal and purple replacing the"},{"text":"red and green colors.](SwiftUI-View-colorInvert.png)"},{"text":""},{"text":"- Returns: A view that inverts its colors."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorInvert"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","grayscale(_:)"],"names":{"title":"grayscale(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"grayscale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a grayscale effect to this view."},{"text":""},{"text":"A grayscale effect reduces the intensity of colors in this view."},{"text":""},{"text":"The example below shows a series of red squares with their grayscale"},{"text":"effect increasing from 0 (reddest) to 99% (fully desaturated) in"},{"text":"approximate 20% increments:"},{"text":""},{"text":" struct Saturation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .grayscale(Double($0) * 0.1999)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.1999 * 100, specifier: \"%.4f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of grayscale adjustments in"},{"text":"approximately 20% increments from fully-red at 0% to fully desaturated"},{"text":"at 99%.](SwiftUI-View-grayscale.png)"},{"text":""},{"text":"- Parameter amount: The intensity of grayscale to apply from 0.0 to less"},{"text":" than 1.0. Values closer to 0.0 are more colorful, and values closer to"},{"text":" 1.0 are less colorful."},{"text":""},{"text":"- Returns: A view that adds a grayscale effect to this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"grayscale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","rotation3DEffect(_:axis:anchor:anchorZ:perspective:)"],"names":{"title":"rotation3DEffect(_:axis:anchor:anchorZ:perspective:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotation3DEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"), "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Renders a view's content as if it's rotated in three dimensions around"},{"text":"the specified axis."},{"text":""},{"text":"Use this method to create the effect of rotating a view in three"},{"text":"dimensions around a specified axis of rotation. The modifier projects"},{"text":"the rotated content onto the original view's plane. Use the"},{"text":"`perspective` value to control the renderer's vanishing point. The"},{"text":"following example creates the appearance of rotating text 45˚ about"},{"text":"the y-axis:"},{"text":""},{"text":" Text(\"Rotation by passing an angle in degrees\")"},{"text":" .rotation3DEffect("},{"text":" .degrees(45),"},{"text":" axis: (x: 0.0, y: 1.0, z: 0.0),"},{"text":" anchor: .center,"},{"text":" anchorZ: 0,"},{"text":" perspective: 1)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of text in a grey box. The text says Rotation by passing an angle in degrees. The text is rendered in a way that makes it appear farther from the viewer on the right side and closer on the left, as if the text is angled to face someone sitting on the viewer's right.](SwiftUI-View-rotation3DEffect)"},{"text":""},{"text":"> Important: In visionOS, create this effect with"},{"text":" ``perspectiveRotationEffect(_:axis:anchor:anchorZ:perspective:)``"},{"text":" instead. To truly rotate a view in three dimensions,"},{"text":" use a 3D rotation modifier without a perspective input like"},{"text":" ``rotation3DEffect(_:axis:anchor:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - angle: The angle by which to rotate the view's content."},{"text":" - axis: The axis of rotation, specified as a tuple with named"},{"text":" elements for each of the three spatial dimensions."},{"text":" - anchor: A two dimensional unit point within the view about which to"},{"text":" perform the rotation. The default value is ``UnitPoint/center``."},{"text":" - anchorZ: The location on the z-axis around which to rotate the"},{"text":" content. The default is `0`."},{"text":" - perspective: The relative vanishing point for the rotation. The"},{"text":" default is `1`."},{"text":"- Returns: A view with rotated content."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":")"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"anchorZ","declarationFragments":[{"kind":"identifier","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"perspective","declarationFragments":[{"kind":"identifier","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotation3DEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"), "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutDirectionBehavior(_:)"],"names":{"title":"layoutDirectionBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutDirectionBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the behavior of this view for different layout directions."},{"text":""},{"text":"Use `layoutDirectionBehavior(_:)` when you need the system to"},{"text":"horizontally mirror the contents of the view when presented in a"},{"text":"layout direction."},{"text":""},{"text":"To override the layout direction for a specific view, use the"},{"text":"``View/environment(_:_:)`` view modifier to explicitly override"},{"text":"the ``EnvironmentValues/layoutDirection`` environment value for"},{"text":"the view."},{"text":""},{"text":"- Parameter behavior: A LayoutDirectionBehavior value that indicates"},{"text":" whether this view should mirror in a particular layout direction. By"},{"text":" default, views will adjust their layouts automatically in a"},{"text":" right-to-left context and do not need to be mirrored."},{"text":""},{"text":"- Returns: A view that conditionally mirrors its contents"},{"text":" horizontally in a given layout direction."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutDirectionBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7opacityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","opacity(_:)"],"names":{"title":"opacity(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the transparency of this view."},{"text":""},{"text":"Apply opacity to reveal views that are behind another view or to"},{"text":"de-emphasize a view."},{"text":""},{"text":"When applying the `opacity(_:)` modifier to a view that has already had"},{"text":"its opacity transformed, the modifier multiplies the effect of the"},{"text":"underlying opacity transformation."},{"text":""},{"text":"The example below shows yellow and red rectangles configured to overlap."},{"text":"The top yellow rectangle has its opacity set to 50%, allowing the"},{"text":"occluded portion of the bottom rectangle to be visible:"},{"text":""},{"text":" struct Opacity: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.yellow.frame(width: 100, height: 100, alignment: .center)"},{"text":" .zIndex(1)"},{"text":" .opacity(0.5)"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .padding(-40)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Two overlaid rectangles, where the topmost has its opacity set to 50%,"},{"text":"which allows the occluded portion of the bottom rectangle to be"},{"text":"visible.](SwiftUI-View-opacity.png)"},{"text":""},{"text":"- Parameter opacity: A value between 0 (fully transparent) and 1 (fully"},{"text":" opaque)."},{"text":""},{"text":"- Returns: A view that sets the transparency of this view."}]},"functionSignature":{"parameters":[{"name":"opacity","declarationFragments":[{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"opacity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","shadow(color:radius:x:y:)"],"names":{"title":"shadow(color:radius:x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shadow"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a shadow to this view."},{"text":""},{"text":"Use this modifier to add a shadow of a specified color behind a view."},{"text":"You can offset the shadow from its view independently in the horizontal"},{"text":"and vertical dimensions using the `x` and `y` parameters. You can also"},{"text":"blur the edges of the shadow using the `radius` parameter. Use a"},{"text":"radius of zero to create a sharp shadow. Larger radius values produce"},{"text":"softer shadows."},{"text":""},{"text":"The example below creates a grid of boxes with varying offsets and blur."},{"text":"Each box displays its radius and offset values for reference."},{"text":""},{"text":" struct Shadow: View {"},{"text":" let steps = [0, 5, 10]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" ForEach(steps, id: \\.self) { offset in"},{"text":" HStack(spacing: 50) {"},{"text":" ForEach(steps, id: \\.self) { radius in"},{"text":" Color.blue"},{"text":" .shadow("},{"text":" color: .primary,"},{"text":" radius: CGFloat(radius),"},{"text":" x: CGFloat(offset), y: CGFloat(offset))"},{"text":" .overlay {"},{"text":" VStack {"},{"text":" Text(\"\\(radius)\")"},{"text":" Text(\"(\\(offset), \\(offset))\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A three by three grid of blue boxes with shadows."},{"text":"All the boxes display an integer that indicates the shadow's radius and"},{"text":"an ordered pair that indicates the shadow's offset. The boxes in the"},{"text":"first row show zero offset and have shadows directly below the box;"},{"text":"the boxes in the second row show an offset of five in both directions"},{"text":"and have shadows with a small offset toward the right and down; the"},{"text":"boxes in the third row show an offset of ten in both directions and have"},{"text":"shadows with a large offset toward the right and down. The boxes in"},{"text":"the first column show a radius of zero have shadows with sharp edges;"},{"text":"the boxes in the second column show a radius of five and have shadows"},{"text":"with slightly blurry edges; the boxes in the third column show a radius"},{"text":"of ten and have very blurry edges. Because the shadow of the box in the"},{"text":"upper left is both completely sharp and directly below the box, it isn't"},{"text":"visible.](View-shadow-1-iOS)"},{"text":""},{"text":"The example above uses ``Color/primary`` as the color to make the"},{"text":"shadow easy to see for the purpose of illustration. In practice,"},{"text":"you might prefer something more subtle, like ``Color/gray-8j2b``."},{"text":"If you don't specify a color, the method uses a semi-transparent"},{"text":"black."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The shadow's color."},{"text":" - radius: A measure of how much to blur the shadow. Larger values"},{"text":" result in more blur."},{"text":" - x: An amount to offset the shadow horizontally from the view."},{"text":" - y: An amount to offset the shadow vertically from the view."},{"text":""},{"text":"- Returns: A view that adds a shadow to this view."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"}]},{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shadow"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":" = Color(.sRGBLinear, white: 0, opacity: 0.33), "},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","drawingGroup(opaque:colorMode:)"],"names":{"title":"drawingGroup(opaque:colorMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drawingGroup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Composites this view's contents into an offscreen image before final"},{"text":"display."},{"text":""},{"text":"The `drawingGroup(opaque:colorMode:)` modifier flattens a subtree of"},{"text":"views into a single view before rendering it."},{"text":""},{"text":"In the example below, the contents of the view are composited to a"},{"text":"single bitmap; the bitmap is then displayed in place of the view:"},{"text":""},{"text":" VStack {"},{"text":" ZStack {"},{"text":" Text(\"DrawingGroup\")"},{"text":" .foregroundColor(.black)"},{"text":" .padding(20)"},{"text":" .background(Color.red)"},{"text":" Text(\"DrawingGroup\")"},{"text":" .blur(radius: 2)"},{"text":" }"},{"text":" .font(.largeTitle)"},{"text":" .compositingGroup()"},{"text":" .opacity(1.0)"},{"text":" }"},{"text":" .background(Color.white)"},{"text":" .drawingGroup()"},{"text":""},{"text":"- Important: The visual result of a drawing group only includes views"},{"text":" that SwiftUI rasterizes directly using its own drawing primitives,"},{"text":" such as text, images, shapes, and composite views of these types."},{"text":" It will not include views whose contents are composited by Core"},{"text":" Animation layers, such as more complex controls and containers, web"},{"text":" views, media players, and most types of UIKit and AppKit views. In"},{"text":" those cases, the output displays a placeholder image instead."},{"text":" Whether a particular view is rendered using SwiftUI's own drawing"},{"text":" primitives or composited by Core Animation may change in future"},{"text":" releases. However, any view that is currently supported is"},{"text":" guaranteed to remain supported."},{"text":""},{"text":"![A screenshot showing the effects on several stacks configured as a"},{"text":"drawing group.](SwiftUI-View-drawingGroup.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - opaque: A Boolean value that indicates whether the image is opaque."},{"text":" The default is `false`; if set to `true`, the alpha channel of the"},{"text":" image must be `1`."},{"text":" - colorMode: One of the working color space and storage formats"},{"text":" defined in ``ColorRenderingMode``. The default is"},{"text":" ``ColorRenderingMode/nonLinear``."},{"text":""},{"text":"- Returns: A view that composites this view's contents into an offscreen"},{"text":" image before display."}]},"functionSignature":{"parameters":[{"name":"opaque","declarationFragments":[{"kind":"identifier","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"colorMode","declarationFragments":[{"kind":"identifier","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drawingGroup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"},{"kind":"text","spelling":" = .nonLinear) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","brightness(_:)"],"names":{"title":"brightness(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"brightness"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Brightens this view by the specified amount."},{"text":""},{"text":"Use `brightness(_:)` to brighten the intensity of the colors in a view."},{"text":"The example below shows a series of red squares, with their brightness"},{"text":"increasing from 0 (fully red) to 100% (white) in 20% increments."},{"text":""},{"text":" struct Brightness: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .brightness(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of brightness adjustments in 20%"},{"text":"increments from fully-red to white.](SwiftUI-View-brightness.png)"},{"text":""},{"text":"- Parameter amount: A value between 0 (no effect) and 1 (full white"},{"text":" brightening) that represents the intensity of the brightness effect."},{"text":""},{"text":"- Returns: A view that brightens this view by the specified amount."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"brightness"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13geometryGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","geometryGroup()"],"names":{"title":"geometryGroup()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"geometryGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Isolates the geometry (e.g. position and size) of the view"},{"text":"from its parent view."},{"text":""},{"text":"By default SwiftUI views push position and size changes down"},{"text":"through the view hierarchy, so that only views that draw"},{"text":"something (known as leaf views) apply the current animation to"},{"text":"their frame rectangle. However in some cases this coalescing"},{"text":"behavior can give undesirable results; inserting a geometry"},{"text":"group can correct that. A group acts as a barrier between the"},{"text":"parent view and its subviews, forcing the position and size"},{"text":"values to be resolved and animated by the parent, before being"},{"text":"passed down to each subview."},{"text":""},{"text":"The example below shows one use of this function: ensuring that"},{"text":"the member views of each row in the stack apply (and animate"},{"text":"as) a single geometric transform from their ancestor view,"},{"text":"rather than letting the effects of the ancestor views be"},{"text":"applied separately to each leaf view. If the members of"},{"text":"`ItemView` may be added and removed at different times the"},{"text":"group ensures that they stay locked together as animations are"},{"text":"applied."},{"text":""},{"text":" VStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item: item)"},{"text":" .geometryGroup()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Returns: a new view whose geometry is isolated from that of its"},{"text":"parent view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"geometryGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environmentObject(_:)"],"names":{"title":"environmentObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environmentObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Supplies an observable object to a view's hierarchy."},{"text":""},{"text":"Use this modifier to add an observable object to a view's environment."},{"text":"The object must conform to the"},{"text":""},{"text":"protocol."},{"text":""},{"text":"Adding an object to a view's environment makes the object available to"},{"text":"subviews in the view's hierarchy. To retrieve the object in a subview,"},{"text":"use the ``EnvironmentObject`` property wrapper."},{"text":""},{"text":"> Note: If the observable object conforms to the"},{"text":""},{"text":"protocol, use either ``View/environment(_:)`` or the"},{"text":"``View/environment(_:_:)`` modifier to add the object to the view's"},{"text":"environment."},{"text":""},{"text":"- Parameter object: The object to store and make available to"},{"text":" the view's hierarchy."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environmentObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","mask(alignment:_:)"],"names":{"title":"mask(alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Masks this view using the alpha channel of the given view."},{"text":""},{"text":"Use `mask(_:)` when you want to apply the alpha (opacity) value of"},{"text":"another view to the current view."},{"text":""},{"text":"This example shows an image masked by rectangle with a 10% opacity:"},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .foregroundColor(Color.blue)"},{"text":" .font(.system(size: 128, weight: .regular))"},{"text":" .mask {"},{"text":" Rectangle().opacity(0.1)"},{"text":" }"},{"text":""},{"text":"![A screenshot of a view masked by a rectangle with 10%"},{"text":"opacity.](SwiftUI-View-mask.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment for `mask` in relation to this view."},{"text":" - mask: The view whose alpha the rendering system applies to"},{"text":" the specified view."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"mask","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Mask"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Mask","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","mask(_:)"],"names":{"title":"mask(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Masks this view using the alpha channel of the given view."},{"text":""},{"text":"Use `mask(_:)` when you want to apply the alpha (opacity) value of"},{"text":"another view to the current view."},{"text":""},{"text":"This example shows an image masked by rectangle with a 10% opacity:"},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .foregroundColor(Color.blue)"},{"text":" .font(.system(size: 128, weight: .regular))"},{"text":" .mask(Rectangle().opacity(0.1))"},{"text":""},{"text":"![A screenshot of a view masked by a rectangle with 10%"},{"text":"opacity.](SwiftUI-View-mask.png)"},{"text":""},{"text":"- Parameter mask: The view whose alpha the rendering system applies to"},{"text":" the specified view."}]},"functionSignature":{"parameters":[{"name":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Mask"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Mask","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"visionOS","deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","edgesIgnoringSafeArea(_:)"],"names":{"title":"edgesIgnoringSafeArea(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"edgesIgnoringSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Changes the view's proposed area to extend outside the screen's safe"},{"text":"areas."},{"text":""},{"text":"Use `edgesIgnoringSafeArea(_:)` to change the area proposed for this"},{"text":"view so that — were the proposal accepted — this view could extend"},{"text":"outside the safe area to the bounds of the screen for the specified"},{"text":"edges."},{"text":""},{"text":"For example, you can propose that a text view ignore the safe area's top"},{"text":"inset:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"This text is outside of the top safe area.\")"},{"text":" .edgesIgnoringSafeArea([.top])"},{"text":" .border(Color.purple)"},{"text":" Text(\"This text is inside VStack.\")"},{"text":" .border(Color.yellow)"},{"text":" }"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view whose bounds exceed the safe area of the"},{"text":"screen.](SwiftUI-View-edgesIgnoringSafeArea.png)"},{"text":""},{"text":"Depending on the surrounding view hierarchy, SwiftUI may not honor an"},{"text":"`edgesIgnoringSafeArea(_:)` request. This can happen, for example, if"},{"text":"the view is inside a container that respects the screen's safe area. In"},{"text":"that case you may need to apply `edgesIgnoringSafeArea(_:)` to the"},{"text":"container instead."},{"text":""},{"text":"- Parameter edges: The set of the edges in which to expand the size"},{"text":" requested for this view."},{"text":""},{"text":"- Returns: A view that may extend outside of the screen's safe area"},{"text":" on the edges specified by `edges`."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"edgesIgnoringSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16compositingGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","compositingGroup()"],"names":{"title":"compositingGroup()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compositingGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Wraps this view in a compositing group."},{"text":""},{"text":"A compositing group makes compositing effects in this view's ancestor"},{"text":"views, such as opacity and the blend mode, take effect before this view"},{"text":"is rendered."},{"text":""},{"text":"Use `compositingGroup()` to apply effects to a parent view before"},{"text":"applying effects to this view."},{"text":""},{"text":"In the example below the `compositingGroup()` modifier separates the"},{"text":"application of effects into stages. It applies the ``View/opacity(_:)``"},{"text":"effect to the VStack before the `blur(radius:)` effect is applied to the"},{"text":"views inside the enclosed ``ZStack``. This limits the scope of the"},{"text":"opacity change to the outermost view."},{"text":""},{"text":" VStack {"},{"text":" ZStack {"},{"text":" Text(\"CompositingGroup\")"},{"text":" .foregroundColor(.black)"},{"text":" .padding(20)"},{"text":" .background(Color.red)"},{"text":" Text(\"CompositingGroup\")"},{"text":" .blur(radius: 2)"},{"text":" }"},{"text":" .font(.largeTitle)"},{"text":" .compositingGroup()"},{"text":" .opacity(0.9)"},{"text":" }"},{"text":""},{"text":"![A view showing the effect of the compositingGroup modifier in applying"},{"text":"compositing effects to parent views before child views are"},{"text":"rendered.](SwiftUI-View-compositingGroup.png)"},{"text":""},{"text":"- Returns: A view that wraps this view in a compositing group."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compositingGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","position(_:)"],"names":{"title":"position(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions the center of this view at the specified point in its parent's"},{"text":"coordinate space."},{"text":""},{"text":"Use the `position(_:)` modifier to place the center of a view at a"},{"text":"specific coordinate in the parent view using a"},{"text":" to specify the `x`"},{"text":"and `y` offset."},{"text":""},{"text":" Text(\"Position by passing a CGPoint()\")"},{"text":" .position(CGPoint(x: 175, y: 100))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"- Parameter position: The point at which to place the center of this"},{"text":" view."},{"text":""},{"text":"- Returns: A view that fixes the center of this view at `position`."}]},"functionSignature":{"parameters":[{"name":"position","declarationFragments":[{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","position(x:y:)"],"names":{"title":"position(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions the center of this view at the specified coordinates in its"},{"text":"parent's coordinate space."},{"text":""},{"text":"Use the `position(x:y:)` modifier to place the center of a view at a"},{"text":"specific coordinate in the parent view using an `x` and `y` offset."},{"text":""},{"text":" Text(\"Position by passing the x and y coordinates\")"},{"text":" .position(x: 175, y: 100)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: The x-coordinate at which to place the center of this view."},{"text":" - y: The y-coordinate at which to place the center of this view."},{"text":""},{"text":"- Returns: A view that fixes the center of this view at `x` and `y`."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIgnoresInvertColors(_:)"],"names":{"title":"accessibilityIgnoresInvertColors(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIgnoresInvertColors"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether this view should ignore the system Smart Invert setting."},{"text":""},{"text":"Use this modifier to suppress Smart Invert in a view that shouldn't"},{"text":"be inverted. Or pass an `active` argument of `false` to begin following"},{"text":"the Smart Invert setting again when it was previously disabled."},{"text":""},{"text":"- Parameter active: A true value ignores the system Smart Invert"},{"text":" setting. A false value follows the system setting."}]},"functionSignature":{"parameters":[{"name":"active","declarationFragments":[{"kind":"identifier","spelling":"active"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIgnoresInvertColors"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"active"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","underline(_:pattern:color:)"],"names":{"title":"underline(_:pattern:color:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"underline"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies an underline to the text in this view."},{"text":""},{"text":"- Parameters:"},{"text":" - isActive: A Boolean value that indicates whether underline"},{"text":" is added. The default value is `true`."},{"text":" - pattern: The pattern of the line. The default value is `solid`."},{"text":" - color: The color of the underline. If `color` is `nil`, the"},{"text":" underline uses the default foreground color."},{"text":""},{"text":"- Returns: A view where text has a line running along its baseline."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"pattern","declarationFragments":[{"kind":"identifier","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"}]},{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"underline"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":" = .solid, "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","strikethrough(_:pattern:color:)"],"names":{"title":"strikethrough(_:pattern:color:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strikethrough"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a strikethrough to the text in this view."},{"text":""},{"text":"- Parameters:"},{"text":" - isActive: A Boolean value that indicates whether"},{"text":" strikethrough is added. The default value is `true`."},{"text":" - pattern: The pattern of the line. The default value is `solid`."},{"text":" - color: The color of the strikethrough. If `color` is `nil`, the"},{"text":" strikethrough uses the default foreground color."},{"text":""},{"text":"- Returns: A view where text has a line through its center."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"pattern","declarationFragments":[{"kind":"identifier","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"}]},{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strikethrough"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":" = .solid, "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAlwaysIncludesPunctuation(_:)"],"names":{"title":"speechAlwaysIncludesPunctuation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAlwaysIncludesPunctuation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether VoiceOver should always speak all punctuation in the text"},{"text":"view."},{"text":""},{"text":"Use this modifier to control whether the system speaks punctuation"},{"text":"characters in the text. You might use this for code or other text where"},{"text":"the punctuation is relevant, or where you want VoiceOver to speak a"},{"text":"verbatim transcription of the text you provide. For example, given the"},{"text":"text:"},{"text":""},{"text":" Text(\"All the world's a stage, \" +"},{"text":" \"And all the men and women merely players;\")"},{"text":" .speechAlwaysIncludesPunctuation()"},{"text":""},{"text":"VoiceOver would speak \"All the world apostrophe s a stage comma and all"},{"text":"the men and women merely players semicolon\"."},{"text":""},{"text":"By default, VoiceOver voices punctuation based on surrounding context."},{"text":""},{"text":"- Parameter value: A Boolean value that you set to `true` if"},{"text":" VoiceOver should speak all punctuation in the text. Defaults to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAlwaysIncludesPunctuation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechSpellsOutCharacters(_:)"],"names":{"title":"speechSpellsOutCharacters(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechSpellsOutCharacters"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether VoiceOver should speak the contents of the text view"},{"text":"character by character."},{"text":""},{"text":"Use this modifier when you want VoiceOver to speak text as individual"},{"text":"letters, character by character. This is important for text that is not"},{"text":"meant to be spoken together, like:"},{"text":"- An acronym that isn't a word, like APPL, spoken as \"A-P-P-L\"."},{"text":"- A number representing a series of digits, like 25, spoken as \"two-five\""},{"text":" rather than \"twenty-five\"."},{"text":""},{"text":"- Parameter value: A Boolean value that when `true` indicates"},{"text":" VoiceOver should speak text as individual characters. Defaults"},{"text":" to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechSpellsOutCharacters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAdjustedPitch(_:)"],"names":{"title":"speechAdjustedPitch(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAdjustedPitch"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Raises or lowers the pitch of spoken text."},{"text":""},{"text":"Use this modifier when you want to change the pitch of spoken text."},{"text":"The value indicates how much higher or lower to change the pitch."},{"text":""},{"text":"- Parameter value: The amount to raise or lower the pitch."},{"text":" Values between `-1` and `0` result in a lower pitch while"},{"text":" values between `0` and `1` result in a higher pitch."},{"text":" The method clamps values to the range `-1` to `1`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAdjustedPitch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAnnouncementsQueued(_:)"],"names":{"title":"speechAnnouncementsQueued(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAnnouncementsQueued"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Controls whether to queue pending announcements behind existing speech"},{"text":"rather than interrupting speech in progress."},{"text":""},{"text":"Use this modifier when you want affect the order in which the"},{"text":"accessibility system delivers spoken text. Announcements can"},{"text":"occur automatically when the label or value of an accessibility"},{"text":"element changes."},{"text":""},{"text":"- Parameter value: A Boolean value that determines if VoiceOver speaks"},{"text":" changes to text immediately or enqueues them behind existing speech."},{"text":" Defaults to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAnnouncementsQueued"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onGeometryChange(for:of:action:)"],"names":{"title":"onGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"geometry proxy, changes."},{"text":""},{"text":"The geometry of a view can change frequently, especially if"},{"text":"the view is contained within a ``ScrollView`` and that scroll view"},{"text":"is scrolling."},{"text":""},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``GeometryProxy`` to"},{"text":" your own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know how much of a view"},{"text":"is visible on screen. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack {"},{"text":" ForEach(videos) { video in"},{"text":" VideoView(video)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct VideoView: View {"},{"text":" var video: VideoModel"},{"text":""},{"text":" var body: some View {"},{"text":" VideoPlayer(video)"},{"text":" .onGeometryChange(for: Bool.self) { proxy in"},{"text":" let frame = proxy.frame(in: .scrollView)"},{"text":" let bounds = proxy.bounds(of: .scrollView) ?? .zero"},{"text":" let intersection = frame.intersection("},{"text":" CGRect(origin: .zero, size: bounds.size))"},{"text":" let visibleHeight = intersection.size.height"},{"text":" return (visibleHeight / frame.size.height) > 0.75"},{"text":" } action: { isVisible in"},{"text":" video.updateAutoplayingState("},{"text":" isVisible: isVisible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"For easily responding to geometry changes of a scroll view, see the"},{"text":"``View/onScrollGeometryChange(for:of:action:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a ``GeometryProxy``."},{"text":" - transform: A closure that transforms a ``GeometryProxy``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onGeometryChange(for:of:action:)"],"names":{"title":"onGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"geometry proxy, changes."},{"text":""},{"text":"The geometry of a view can change frequently, especially if"},{"text":"the view is contained within a ``ScrollView`` and that scroll view"},{"text":"is scrolling."},{"text":""},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``GeometryProxy`` to your"},{"text":" own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know how much of a view"},{"text":"is visible on screen. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack {"},{"text":" ForEach(videos) { video in"},{"text":" VideoView(video)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct VideoView: View {"},{"text":" var video: VideoModel"},{"text":""},{"text":" var body: some View {"},{"text":" VideoPlayer(video)"},{"text":" .onGeometryChange(for: Bool.self) { proxy in"},{"text":" let frame = proxy.frame(in: .scrollView)"},{"text":" let bounds = proxy.bounds(of: .scrollView) ?? .zero"},{"text":" let intersection = frame.intersection("},{"text":" CGRect(origin: .zero, size: bounds.size))"},{"text":" let visibleHeight = intersection.size.height"},{"text":" return (visibleHeight / frame.size.height) > 0.75"},{"text":" } action: { isVisible in"},{"text":" video.updateAutoplayingState("},{"text":" isVisible: isVisible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a geometry proxy."},{"text":" - transform: A closure that transforms a ``GeometryProxy``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term oldValue: The old value that failed the comparison check."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","redacted(reason:)"],"names":{"title":"redacted(reason:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"redacted"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a reason to apply a redaction to this view hierarchy."},{"text":""},{"text":"Adding a redaction is an additive process: any redaction"},{"text":"provided will be added to the reasons provided by the parent."}]},"functionSignature":{"parameters":[{"name":"reason","declarationFragments":[{"kind":"identifier","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"redacted"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10unredactedQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","unredacted()"],"names":{"title":"unredacted()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unredacted"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Removes any reason to apply a redaction to this view hierarchy."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unredacted"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","controlSize(_:)"],"names":{"title":"controlSize(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size for controls within this view."},{"text":""},{"text":"Use `controlSize(_:)` to override the system default size for controls"},{"text":"in this view. In this example, a view displays several typical controls"},{"text":"at `.mini`, `.small` and `.regular` sizes."},{"text":""},{"text":" struct ControlSize: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" MyControls(label: \"Mini\")"},{"text":" .controlSize(.mini)"},{"text":" MyControls(label: \"Small\")"},{"text":" .controlSize(.small)"},{"text":" MyControls(label: \"Regular\")"},{"text":" .controlSize(.regular)"},{"text":" }"},{"text":" .padding()"},{"text":" .frame(width: 450)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct MyControls: View {"},{"text":" var label: String"},{"text":" @State private var value = 3.0"},{"text":" @State private var selected = 1"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Text(label + \":\")"},{"text":" Picker(\"Selection\", selection: $selected) {"},{"text":" Text(\"option 1\").tag(1)"},{"text":" Text(\"option 2\").tag(2)"},{"text":" Text(\"option 3\").tag(3)"},{"text":" }"},{"text":" Slider(value: $value, in: 1...10)"},{"text":" Button(\"OK\") { }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing several controls of various"},{"text":"sizes.](SwiftUI-View-controlSize.png)"},{"text":""},{"text":"- Parameter controlSize: One of the control sizes specified in the"},{"text":" ``ControlSize`` enumeration."}]},"functionSignature":{"parameters":[{"name":"controlSize","declarationFragments":[{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"controlSize"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","materialActiveAppearance(_:)"],"names":{"title":"materialActiveAppearance(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"materialActiveAppearance"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets an explicit active appearance for materials in this view."}]},"functionSignature":{"parameters":[{"name":"appearance","declarationFragments":[{"kind":"identifier","spelling":"appearance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"materialActiveAppearance"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"appearance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformEffect(_:)"],"names":{"title":"transformEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies an affine transformation to this view's rendered output."},{"text":""},{"text":"Use `transformEffect(_:)` to rotate, scale, translate, or skew the"},{"text":"output of the view according to the provided"},{"text":"."},{"text":""},{"text":"In the example below, the text is rotated at -30˚ on the `y` axis."},{"text":""},{"text":" let transform = CGAffineTransform(rotationAngle: -30 * (.pi / 180))"},{"text":""},{"text":" Text(\"Projection effect using transforms\")"},{"text":" .transformEffect(transform)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of a view showing text that is rotated at -30 degrees on"},{"text":"the y axis.](SwiftUI-View-transformEffect.png)"},{"text":""},{"text":"- Parameter transform: A"},{"text":" to"},{"text":"apply to the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","coordinateSpace(name:)"],"names":{"title":"coordinateSpace(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Assigns a name to the view's coordinate space, so other code can operate"},{"text":"on dimensions like points and sizes relative to the named space."},{"text":""},{"text":"Use `coordinateSpace(name:)` to allow another function to find and"},{"text":"operate on a view and operate on dimensions relative to that view."},{"text":""},{"text":"The example below demonstrates how a nested view can find and operate on"},{"text":"its enclosing view's coordinate space:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var location = CGPoint.zero"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red.frame(width: 100, height: 100)"},{"text":" .overlay(circle)"},{"text":" Text(\"Location: \\(Int(location.x)), \\(Int(location.y))\")"},{"text":" }"},{"text":" .coordinateSpace(name: \"stack\")"},{"text":" }"},{"text":""},{"text":" var circle: some View {"},{"text":" Circle()"},{"text":" .frame(width: 25, height: 25)"},{"text":" .gesture(drag)"},{"text":" .padding(5)"},{"text":" }"},{"text":""},{"text":" var drag: some Gesture {"},{"text":" DragGesture(coordinateSpace: .named(\"stack\"))"},{"text":" .onChanged { info in location = info.location }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Here, the ``VStack`` in the `ContentView` named “stack” is composed of a"},{"text":"red frame with a custom ``Circle`` view ``View/overlay(_:alignment:)``"},{"text":"at its center."},{"text":""},{"text":"The `circle` view has an attached ``DragGesture`` that targets the"},{"text":"enclosing VStack's coordinate space. As the gesture recognizer's closure"},{"text":"registers events inside `circle` it stores them in the shared `location`"},{"text":"state variable and the ``VStack`` displays the coordinates in a ``Text``"},{"text":"view."},{"text":""},{"text":"![A screenshot showing an example of finding a named view and tracking"},{"text":"relative locations in that view.](SwiftUI-View-coordinateSpace.png)"},{"text":""},{"text":"- Parameter name: A name used to identify this coordinate space."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","coordinateSpace(_:)"],"names":{"title":"coordinateSpace(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Assigns a name to the view's coordinate space, so other code can operate"},{"text":"on dimensions like points and sizes relative to the named space."},{"text":""},{"text":"Use `coordinateSpace(_:)` to allow another function to find and"},{"text":"operate on a view and operate on dimensions relative to that view."},{"text":""},{"text":"The example below demonstrates how a nested view can find and operate on"},{"text":"its enclosing view's coordinate space:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var location = CGPoint.zero"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red.frame(width: 100, height: 100)"},{"text":" .overlay(circle)"},{"text":" Text(\"Location: \\(Int(location.x)), \\(Int(location.y))\")"},{"text":" }"},{"text":" .coordinateSpace(.named(\"stack\"))"},{"text":" }"},{"text":""},{"text":" var circle: some View {"},{"text":" Circle()"},{"text":" .frame(width: 25, height: 25)"},{"text":" .gesture(drag)"},{"text":" .padding(5)"},{"text":" }"},{"text":""},{"text":" var drag: some Gesture {"},{"text":" DragGesture(coordinateSpace: .named(\"stack\"))"},{"text":" .onChanged { info in location = info.location }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Here, the ``VStack`` in the `ContentView` named “stack” is composed of a"},{"text":"red frame with a custom ``Circle`` view ``View/overlay(_:alignment:)``"},{"text":"at its center."},{"text":""},{"text":"The `circle` view has an attached ``DragGesture`` that targets the"},{"text":"enclosing VStack's coordinate space. As the gesture recognizer's closure"},{"text":"registers events inside `circle` it stores them in the shared `location`"},{"text":"state variable and the ``VStack`` displays the coordinates in a ``Text``"},{"text":"view."},{"text":""},{"text":"![A screenshot showing an example of finding a named view and tracking"},{"text":"relative locations in that view.](SwiftUI-View-coordinateSpace.png)"},{"text":""},{"text":"- Parameter name: A name used to identify this coordinate space."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolRenderingMode(_:)"],"names":{"title":"symbolRenderingMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolRenderingMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the rendering mode for symbol images within this view."},{"text":""},{"text":"- Parameter mode: The symbol rendering mode to use."},{"text":""},{"text":"- Returns: A view that uses the rendering mode you supply."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolRenderingMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolVariableValueMode(_:)"],"names":{"title":"symbolVariableValueMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariableValueMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the variable value mode mode for symbol images within this view."},{"text":""},{"text":"- Parameter mode: The symbol variable value mode to use."},{"text":""},{"text":"- Returns: A view that uses the symbol variable value mode you supply."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariableValueMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolColorRenderingMode(_:)"],"names":{"title":"symbolColorRenderingMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolColorRenderingMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the color rendering mode for symbol images."},{"text":""},{"text":"- Parameter mode: The color rendering mode, or nil to use the"},{"text":" default mode."},{"text":""},{"text":"- Returns: A view that specifies the color rendering mode for"},{"text":" symbol images."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolColorRenderingMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorEffect(_:isEnabled:)"],"names":{"title":"colorEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a filter"},{"text":"effect on the color of each pixel."},{"text":""},{"text":"For a shader function to act as a color filter it must have a"},{"text":"function signature matching:"},{"text":""},{"text":" [[ stitchable ]] half4 name(float2 position, half4 color, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the pixel"},{"text":"applied to the shader and `color` its source color, as a"},{"text":"pre-multiplied color in the destination color space. `args...`"},{"text":"should be compatible with the uniform arguments bound to"},{"text":"`shader`. The function should return the modified color value."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply to `self` as a color filter."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a color filter."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","distortionEffect(_:maxSampleOffset:isEnabled:)"],"names":{"title":"distortionEffect(_:maxSampleOffset:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"distortionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a"},{"text":"geometric distortion effect on the location of each pixel."},{"text":""},{"text":"For a shader function to act as a distortion effect it must"},{"text":"have a function signature matching:"},{"text":""},{"text":" [[ stitchable ]] float2 name(float2 position, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the"},{"text":"destination pixel applied to the shader. `args...` should be"},{"text":"compatible with the uniform arguments bound to `shader`. The"},{"text":"function should return the user-space coordinates of the"},{"text":"corresponding source pixel."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply as a distortion effect."},{"text":" - maxSampleOffset: The maximum distance in each axis between"},{"text":" the returned source pixel position and the destination pixel"},{"text":" position, for all source pixels."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a distortion effect."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"maxSampleOffset","declarationFragments":[{"kind":"identifier","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"distortionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layerEffect(_:maxSampleOffset:isEnabled:)"],"names":{"title":"layerEffect(_:maxSampleOffset:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layerEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a filter"},{"text":"on the raster layer created from `self`."},{"text":""},{"text":"For a shader function to act as a layer effect it must"},{"text":"have a function signature matching:"},{"text":""},{"text":" [[ stitchable ]] half4 name(float2 position,"},{"text":" SwiftUI::Layer layer, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the"},{"text":"destination pixel applied to the shader, and `layer` is a"},{"text":"subregion of the rasterized contents of `self`. `args...`"},{"text":"should be compatible with the uniform arguments bound to"},{"text":"`shader`."},{"text":""},{"text":"The `SwiftUI::Layer` type is defined in the"},{"text":"`` header file. It exports a single"},{"text":"`sample()` function that returns a linearly-filtered pixel"},{"text":"value from a position in the source content, as a premultiplied"},{"text":"RGBA pixel value:"},{"text":""},{"text":" namespace SwiftUI {"},{"text":" struct Layer {"},{"text":" half4 sample(float2 position) const;"},{"text":" };"},{"text":" };"},{"text":""},{"text":"The function should return the color mapping to the destination"},{"text":"pixel, typically by sampling one or more pixels from `layer` at"},{"text":"location(s) derived from `position` and them applying some kind"},{"text":"of transformation to produce a new color."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply as a layer effect."},{"text":" - maxSampleOffset: If the shader function samples from the"},{"text":" layer at locations not equal to the destination position,"},{"text":" this value must specify the maximum sampling distance in"},{"text":" each axis, for all source pixels."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a distortion effect."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"maxSampleOffset","declarationFragments":[{"kind":"identifier","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layerEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","aspectRatio(_:contentMode:)"],"names":{"title":"aspectRatio(_:contentMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Constrains this view's dimensions to the specified aspect ratio."},{"text":""},{"text":"Use `aspectRatio(_:contentMode:)` to constrain a view's dimensions to an"},{"text":"aspect ratio specified by a"},{"text":""},{"text":"using the specified content mode."},{"text":""},{"text":"If this view is resizable, the resulting view will have `aspectRatio` as"},{"text":"its aspect ratio. In this example, the purple ellipse has a 3:4"},{"text":"width-to-height ratio, and scales to fit its frame:"},{"text":""},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .aspectRatio(0.75, contentMode: .fit)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A view showing a purple ellipse that has a 3:4 width-to-height ratio,"},{"text":"and scales to fit its frame.](SwiftUI-View-aspectRatio-cgfloat.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - aspectRatio: The ratio of width to height to use for the resulting"},{"text":" view. Use `nil` to maintain the current aspect ratio in the"},{"text":" resulting view."},{"text":" - contentMode: A flag that indicates whether this view fits or fills"},{"text":" the parent context."},{"text":""},{"text":"- Returns: A view that constrains this view's dimensions to the aspect"},{"text":" ratio of the given size using `contentMode` as its scaling algorithm."}]},"functionSignature":{"parameters":[{"name":"aspectRatio","declarationFragments":[{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"contentMode","declarationFragments":[{"kind":"identifier","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","aspectRatio(_:contentMode:)"],"names":{"title":"aspectRatio(_:contentMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Constrains this view's dimensions to the aspect ratio of the given size."},{"text":""},{"text":"Use `aspectRatio(_:contentMode:)` to constrain a view's dimensions to"},{"text":"an aspect ratio specified by a"},{"text":"."},{"text":""},{"text":"If this view is resizable, the resulting view uses `aspectRatio` as its"},{"text":"own aspect ratio. In this example, the purple ellipse has a 3:4"},{"text":"width-to-height ratio, and scales to fill its frame:"},{"text":""},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .aspectRatio(CGSize(width: 3, height: 4), contentMode: .fill)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A view showing a purple ellipse that has a 3:4 width-to-height ratio,"},{"text":"and scales to fill its frame.](SwiftUI-View-aspectRatio.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - aspectRatio: A size that specifies the ratio of width to height to"},{"text":" use for the resulting view."},{"text":" - contentMode: A flag indicating whether this view should fit or fill"},{"text":" the parent context."},{"text":""},{"text":"- Returns: A view that constrains this view's dimensions to"},{"text":" `aspectRatio`, using `contentMode` as its scaling algorithm."}]},"functionSignature":{"parameters":[{"name":"aspectRatio","declarationFragments":[{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"contentMode","declarationFragments":[{"kind":"identifier","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaledToFitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaledToFit()"],"names":{"title":"scaledToFit()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view to fit its parent."},{"text":""},{"text":"Use `scaledToFit()` to scale this view to fit its parent, while"},{"text":"maintaining the view's aspect ratio as the view scales."},{"text":""},{"text":" Circle()"},{"text":" .fill(Color.pink)"},{"text":" .scaledToFit()"},{"text":" .frame(width: 300, height: 150)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A screenshot of pink circle scaled to fit its"},{"text":"frame.](SwiftUI-View-scaledToFit-1.png)"},{"text":""},{"text":"This method is equivalent to calling"},{"text":"``View/aspectRatio(_:contentMode:)`` with a `nil` aspectRatio and"},{"text":"a content mode of ``ContentMode/fit``."},{"text":""},{"text":"- Returns: A view that scales this view to fit its parent, maintaining"},{"text":" this view's aspect ratio."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scaledToFillQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaledToFill()"],"names":{"title":"scaledToFill()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFill"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view to fill its parent."},{"text":""},{"text":"Use `scaledToFill()` to scale this view to fill its parent, while"},{"text":"maintaining the view's aspect ratio as the view scales:"},{"text":""},{"text":" Circle()"},{"text":" .fill(Color.pink)"},{"text":" .scaledToFill()"},{"text":" .frame(width: 300, height: 150)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A screenshot of pink circle scaled to fill its"},{"text":"frame.](SwiftUI-View-scaledToFill-1.png)"},{"text":""},{"text":"This method is equivalent to calling"},{"text":"``View/aspectRatio(_:contentMode:)`` with a `nil` aspectRatio and"},{"text":"a content mode of ``ContentMode/fill``."},{"text":""},{"text":"- Returns: A view that scales this view to fill its parent, maintaining"},{"text":" this view's aspect ratio."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFill"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayPreferenceValue(_:alignment:_:)"],"names":{"title":"overlayPreferenceValue(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as an overlay to the"},{"text":"original view."},{"text":""},{"text":"The values of the preference key from both views"},{"text":"are combined and made visible to the parent view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - alignment: An optional alignment to use when positioning the"},{"text":" overlay view relative to the original view."},{"text":" - transform: A function that produces the overlay view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view in front of the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundPreferenceValue(_:alignment:_:)"],"names":{"title":"backgroundPreferenceValue(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as the background of the"},{"text":"original view."},{"text":""},{"text":"The values of the preference key from both views"},{"text":"are combined and made visible to the parent view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - alignment: An optional alignment to use when positioning the"},{"text":" background view relative to the original view."},{"text":" - transform: A function that produces the background view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view behind the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayPreferenceValue(_:_:)"],"names":{"title":"overlayPreferenceValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type, ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as an overlay to the"},{"text":"original view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - transform: A function that produces the overlay view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view in front of the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Key","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Key","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type = Key.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundPreferenceValue(_:_:)"],"names":{"title":"backgroundPreferenceValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type, ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as the background of the"},{"text":"original view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - transform: A function that produces the background view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view behind the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Key","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Key","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type = Key.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","zIndex(_:)"],"names":{"title":"zIndex(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zIndex"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Controls the display order of overlapping views."},{"text":""},{"text":"Use `zIndex(_:)` when you want to control the front-to-back ordering of"},{"text":"views."},{"text":""},{"text":"In this example there are two overlapping rotated rectangles. The"},{"text":"frontmost is represented by the larger index value."},{"text":""},{"text":" VStack {"},{"text":" Rectangle()"},{"text":" .fill(Color.yellow)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .zIndex(1) // Top layer."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .rotationEffect(.degrees(45))"},{"text":" // Here a zIndex of 0 is the default making"},{"text":" // this the bottom layer."},{"text":" }"},{"text":""},{"text":"![A screenshot showing two overlapping rectangles. The frontmost view is"},{"text":"represented by the larger zIndex value.](SwiftUI-View-zIndex.png)"},{"text":""},{"text":"- Parameter value: A relative front-to-back ordering for this view; the"},{"text":" default is `0`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zIndex"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutValue(key:value:)"],"names":{"title":"layoutValue(key:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a value with a custom layout property."},{"text":""},{"text":"Use this method to set a value for a custom property that"},{"text":"you define with ``LayoutValueKey``. For example, if you define"},{"text":"a `Flexibility` key, you can set the key on a ``Text`` view"},{"text":"using the key's type and a value:"},{"text":""},{"text":" Text(\"Another View\")"},{"text":" .layoutValue(key: Flexibility.self, value: 3)"},{"text":""},{"text":"For convenience, you might define a method that does this in an"},{"text":"extension to ``View``:"},{"text":""},{"text":" extension View {"},{"text":" func layoutFlexibility(_ value: CGFloat?) -> some View {"},{"text":" layoutValue(key: Flexibility.self, value: value)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This method makes the call site easier to read:"},{"text":""},{"text":" Text(\"Another View\")"},{"text":" .layoutFlexibility(3)"},{"text":""},{"text":"If you perform layout operations in a type that conforms to the"},{"text":"``Layout`` protocol, you can read the key's associated value for"},{"text":"each subview of your custom layout type. Do this by indexing the"},{"text":"subview's proxy with the key. For more information, see"},{"text":"``LayoutValueKey``."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The type of the key that you want to set a value for."},{"text":" Create the key as a type that conforms to the ``LayoutValueKey``"},{"text":" protocol."},{"text":" - value: The value to assign to the key for this view."},{"text":" The value must be of the type that you establish for the key's"},{"text":" associated value when you implement the key's"},{"text":" ``LayoutValueKey/defaultValue`` property."},{"text":""},{"text":"- Returns: A view that has the specified value for the specified key."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"LayoutValueKey","rhsPrecise":"s:7SwiftUI14LayoutValueKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LayoutValueKey","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","multilineTextAlignment(_:)"],"names":{"title":"multilineTextAlignment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the alignment of a text view that contains multiple lines of text."},{"text":""},{"text":"Use this modifier to set an alignment for a multiline block of text."},{"text":"For example, the modifier centers the contents of the following"},{"text":"``Text`` view:"},{"text":""},{"text":" Text(\"This is a block of text that shows up in a text element as multiple lines.\\(\"\\n\") Here we have chosen to center this text.\")"},{"text":" .frame(width: 200)"},{"text":" .multilineTextAlignment(.center)"},{"text":""},{"text":"The text in the above example spans more than one line because:"},{"text":""},{"text":"* The newline character introduces a line break."},{"text":"* The frame modifier limits the space available to the text view, and"},{"text":" by default a text view wraps lines that don't fit in the available"},{"text":" width. As a result, the text before the explicit line break wraps to"},{"text":" three lines, and the text after uses two lines."},{"text":""},{"text":"The modifier applies the alignment to the all the lines of text in"},{"text":"the view, regardless of why wrapping occurs:"},{"text":""},{"text":"![A block of text that spans 5 lines. The lines of text are center-aligned.](View-multilineTextAlignment-1-iOS)"},{"text":""},{"text":"The modifier has no effect on a ``Text`` view that contains only one"},{"text":"line of text, because a text view has a width that exactly matches the"},{"text":"width of its widest line. If you want to align an entire text view"},{"text":"rather than its contents, set the aligment of its container, like a"},{"text":"``VStack`` or a frame that you create with the"},{"text":"``View/frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)``"},{"text":"modifier."},{"text":""},{"text":"> Note: You can use this modifier to control the alignment of a ``Text``"},{"text":" view that you create with the ``Text/init(_:style:)`` initializer"},{"text":" to display localized dates and times, including when the view uses"},{"text":" only a single line, but only when that view appears in a widget."},{"text":""},{"text":"The modifier also affects the content alignment of other text container"},{"text":"types, like ``TextEditor`` and ``TextField``. In those cases, the"},{"text":"modifier sets the alignment even when the view contains only a single"},{"text":"line because view's width isn't dictated by the width of the text it"},{"text":"contains."},{"text":""},{"text":"The modifier operates by setting the"},{"text":"``EnvironmentValues/multilineTextAlignment`` value in the environment,"},{"text":"so it affects all the text containers in the modified view hierarchy."},{"text":"For example, you can apply the modifier to a ``VStack`` to"},{"text":"configure all the text views inside the stack."},{"text":""},{"text":"- Parameter alignment: A value that you use to align multiple lines of"},{"text":" text within a view."},{"text":""},{"text":"- Returns: A view that aligns the lines of multiline ``Text`` instances"},{"text":" it contains."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","truncationMode(_:)"],"names":{"title":"truncationMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"truncationMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the truncation mode for lines of text that are too long to fit in"},{"text":"the available space."},{"text":""},{"text":"Use the `truncationMode(_:)` modifier to determine whether text in a"},{"text":"long line is truncated at the beginning, middle, or end. Truncation is"},{"text":"indicated by adding an ellipsis (…) to the line when removing text to"},{"text":"indicate to readers that text is missing."},{"text":""},{"text":"In the example below, the bounds of text view constrains the amount of"},{"text":"text that the view displays and the `truncationMode(_:)` specifies from"},{"text":"which direction and where to display the truncation indicator:"},{"text":""},{"text":" Text(\"This is a block of text that will show up in a text element as multiple lines. The text will fill the available space, and then, eventually, be truncated.\")"},{"text":" .frame(width: 150, height: 150)"},{"text":" .truncationMode(.tail)"},{"text":""},{"text":"![A screenshot showing the effect of truncation mode on text in a"},{"text":"view.](SwiftUI-view-truncationMode.png)"},{"text":""},{"text":"- Parameter mode: The truncation mode that specifies where to truncate"},{"text":" the text within the text view, if needed. You can truncate at the"},{"text":" beginning, middle, or end of the text view."},{"text":""},{"text":"- Returns: A view that truncates text at different points in a line"},{"text":" depending on the mode you select."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"truncationMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineSpacing(_:)"],"names":{"title":"lineSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the amount of space between lines of text in this view."},{"text":""},{"text":"Use `lineSpacing(_:)` to set the amount of spacing from the bottom of"},{"text":"one line to the top of the next for text elements in the view."},{"text":""},{"text":"In the ``Text`` view in the example below, 10 points separate the bottom"},{"text":"of one line to the top of the next as the text field wraps inside this"},{"text":"view. Applying `lineSpacing(_:)` to a view hierarchy applies the line"},{"text":"spacing to all text elements contained in the view."},{"text":""},{"text":" Text(\"This is a string in a TextField with 10 point spacing applied between the bottom of one line and the top of the next.\")"},{"text":" .frame(width: 200, height: 200, alignment: .leading)"},{"text":" .lineSpacing(10)"},{"text":""},{"text":"![A screenshot showing the effects of setting line spacing on the text"},{"text":"in a view.](SwiftUI-view-lineSpacing.png)"},{"text":""},{"text":"- Parameter lineSpacing: The amount of space between the bottom of one"},{"text":" line and the top of the next line in points."}]},"functionSignature":{"parameters":[{"name":"lineSpacing","declarationFragments":[{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"lineSpacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsTightening(_:)"],"names":{"title":"allowsTightening(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsTightening"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether text in this view can compress the space between characters"},{"text":"when necessary to fit text in a line."},{"text":""},{"text":"Use `allowsTightening(_:)` to enable the compression of inter-character"},{"text":"spacing of text in a view to try to fit the text in the view's bounds."},{"text":""},{"text":"In the example below, two identically configured text views show the"},{"text":"effects of `allowsTightening(_:)` on the compression of the spacing"},{"text":"between characters:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"This is a wide text element\")"},{"text":" .font(.body)"},{"text":" .frame(width: 200, height: 50, alignment: .leading)"},{"text":" .lineLimit(1)"},{"text":" .allowsTightening(true)"},{"text":""},{"text":" Text(\"This is a wide text element\")"},{"text":" .font(.body)"},{"text":" .frame(width: 200, height: 50, alignment: .leading)"},{"text":" .lineLimit(1)"},{"text":" .allowsTightening(false)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of enabling text tightening in a"},{"text":"view.](SwiftUI-view-allowsTightening.png)"},{"text":""},{"text":"- Parameter flag: A Boolean value that indicates whether the space"},{"text":" between characters compresses when necessary."},{"text":""},{"text":"- Returns: A view that can compress the space between characters when"},{"text":" necessary to fit text in a line."}]},"functionSignature":{"parameters":[{"name":"flag","declarationFragments":[{"kind":"identifier","spelling":"flag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsTightening"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"flag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","minimumScaleFactor(_:)"],"names":{"title":"minimumScaleFactor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minimumScaleFactor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the minimum amount that text in this view scales down to fit in the"},{"text":"available space."},{"text":""},{"text":"Use the `minimumScaleFactor(_:)` modifier if the text you place in a"},{"text":"view doesn't fit and it's okay if the text shrinks to accommodate. For"},{"text":"example, a label with a minimum scale factor of `0.5` draws its text in"},{"text":"a font size as small as half of the actual font if needed."},{"text":""},{"text":"In the example below, the ``HStack`` contains a ``Text`` label with a"},{"text":"line limit of `1`, that is next to a ``TextField``. To allow the label"},{"text":"to fit into the available space, the `minimumScaleFactor(_:)` modifier"},{"text":"shrinks the text as needed to fit into the available space."},{"text":""},{"text":" HStack {"},{"text":" Text(\"This is a long label that will be scaled to fit:\")"},{"text":" .lineLimit(1)"},{"text":" .minimumScaleFactor(0.5)"},{"text":" TextField(\"My Long Text Field\", text: $myTextField)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of setting a minimumScaleFactor on"},{"text":"text in a view.](SwiftUI-View-minimumScaleFactor.png)"},{"text":""},{"text":"- Parameter factor: A fraction between 0 and 1 (inclusive) you use to"},{"text":" specify the minimum amount of text scaling that this view permits."},{"text":""},{"text":"- Returns: A view that limits the amount of text downscaling."}]},"functionSignature":{"parameters":[{"name":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minimumScaleFactor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textCase(_:)"],"names":{"title":"textCase(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a transform for the case of the text contained in this view when"},{"text":"displayed."},{"text":""},{"text":"The default value is `nil`, displaying the text without any case"},{"text":"changes."},{"text":""},{"text":"- Parameter textCase: One of the ``Text/Case`` enumerations; the"},{"text":" default is `nil`."},{"text":"- Returns: A view that transforms the case of the text."}]},"functionSignature":{"parameters":[{"name":"textCase","declarationFragments":[{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textCase"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typesettingLanguage(_:isEnabled:)"],"names":{"title":"typesettingLanguage(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Specifies the language for typesetting."},{"text":""},{"text":"In some cases `Text` may contain text of a particular language which"},{"text":"doesn't match the device UI language. In that case it's useful to"},{"text":"specify a language so line height, line breaking and spacing will"},{"text":"respect the script used for that language. For example:"},{"text":""},{"text":" Text(verbatim: \"แอปเปิล\")"},{"text":" .typesettingLanguage(.init(languageCode: .thai))"},{"text":""},{"text":"Note: this language does not affect text localization."},{"text":""},{"text":"- Parameters:"},{"text":" - language: The explicit language to use for typesetting."},{"text":" - isEnabled: A Boolean value that indicates whether text language is"},{"text":" added"},{"text":"- Returns: A view with the typesetting language set to the value you"},{"text":" supply."}]},"functionSignature":{"parameters":[{"name":"language","declarationFragments":[{"kind":"identifier","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typesettingLanguage(_:isEnabled:)"],"names":{"title":"typesettingLanguage(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Specifies the language for typesetting."},{"text":""},{"text":"In some cases `Text` may contain text of a particular language which"},{"text":"doesn't match the device UI language. In that case it's useful to"},{"text":"specify a language so line height, line breaking and spacing will"},{"text":"respect the script used for that language. For example:"},{"text":""},{"text":" Text(verbatim: \"แอปเปิล\").typesettingLanguage("},{"text":" .explicit(.init(languageCode: .thai)))"},{"text":""},{"text":"Note: this language does not affect text localized localization."},{"text":""},{"text":"- Parameters:"},{"text":" - language: The language to use for typesetting."},{"text":" - isEnabled: A Boolean value that indicates whether text language is"},{"text":" added"},{"text":"- Returns: A view with the typesetting language set to the value you"},{"text":" supply."}]},"functionSignature":{"parameters":[{"name":"language","declarationFragments":[{"kind":"identifier","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineLimit(_:)"],"names":{"title":"lineLimit(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the maximum number of lines that text can occupy in this view."},{"text":""},{"text":"Use this modifier to cap the number of lines that an individual text"},{"text":"element can display."},{"text":""},{"text":"The line limit applies to all ``Text`` instances within a hierarchy. For"},{"text":"example, an ``HStack`` with multiple pieces of text longer than three"},{"text":"lines caps each piece of text to three lines rather than capping the"},{"text":"total number of lines across the ``HStack``."},{"text":""},{"text":"In the example below, the modifier limits the very long"},{"text":"line in the ``Text`` element to the 2 lines that fit within the view's"},{"text":"bounds:"},{"text":""},{"text":" Text(\"This is a long string that demonstrates the effect of SwiftUI's lineLimit(:_) operator.\")"},{"text":" .frame(width: 200, height: 200, alignment: .leading)"},{"text":" .lineLimit(2)"},{"text":""},{"text":"![A screenshot showing showing the effect of the line limit operator on"},{"text":"a very long string in a view.](SwiftUI-view-lineLimit.png)"},{"text":""},{"text":"- Parameter number: The line limit. If `nil`, no line limit applies."},{"text":""},{"text":"- Returns: A view that limits the number of lines that ``Text``"},{"text":" instances display."}]},"functionSignature":{"parameters":[{"name":"number","declarationFragments":[{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"number"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineLimit(_:reservesSpace:)"],"names":{"title":"lineLimit(_:reservesSpace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a limit for the number of lines text can occupy in this view."},{"text":""},{"text":"Use this modifier to specify a limit to the lines that a"},{"text":"``Text`` or a vertical ``TextField`` may occupy. If passed a"},{"text":"value of true for the `reservesSpace` parameter, and the text of such"},{"text":"views occupies less space than the provided limit, that view expands"},{"text":"to occupy the minimum number of lines. When the text occupies"},{"text":"more space than the provided limit, a ``Text`` view truncates its"},{"text":"content while a ``TextField`` becomes scrollable."},{"text":""},{"text":" GroupBox {"},{"text":" Text(\"Title\")"},{"text":" .font(.headline)"},{"text":" .lineLimit(2, reservesSpace: true)"},{"text":" Text(\"Subtitle\")"},{"text":" .font(.subheadline)"},{"text":" .lineLimit(4, reservesSpace: true)"},{"text":" }"},{"text":""},{"text":"- Parameter limit: The line limit."},{"text":"- Parameter reservesSpace: Whether text reserves space so that"},{"text":" it always occupies the height required to display the specified"},{"text":" number of lines."}]},"functionSignature":{"parameters":[{"name":"limit","declarationFragments":[{"kind":"identifier","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"reservesSpace","declarationFragments":[{"kind":"identifier","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alignmentGuide(_:computeValue:)"],"names":{"title":"alignmentGuide(_:computeValue:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's horizontal alignment."},{"text":""},{"text":"Use `alignmentGuide(_:computeValue:)` to calculate specific offsets"},{"text":"to reposition views in relationship to one another. You can return a"},{"text":"constant or can use the ``ViewDimensions`` argument to the closure to"},{"text":"calculate a return value."},{"text":""},{"text":"In the example below, the ``HStack`` is offset by a constant of 50"},{"text":"points to the right of center:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Today's Weather\")"},{"text":" .font(.title)"},{"text":" .border(.gray)"},{"text":" HStack {"},{"text":" Text(\"🌧\")"},{"text":" Text(\"Rain & Thunderstorms\")"},{"text":" Text(\"⛈\")"},{"text":" }"},{"text":" .alignmentGuide(HorizontalAlignment.center) { _ in 50 }"},{"text":" .border(.gray)"},{"text":" }"},{"text":" .border(.gray)"},{"text":""},{"text":"Changing the alignment of one view may have effects on surrounding"},{"text":"views. Here the offset values inside a stack and its contained views is"},{"text":"the difference of their absolute offsets."},{"text":""},{"text":"![A view showing the two emoji offset from a text element using a"},{"text":"horizontal alignment guide.](SwiftUI-View-HAlignmentGuide.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - g: A ``HorizontalAlignment`` value at which to base the offset."},{"text":" - computeValue: A closure that returns the offset value to apply to"},{"text":" this view."},{"text":""},{"text":"- Returns: A view modified with respect to its horizontal alignment"},{"text":" according to the computation performed in the method's closure."}]},"functionSignature":{"parameters":[{"name":"g","declarationFragments":[{"kind":"identifier","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"computeValue","declarationFragments":[{"kind":"identifier","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alignmentGuide(_:computeValue:)"],"names":{"title":"alignmentGuide(_:computeValue:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's vertical alignment."},{"text":""},{"text":"Use `alignmentGuide(_:computeValue:)` to calculate specific offsets"},{"text":"to reposition views in relationship to one another. You can return a"},{"text":"constant or can use the ``ViewDimensions`` argument to the closure to"},{"text":"calculate a return value."},{"text":""},{"text":"In the example below, the weather emoji are offset 20 points from the"},{"text":"vertical center of the ``HStack``."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Today's Weather\")"},{"text":" .font(.title)"},{"text":" .border(.gray)"},{"text":""},{"text":" HStack {"},{"text":" Text(\"🌧\")"},{"text":" .alignmentGuide(VerticalAlignment.center) { _ in -20 }"},{"text":" .border(.gray)"},{"text":" Text(\"Rain & Thunderstorms\")"},{"text":" .border(.gray)"},{"text":" Text(\"⛈\")"},{"text":" .alignmentGuide(VerticalAlignment.center) { _ in 20 }"},{"text":" .border(.gray)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Changing the alignment of one view may have effects on surrounding"},{"text":"views. Here the offset values inside a stack and its contained views is"},{"text":"the difference of their absolute offsets."},{"text":""},{"text":"![A view showing the two emoji offset from a text element using a"},{"text":"vertical alignment guide.](SwiftUI-View-VAlignmentGuide.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - g: A ``VerticalAlignment`` value at which to base the offset."},{"text":" - computeValue: A closure that returns the offset value to apply to"},{"text":" this view."},{"text":""},{"text":"- Returns: A view modified with respect to its vertical alignment"},{"text":" according to the computation performed in the method's closure."}]},"functionSignature":{"parameters":[{"name":"g","declarationFragments":[{"kind":"identifier","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"computeValue","declarationFragments":[{"kind":"identifier","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundStyle(_:)"],"names":{"title":"backgroundStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the specified style to render backgrounds within the view."},{"text":""},{"text":"The following example uses this modifier to set the"},{"text":"``EnvironmentValues/backgroundStyle`` environment value to a"},{"text":"``ShapeStyle/blue`` color that includes a subtle ``Color/gradient``."},{"text":"SwiftUI fills the ``Circle`` shape that acts as a background element"},{"text":"with this style:"},{"text":""},{"text":" Image(systemName: \"swift\")"},{"text":" .padding()"},{"text":" .background(in: Circle())"},{"text":" .backgroundStyle(.blue.gradient)"},{"text":""},{"text":"![An image of the Swift logo inside a circle that's blue with a slight"},{"text":"linear gradient. The blue color is slightly lighter at the top of the"},{"text":"circle and slightly darker at the bottom.](View-backgroundStyle-1-iOS)"},{"text":""},{"text":"To restore the default background style, set the"},{"text":"``EnvironmentValues/backgroundStyle`` environment value to"},{"text":"`nil` using the ``View/environment(_:_:)`` modifer:"},{"text":""},{"text":" .environment(\\.backgroundStyle, nil)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:)"],"names":{"title":"foregroundStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a view's foreground elements to use a given style."},{"text":""},{"text":"Use this method to style"},{"text":"foreground content like text, shapes, and template images"},{"text":"(including symbols):"},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"triangle.fill\")"},{"text":" Text(\"Hello, world!\")"},{"text":" RoundedRectangle(cornerRadius: 5)"},{"text":" .frame(width: 40, height: 20)"},{"text":" }"},{"text":" .foregroundStyle(.teal)"},{"text":""},{"text":"The example above creates a row of ``ShapeStyle/teal`` foreground"},{"text":"elements:"},{"text":""},{"text":"![A screenshot of a teal triangle, string, and rounded"},{"text":"rectangle.](View-foregroundStyle-1)"},{"text":""},{"text":"You can use any style that conforms to the ``ShapeStyle`` protocol,"},{"text":"like the ``ShapeStyle/teal`` color in the example above, or the"},{"text":"``ShapeStyle/linearGradient(colors:startPoint:endPoint:)`` gradient"},{"text":"shown below:"},{"text":""},{"text":" Text(\"Gradient Text\")"},{"text":" .font(.largeTitle)"},{"text":" .foregroundStyle("},{"text":" .linearGradient("},{"text":" colors: [.yellow, .blue],"},{"text":" startPoint: .top,"},{"text":" endPoint: .bottom"},{"text":" )"},{"text":" )"},{"text":""},{"text":"![A screenshot of the words Gradient Text, with letters that"},{"text":" appear yellow at the top, and transition to blue"},{"text":" toward the bottom.](View-foregroundStyle-2)"},{"text":""},{"text":"> Tip: If you want to fill a single ``Shape`` instance with a style,"},{"text":"use the ``Shape/fill(style:)`` shape modifier instead because it's more"},{"text":"efficient."},{"text":""},{"text":"SwiftUI creates a context-dependent render for a given style."},{"text":"For example, a ``Color`` that you load from an asset catalog"},{"text":"can have different light and dark appearances, while some styles"},{"text":"also vary by platform."},{"text":""},{"text":"Hierarchical foreground styles like ``ShapeStyle/secondary``"},{"text":"don't impose a style of their own, but instead modify other styles."},{"text":"In particular, they modify the primary"},{"text":"level of the current foreground style to the degree given by"},{"text":"the hierarchical style's name."},{"text":"To find the current foreground style to modify, SwiftUI looks for"},{"text":"the innermost containing style that you apply with the"},{"text":"`foregroundStyle(_:)` or the ``View/foregroundColor(_:)`` modifier."},{"text":"If you haven't specified a style, SwiftUI uses the default foreground"},{"text":"style, as in the following example:"},{"text":""},{"text":" VStack(alignment: .leading) {"},{"text":" Label(\"Primary\", systemImage: \"1.square.fill\")"},{"text":" Label(\"Secondary\", systemImage: \"2.square.fill\")"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":""},{"text":"![A screenshot of two labels with the text primary and secondary."},{"text":"The first appears in a brighter shade than the"},{"text":"second, both in a grayscale color.](View-foregroundStyle-3)"},{"text":""},{"text":"If you add a foreground style on the enclosing"},{"text":"``VStack``, the hierarchical styling responds accordingly:"},{"text":""},{"text":" VStack(alignment: .leading) {"},{"text":" Label(\"Primary\", systemImage: \"1.square.fill\")"},{"text":" Label(\"Secondary\", systemImage: \"2.square.fill\")"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":" .foregroundStyle(.blue)"},{"text":""},{"text":"![A screenshot of two labels with the text primary and secondary."},{"text":"The first appears in a brighter shade than the"},{"text":"second, both tinted blue.](View-foregroundStyle-4)"},{"text":""},{"text":"When you apply a custom style to a view, the view disables the vibrancy"},{"text":"effect for foreground elements in that view, or in any of its child"},{"text":"views, that it would otherwise gain from adding a background material"},{"text":"--- for example, using the ``View/background(_:ignoresSafeAreaEdges:)``"},{"text":"modifier. However, hierarchical styles applied to the default foreground"},{"text":"don't disable vibrancy."},{"text":""},{"text":"- Parameter style: The color or pattern to use when filling in the"},{"text":" foreground elements. To indicate a specific value, use ``Color`` or"},{"text":" ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":""},{"text":"- Returns: A view that uses the given foreground style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:_:)"],"names":{"title":"foregroundStyle(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the primary and secondary levels of the foreground"},{"text":"style in the child view."},{"text":""},{"text":"SwiftUI uses these styles when rendering child views"},{"text":"that don't have an explicit rendering style, like images,"},{"text":"text, shapes, and so on."},{"text":""},{"text":"Symbol images within the view hierarchy use the"},{"text":"``SymbolRenderingMode/palette`` rendering mode when you apply this"},{"text":"modifier, if you don't explicitly specify another mode."},{"text":""},{"text":"- Parameters:"},{"text":" - primary: The primary color or pattern to use when filling in"},{"text":" the foreground elements. To indicate a specific value, use ``Color``"},{"text":" or ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":" - secondary: The secondary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":""},{"text":"- Returns: A view that uses the given foreground styles."}]},"functionSignature":{"parameters":[{"name":"primary","declarationFragments":[{"kind":"identifier","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"}]},{"name":"secondary","declarationFragments":[{"kind":"identifier","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S1","index":0,"depth":1},{"name":"S2","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S1","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S2","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:_:_:)"],"names":{"title":"foregroundStyle(_:_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S3"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the primary, secondary, and tertiary levels of"},{"text":"the foreground style."},{"text":""},{"text":"SwiftUI uses these styles when rendering child views"},{"text":"that don't have an explicit rendering style, like images,"},{"text":"text, shapes, and so on."},{"text":""},{"text":"Symbol images within the view hierarchy use the"},{"text":"``SymbolRenderingMode/palette`` rendering mode when you apply this"},{"text":"modifier, if you don't explicitly specify another mode."},{"text":""},{"text":"- Parameters:"},{"text":" - primary: The primary color or pattern to use when filling in"},{"text":" the foreground elements. To indicate a specific value, use ``Color``"},{"text":" or ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":" - secondary: The secondary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":" - tertiary: The tertiary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":""},{"text":"- Returns: A view that uses the given foreground styles."}]},"functionSignature":{"parameters":[{"name":"primary","declarationFragments":[{"kind":"identifier","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"}]},{"name":"secondary","declarationFragments":[{"kind":"identifier","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"}]},{"name":"tertiary","declarationFragments":[{"kind":"identifier","spelling":"tertiary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S3"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S1","index":0,"depth":1},{"name":"S2","index":1,"depth":1},{"name":"S3","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S1","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S2","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S3","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S3"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tertiary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformPreference(_:_:)"],"names":{"title":"transformPreference(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a transformation to a preference value."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"callback","declarationFragments":[{"kind":"identifier","spelling":"callback"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"callback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","preference(key:value:)"],"names":{"title":"preference(key:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the given preference."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","luminanceToAlpha()"],"names":{"title":"luminanceToAlpha()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"luminanceToAlpha"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a luminance to alpha effect to this view."},{"text":""},{"text":"Use this modifier to create a semitransparent mask, with the opacity of"},{"text":"each part of the modified view controlled by the luminance of the"},{"text":"corresponding part of the original view. Regions of lower luminance"},{"text":"become more transparent, while higher luminance yields greater"},{"text":"opacity."},{"text":""},{"text":"In particular, the modifier maps the red, green, and blue components of"},{"text":"each input pixel's color to a grayscale value, and that value becomes"},{"text":"the alpha component of a black pixel in the output. This modifier"},{"text":"produces an effect that's equivalent to using the `feColorMatrix`"},{"text":"filter primitive with the `luminanceToAlpha` type attribute, as defined"},{"text":"by the [Scalable Vector Graphics (SVG) 2](https://www.w3.org/TR/SVG2/)"},{"text":"specification."},{"text":""},{"text":"The example below defines a `Palette` view as a series of rectangles,"},{"text":"each composed as a ``Color`` with a particular white value,"},{"text":"and then displays two versions of the palette over a blue background:"},{"text":""},{"text":" struct Palette: View {"},{"text":" var body: some View {"},{"text":" HStack(spacing: 0) {"},{"text":" ForEach(0..<10) { index in"},{"text":" Color(white: Double(index) / Double(9))"},{"text":" .frame(width: 20, height: 40)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct LuminanceToAlphaExample: View {"},{"text":" var body: some View {"},{"text":" VStack(spacing: 20) {"},{"text":" Palette()"},{"text":""},{"text":" Palette()"},{"text":" .luminanceToAlpha()"},{"text":" }"},{"text":" .padding()"},{"text":" .background(.blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The unmodified version of the palette contains rectangles that range"},{"text":"from solid black to solid white, thus with increasing luminance. The"},{"text":"second version of the palette, which has the `luminanceToAlpha()`"},{"text":"modifier applied, allows the background to show through in an amount"},{"text":"that corresponds inversely to the luminance of the input."},{"text":""},{"text":"![A screenshot of a blue background with two wide rectangles on it,"},{"text":"arranged vertically, with one above the other. Each is composed of a"},{"text":"series of smaller rectangles arranged from left to right. The component"},{"text":"rectangles of the first large rectangle range from black to white as"},{"text":"you scan from left to right, with each successive component rectangle"},{"text":"slightly whiter than the previous. The component rectangles of the"},{"text":"second large rectangle range from fully transparent to fully opaque,"},{"text":"scanning in the same direction.](View-luminanceToAlpha-1-iOS)"},{"text":""},{"text":"- Returns: A view with the luminance to alpha effect applied."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"luminanceToAlpha"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:alignment:)"],"names":{"title":"containerRelativeFrame(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use this modifier to specify a size for a view's width, height,"},{"text":"or both that is dependent on the size of the nearest container."},{"text":"Different things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:count:span:spacing:alignment:)``"},{"text":"modifier to size a view such that multiple views will be visible in"},{"text":"the container. When using this modifier, the count refers to the"},{"text":"total number of rows or columns that the length of the container size"},{"text":"in a particular axis should be divided into. The span refers to the"},{"text":"number of rows or columns that the modified view should actually"},{"text":"occupy. Thus the size of the element can be described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:_:)``"},{"text":"modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:count:span:spacing:alignment:)"],"names":{"title":"containerRelativeFrame(_:count:span:spacing:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:)`` modifier"},{"text":"to specify a size for a view's width, height, or both that"},{"text":"is dependent on the size of the nearest container. Different"},{"text":"things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use this modifier to size a view such that multiple views will be"},{"text":"visible in the container. When using this modifier, the count refers"},{"text":"to the total number of rows or columns that the length of the"},{"text":"container size in a particular axis should be divided into. The span"},{"text":"refers to the number of rows or columns that the modified view"},{"text":"should actually occupy. Thus the size of the element can be"},{"text":"described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:_:)``"},{"text":"modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"span","declarationFragments":[{"kind":"identifier","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:alignment:_:)"],"names":{"title":"containerRelativeFrame(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:)`` modifier"},{"text":"to specify a size for a view's width, height, or both that"},{"text":"is dependent on the size of the nearest container. Different"},{"text":"things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:count:span:spacing:alignment:)``"},{"text":"modifier to size a view such that multiple views will be"},{"text":"visible in the container. When using this modifier, the count"},{"text":"refers to the total number of rows or columns that the length of"},{"text":"the container size in a particular axis should be divided into."},{"text":"The span refers to the number of rows or columns that the modified"},{"text":"view should actually occupy. Thus the size of the element can"},{"text":"be described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use this modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onAppear(perform:)"],"names":{"title":"onAppear(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform before this view appears."},{"text":""},{"text":"The exact moment that SwiftUI calls this method"},{"text":"depends on the specific view type that you apply it to, but"},{"text":"the `action` closure completes before the first"},{"text":"rendered frame appears."},{"text":""},{"text":"- Parameter action: The action to perform. If `action` is `nil`, the"},{"text":" call has no effect."},{"text":""},{"text":"- Returns: A view that triggers `action` before it appears."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDisappear(perform:)"],"names":{"title":"onDisappear(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDisappear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform after this view disappears."},{"text":""},{"text":"The exact moment that SwiftUI calls this method"},{"text":"depends on the specific view type that you apply it to, but"},{"text":"the `action` closure doesn't execute until the view"},{"text":"disappears from the interface."},{"text":""},{"text":"- Parameter action: The action to perform. If `action` is `nil`, the"},{"text":" call has no effect."},{"text":""},{"text":"- Returns: A view that triggers `action` after it disappears."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDisappear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformEnvironment(_:transform:)"],"names":{"title":"transformEnvironment(_:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEnvironment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Transforms the environment value of the specified key path with the"},{"text":"given function."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEnvironment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tag(_:includeOptional:)"],"names":{"title":"tag(_:includeOptional:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the unique tag value of this view."},{"text":""},{"text":"Use this modifier to differentiate among certain selectable views,"},{"text":"like the possible values of a ``Picker`` or the tabs of a ``TabView``."},{"text":"Tag values can be of any type that conforms to the"},{"text":" protocol."},{"text":""},{"text":"This modifier will write the tag value for the type `V`, as well as"},{"text":"`Optional` if `includeOptional` is enabled. Containers checking for"},{"text":"tags of either type will see the value as set."},{"text":""},{"text":"In the example below, the ``ForEach`` loop in the ``Picker`` view"},{"text":"builder iterates over the `Flavor` enumeration. It extracts the string"},{"text":"value of each enumeration element for use in constructing the row"},{"text":"label, and uses the enumeration value as input to the `tag(_:)`"},{"text":"modifier."},{"text":""},{"text":" struct FlavorPicker: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" case chocolate, vanilla, strawberry"},{"text":" var id: Self { self }"},{"text":" }"},{"text":""},{"text":" @State private var selectedFlavor: Flavor? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue)"},{"text":" .tag(flavor)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The selection type of the ``Picker`` is an `Optional` and so it"},{"text":"will look for tags on its contents of `Optional` type. Since the"},{"text":"tag modifier defaults to having `includeOptional` enabled, even though"},{"text":"the tag for each option is a non-optional `Flavor`, the tag modifier"},{"text":"writes values for both the non-optional, and optional versions of the"},{"text":"value, allowing the contents to be selectable by the ``Picker``."},{"text":""},{"text":"A ``ForEach`` automatically applies a default tag to each enumerated"},{"text":"view using the `id` parameter of the corresponding element. If"},{"text":"the element's `id` parameter and the picker's `selection` input"},{"text":"have exactly the same type, or the same type but optional, you can omit"},{"text":"the explicit tag modifier."},{"text":""},{"text":"To see examples that don't require an explicit tag, see ``Picker``."},{"text":""},{"text":"- Parameter tag: A "},{"text":" value to use as the view's tag."},{"text":"- Parameter includeOptional: If the tag value for `Optional` should"},{"text":" also be set."},{"text":""},{"text":"- Returns: A view with the specified tag set."}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"includeOptional","declarationFragments":[{"kind":"identifier","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dynamicTypeSize(_:)"],"names":{"title":"dynamicTypeSize(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dynamicTypeSize"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the Dynamic Type size within the view to the given value."},{"text":""},{"text":"As an example, you can set a Dynamic Type size in `ContentView` to be"},{"text":"``DynamicTypeSize/xLarge`` (this can be useful in previews to see your"},{"text":"content at a different size) like this:"},{"text":""},{"text":" ContentView()"},{"text":" .dynamicTypeSize(.xLarge)"},{"text":""},{"text":"If a Dynamic Type size range is applied after setting a value,"},{"text":"the value is limited by that range:"},{"text":""},{"text":" ContentView() // Dynamic Type size will be .large"},{"text":" .dynamicTypeSize(...DynamicTypeSize.large)"},{"text":" .dynamicTypeSize(.xLarge)"},{"text":""},{"text":"When limiting the Dynamic Type size, consider if adding a"},{"text":"large content view with ``View/accessibilityShowsLargeContentViewer()``"},{"text":"would be appropriate."},{"text":""},{"text":"- Parameter size: The size to set for this view."},{"text":""},{"text":"- Returns: A view that sets the Dynamic Type size to the specified"},{"text":" `size`."}]},"functionSignature":{"parameters":[{"name":"size","declarationFragments":[{"kind":"identifier","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dynamicTypeSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerValue(_:_:)"],"names":{"title":"containerValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a particular container value of a view."},{"text":""},{"text":"Use this modifier to set one of the writable properties of the"},{"text":"``ContainerValues`` structure, including custom values that you"},{"text":"create."},{"text":""},{"text":"Like preferences, container values are able to be read by views above"},{"text":"the view they're set on. Unlike preferences, however, container values"},{"text":"don't have merging behavior because they don't escape their closest"},{"text":"container. In the following example, the container value is set"},{"text":"on the contained view, but is dropped when it reaches the containing"},{"text":" ``VStack``."},{"text":""},{"text":" VStack {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1) // myCustomValue = 1"},{"text":" Text(\"B\")"},{"text":" .containerValue(\\.myCustomValue, 2) // myCustomValue = 2"},{"text":" // container values are unaffected by views that aren't containers:"},{"text":" Text(\"C\")"},{"text":" .containerValue(\\.myCustomValue, 3)"},{"text":" .padding() // myCustomValue = 3"},{"text":" } // myCustomValue = its default value, values do not escape the container"},{"text":""},{"text":"Even if a stack has only one child, container values still won't"},{"text":"be readable outside of the `VStack`. Container values don't escape a"},{"text":"container even if the container has only one child."},{"text":""},{"text":"In this example, a direct subview writes a container value, allowing its"},{"text":"direct container view to read it back:"},{"text":""},{"text":" @ContentBuilder var content: some View {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1)"},{"text":" }"},{"text":""},{"text":" ForEach(subviews: content) { subview in"},{"text":" Text(\"value = \\(subview.containerValues.myCustomValue)\") // shows \"value = 1\""},{"text":" }"},{"text":""},{"text":"However in the next example, the wrapping `VStack` means the `Text` view"},{"text":"is not a direct subview of the outer container, so that container cannot"},{"text":"read the changed value:"},{"text":""},{"text":" @ContentBuilder var containedContent: some View {"},{"text":" VStack {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" ForEach(subviews: containedContent) { subviews in"},{"text":" Text(\"value = \\(subview.containerValues.myCustomValue)\") // shows the default value"},{"text":" }"},{"text":""},{"text":"The container values modifier can also be used to modify mutable"},{"text":"subfields of container values."},{"text":""},{"text":" struct PinPosition {"},{"text":" var rotation: Double = 0"},{"text":" var xOffset: Int = 0"},{"text":" }"},{"text":""},{"text":" extension ContainerValues {"},{"text":" @Entry var pinPosition: PinPosition = .init()"},{"text":" }"},{"text":""},{"text":" // pinPosition.rotation = 0, pinPosition.xOffset = 3"},{"text":" Text(\"A\").containerValue(\\.pinPosition.xOffset, 3)"},{"text":""},{"text":" // pinPosition.rotation = 10, pinPosition.xOffset = 5"},{"text":" Text(\"B\")"},{"text":" .containerValue(\\.pinPosition.rotation, 10)"},{"text":" .containerValue(\\.pinPosition.xOffset, 5)"},{"text":""},{"text":"This allows you to group multiple related container values into"},{"text":"structs while maintaining separate modifiers to write each value."},{"text":""},{"text":" extension View {"},{"text":" func pinRotation(_ rotation: Double) -> some View {"},{"text":" containerValue(\\.pinPosition.rotation, rotation)"},{"text":" }"},{"text":""},{"text":" func pinXOffset(_ xOffset: Int) -> some View {"},{"text":" containerValue(\\.pinPosition.xOffset, xOffset)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: A key path that indicates the property of the"},{"text":" ``ContainerValues`` structure to update."},{"text":" - value: The new value to set for the item specified by `keyPath`."},{"text":""},{"text":"- Returns: A view that has the given value set in its containerValues."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","anchorPreference(key:value:transform:)"],"names":{"title":"anchorPreference(key:value:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"anchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the specified preference key, the value is a"},{"text":"function of a geometry value tied to the current coordinate"},{"text":"space, allowing readers of the value to convert the geometry to"},{"text":"their local coordinates."},{"text":""},{"text":"- Parameters:"},{"text":" - key: the preference key type."},{"text":" - value: the geometry value in the current coordinate space."},{"text":" - transform: the function to produce the preference value."},{"text":""},{"text":"- Returns: a new version of the view that writes the preference."}]},"functionSignature":{"parameters":[{"name":"key","internalName":"_","declarationFragments":[{"kind":"identifier","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"K","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"anchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame(width:height:alignment:)"],"names":{"title":"frame(width:height:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with the specified size."},{"text":""},{"text":"Use this method to specify a fixed size for a view's width, height, or"},{"text":"both. If you only specify one of the dimensions, the resulting view"},{"text":"assumes this view's sizing behavior in the other dimension."},{"text":""},{"text":"For example, the following code lays out an ellipse in a fixed 200 by"},{"text":"100 frame. Because a shape always occupies the space offered to it by"},{"text":"the layout system, the first ellipse is 200x100 points. The second"},{"text":"ellipse is laid out in a frame with only a fixed height, so it occupies"},{"text":"that height, and whatever width the layout system offers to its parent."},{"text":""},{"text":" VStack {"},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .frame(width: 200, height: 100)"},{"text":" Ellipse()"},{"text":" .fill(Color.blue)"},{"text":" .frame(height: 100)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of frame size options: a purple"},{"text":"ellipse shows the effect of a fixed frame size, while a blue ellipse"},{"text":"shows the effect of constraining a view in one"},{"text":"dimension.](SwiftUI-View-frame-1.png)"},{"text":""},{"text":"`The alignment` parameter specifies this view's alignment within the"},{"text":"frame."},{"text":""},{"text":" Text(\"Hello world!\")"},{"text":" .frame(width: 200, height: 30, alignment: .topLeading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"In the example above, the text is positioned at the top, leading corner"},{"text":"of the frame. If the text is taller than the frame, its bounds may"},{"text":"extend beyond the bottom of the frame's bounds."},{"text":""},{"text":"![A screenshot showing the effect of frame size options on a text view"},{"text":"showing a fixed frame size with a specified"},{"text":"alignment.](SwiftUI-View-frame-2.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - width: A fixed width for the resulting view. If `width` is `nil`,"},{"text":" the resulting view assumes this view's sizing behavior."},{"text":" - height: A fixed height for the resulting view. If `height` is `nil`,"},{"text":" the resulting view assumes this view's sizing behavior."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with fixed dimensions of `width` and `height`, for the"},{"text":" parameters that are non-`nil`."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"height","declarationFragments":[{"kind":"identifier","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frameQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame()"],"names":{"title":"frame()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame."},{"text":""},{"text":"Use ``SwiftUI/View/frame(width:height:alignment:)`` or"},{"text":"``SwiftUI/View/frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)``"},{"text":"instead."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"*","message":"Please pass one or more parameters.","isUnconditionallyDeprecated":true},{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)"],"names":{"title":"frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame having the specified size"},{"text":"constraints."},{"text":""},{"text":"Always specify at least one size characteristic when calling this"},{"text":"method. Pass `nil` or leave out a characteristic to indicate that the"},{"text":"frame should adopt this view's sizing behavior, constrained by the other"},{"text":"non-`nil` arguments."},{"text":""},{"text":"The size proposed to this view is the size proposed to the frame,"},{"text":"limited by any constraints specified, and with any ideal dimensions"},{"text":"specified replacing any corresponding unspecified dimensions in the"},{"text":"proposal."},{"text":""},{"text":"If no minimum or maximum constraint is specified in a given dimension,"},{"text":"the frame adopts the sizing behavior of its child in that dimension. If"},{"text":"both constraints are specified in a dimension, the frame unconditionally"},{"text":"adopts the size proposed for it, clamped to the constraints. Otherwise,"},{"text":"the size of the frame in either dimension is:"},{"text":""},{"text":"- If a minimum constraint is specified and the size proposed for the"},{"text":" frame by the parent is less than the size of this view, the proposed"},{"text":" size, clamped to that minimum."},{"text":"- If a maximum constraint is specified and the size proposed for the"},{"text":" frame by the parent is greater than the size of this view, the"},{"text":" proposed size, clamped to that maximum."},{"text":"- Otherwise, the size of this view."},{"text":""},{"text":"- Parameters:"},{"text":" - minWidth: The minimum width of the resulting frame."},{"text":" - idealWidth: The ideal width of the resulting frame."},{"text":" - maxWidth: The maximum width of the resulting frame."},{"text":" - minHeight: The minimum height of the resulting frame."},{"text":" - idealHeight: The ideal height of the resulting frame."},{"text":" - maxHeight: The maximum height of the resulting frame."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with flexible dimensions given by the call's non-`nil`"},{"text":" parameters."}]},"functionSignature":{"parameters":[{"name":"minWidth","declarationFragments":[{"kind":"identifier","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealWidth","declarationFragments":[{"kind":"identifier","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxWidth","declarationFragments":[{"kind":"identifier","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minHeight","declarationFragments":[{"kind":"identifier","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHeight","declarationFragments":[{"kind":"identifier","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHeight","declarationFragments":[{"kind":"identifier","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textRenderer(_:)"],"names":{"title":"textRenderer(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textRenderer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view such that any text views within it will use"},{"text":"`renderer` to draw themselves."},{"text":""},{"text":"- Parameter renderer: the renderer value."},{"text":""},{"text":"- Returns: a new view that will use `renderer` to draw its text"},{"text":" views."}]},"functionSignature":{"parameters":[{"name":"renderer","declarationFragments":[{"kind":"identifier","spelling":"renderer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"TextRenderer","rhsPrecise":"s:7SwiftUI12TextRendererP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textRenderer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"renderer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextRenderer","preciseIdentifier":"s:7SwiftUI12TextRendererP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textScale(_:isEnabled:)"],"names":{"title":"textScale(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textScale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a text scale to text in the view."},{"text":""},{"text":"- Parameters:"},{"text":" - scale: The text scale to apply."},{"text":" - isEnabled: If true the text scale is applied; otherwise text scale"},{"text":" is unchanged."},{"text":"- Returns: A view with the specified text scale applied."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textScale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentShape(_:eoFill:)"],"names":{"title":"contentShape(_:eoFill:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Defines the content shape for hit testing."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: The hit testing shape for the view."},{"text":" - eoFill: A Boolean that indicates whether the shape is interpreted"},{"text":" with the even-odd winding number rule."},{"text":""},{"text":"- Returns: A view that uses the given shape for hit testing."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"eoFill","declarationFragments":[{"kind":"identifier","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentShape(_:_:eoFill:)"],"names":{"title":"contentShape(_:_:eoFill:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the content shape for this view."},{"text":""},{"text":"The content shape has a variety of uses. You can control the kind of the"},{"text":"content shape by specifying one in `kind`. The following example sets"},{"text":"the focus ring shape of the view, without affecting its shape for"},{"text":"hit-testing:"},{"text":""},{"text":" MyFocusableView()"},{"text":" .contentShape(.focusEffect, Circle())"},{"text":""},{"text":"You can apply multiple kinds of content shapes to the same view. For"},{"text":"example, apply a ``ContentShapeKinds/interaction`` shape and"},{"text":"``ContentShapeKinds/focusEffect`` shape together to set both the"},{"text":"hit-testing shape and focus ring shape on a view."},{"text":""},{"text":"## Context Menu & Drag Previews"},{"text":""},{"text":"You can control the preview shown by the system for context menus or"},{"text":"drags using the relevant content shape kind, like"},{"text":"``ContentShapeKinds/dragPreview`` and"},{"text":"``ContentShapeKinds/contextMenuPreview``."},{"text":""},{"text":"The following example creates a ``VStack`` of an ``Image`` and ``Text``"},{"text":"that has a context menu with a custom content shape:"},{"text":""},{"text":" VStack {"},{"text":" Image(\"turtlerock\")"},{"text":" .contentShape(.contextMenuPreview,"},{"text":" RoundedRectangle(cornerRadius: 10))"},{"text":" Text(\"Turtle Rock\")"},{"text":" }"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system uses the ``Image`` as the preview for"},{"text":"the context menu, applying the requested corner radius."},{"text":""},{"text":"The content shape also supports applying modifiers such as"},{"text":"``InsettableShape/inset(by:)`` to add padding."},{"text":""},{"text":"> Note: Similar to ``ContentShapeKinds/focusEffect``,"},{"text":"the ``ContentShapeKinds/contextMenuPreview`` and"},{"text":"``ContentShapeKinds/dragPreview`` content shapes do not impact the"},{"text":"hit-testing shape. In this example, someone can touch and hold anywhere"},{"text":"on the ``VStack`` to activate the menu. If you only want the ``Image``"},{"text":"to activate the menu, apply ``View/contextMenu(menuItems:)`` to the"},{"text":"``Image`` instead."},{"text":""},{"text":"- Parameters:"},{"text":" - kind: The kinds to apply to this content shape."},{"text":" - shape: The shape to use."},{"text":" - eoFill: A Boolean that indicates whether the shape is interpreted"},{"text":" with the even-odd winding number rule."},{"text":""},{"text":"- Returns: A view that uses the given shape for the specified kind."}]},"functionSignature":{"parameters":[{"name":"kind","declarationFragments":[{"kind":"identifier","spelling":"kind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"}]},{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"eoFill","declarationFragments":[{"kind":"identifier","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"kind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffect(_:options:isActive:)"],"names":{"title":"symbolEffect(_:options:isActive:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view with a symbol effect added to it."},{"text":""},{"text":"The following example adds a repeating pulse effect to two"},{"text":"symbol images:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\")"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\")"},{"text":" }"},{"text":" .symbolEffect(.pulse)"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A symbol effect to add to the view. Existing effects"},{"text":" added by ancestors of the view are preserved, but may be"},{"text":" overridden by the new effect. Added effects will be applied"},{"text":" to the ``SwiftUI/Image`` views contained by the child view."},{"text":" - options: A set of options that configure how effects apply to"},{"text":" symbol-based images."},{"text":" - isActive: whether the effect is active or inactive."},{"text":""},{"text":"- Returns: a copy of the view with a symbol effect added."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"}]},{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"IndefiniteSymbolEffect","rhsPrecise":"s:7Symbols22IndefiniteSymbolEffectP"},{"kind":"conformance","lhs":"T","rhs":"SymbolEffect","rhsPrecise":"s:7Symbols12SymbolEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"IndefiniteSymbolEffect","preciseIdentifier":"s:7Symbols22IndefiniteSymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SymbolEffect","preciseIdentifier":"s:7Symbols12SymbolEffectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffect(_:options:value:)"],"names":{"title":"symbolEffect(_:options:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"U"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view with a symbol effect added to it."},{"text":""},{"text":"The following example adds a bounce effect to two symbol"},{"text":"images, the animation will play each time `counter` changes:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\")"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\")"},{"text":" }"},{"text":" .symbolEffect(.bounce, value: counter)"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A symbol effect to add to the view. Existing effects"},{"text":" added by ancestors of the view are preserved, but may be"},{"text":" overridden by the new effect. Added effects will be applied"},{"text":" to the ``SwiftUI/Image`` views contained by the child view."},{"text":" - options: A set of options that configure how effects apply to"},{"text":" symbol-based images."},{"text":" - value: the value to monitor for changes, the animation is"},{"text":" triggered each time the value changes."},{"text":""},{"text":"- Returns: a copy of the view with a symbol effect added."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"U","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"DiscreteSymbolEffect","rhsPrecise":"s:7Symbols20DiscreteSymbolEffectP"},{"kind":"conformance","lhs":"T","rhs":"SymbolEffect","rhsPrecise":"s:7Symbols12SymbolEffectP"},{"kind":"conformance","lhs":"U","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"U"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DiscreteSymbolEffect","preciseIdentifier":"s:7Symbols20DiscreteSymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SymbolEffect","preciseIdentifier":"s:7Symbols12SymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:value:)"],"names":{"title":"animation(_:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to this view when the specified value"},{"text":"changes."},{"text":""},{"text":"- Parameters:"},{"text":" - animation: The animation to apply. If `animation` is `nil`, the view"},{"text":" doesn't animate."},{"text":" - value: A value to monitor for changes."},{"text":""},{"text":"- Returns: A view that applies `animation` to this view whenever `value`"},{"text":" changes."}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerShape(_:)"],"names":{"title":"containerShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the container shape to use for any container relative shape or"},{"text":"concentric rectangle within this view."},{"text":""},{"text":"The example below defines a view that shows its content with a rounded"},{"text":"rectangle background and the same container shape. Any"},{"text":"``ContainerRelativeShape`` within the `content` matches the rounded"},{"text":"rectangle shape from this container inset as appropriate. Any"},{"text":"``ConcentricRectangle`` within the `content` will match the corners to"},{"text":"be concentric to the container corners."},{"text":""},{"text":" struct PlatterContainer : View {"},{"text":" @ContentBuilder var content: Content"},{"text":" var body: some View {"},{"text":" content"},{"text":" .padding()"},{"text":" .containerShape(shape)"},{"text":" .background(shape.fill(.background))"},{"text":" }"},{"text":" var shape: RoundedRectangle { RoundedRectangle(cornerRadius: 20) }"},{"text":" }"},{"text":""},{"text":"- SeeAlso: ``View/containerShape(_:)-(T)``"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some RoundedRectangularShape","rhs":"RoundedRectangularShape","rhsPrecise":"s:7SwiftUI23RoundedRectangularShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:perform:)"],"names":{"title":"onChange(of:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Performs an action when a specified value changes."},{"text":""},{"text":"Use this modifier to run a closure when a value like"},{"text":"an ``Environment`` value or a ``Binding`` changes."},{"text":"For example, you can clear a cache when you notice"},{"text":"that the view's scene moves to the background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Environment(\\.scenePhase) private var scenePhase"},{"text":" @StateObject private var cache = DataCache()"},{"text":""},{"text":" var body: some View {"},{"text":" MyView()"},{"text":" .onChange(of: scenePhase) { newScenePhase in"},{"text":" if newScenePhase == .background {"},{"text":" cache.empty()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI passes the new value into the closure. You can also capture the"},{"text":"previous value to compare it to the new value. For example, in"},{"text":"the following code example, `PlayerView` passes both the old and new"},{"text":"values to the model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) { [playState] newState in"},{"text":" model.playStateDidChange(from: playState, to: newState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"Important: This modifier is deprecated and has been replaced with new"},{"text":"versions that include either zero or two parameters within the closure,"},{"text":"unlike this version that includes one parameter. This deprecated version"},{"text":"and the new versions behave differently with respect to how they execute"},{"text":"the action closure, specifically when the closure captures other values."},{"text":"Using the deprecated API, the closure is run with captured values that"},{"text":"represent the \"old\" state. With the replacement API, the closure is run"},{"text":"with captured values that represent the \"new\" state, which makes it"},{"text":"easier to correctly perform updates that rely on supplementary values"},{"text":"(that may or may not have changed) in addition to the changed value that"},{"text":"triggered the action."},{"text":""},{"text":"- Important: This modifier is deprecated and has been replaced with new"},{"text":" versions that include either zero or two parameters within the"},{"text":" closure, unlike this version that includes one parameter. This"},{"text":" deprecated version and the new versions behave differently with"},{"text":" respect to how they execute the action closure, specifically when the"},{"text":" closure captures other values. Using the deprecated API, the closure"},{"text":" is run with captured values that represent the \"old\" state. With the"},{"text":" replacement API, the closure is run with captured values that"},{"text":" represent the \"new\" state, which makes it easier to correctly perform"},{"text":" updates that rely on supplementary values (that may or may not have"},{"text":" changed) in addition to the changed value that triggered the action."},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check when determining whether to run the"},{"text":" closure. The value must conform to the"},{"text":" "},{"text":" protocol."},{"text":" - action: A closure to run when the value changes. The closure"},{"text":" takes a `newValue` parameter that indicates the updated"},{"text":" value."},{"text":""},{"text":"- Returns: A view that runs an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":17,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":14,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":17,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"visionOS","deprecated":{"major":1,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":10,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:initial:_:)"],"names":{"title":"onChange(of:initial:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a modifier for this view that fires an action when a specific"},{"text":"value changes."},{"text":""},{"text":"You can use `onChange` to trigger a side effect as the result of a"},{"text":"value changing, such as an `Environment` key or a `Binding`."},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value. The old and new observed values are"},{"text":"passed into the closure. In the following code example, `PlayerView`"},{"text":"passes both the old and new values to the model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) { oldState, newState in"},{"text":" model.playStateDidChange(from: oldState, to: newState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check against when determining whether"},{"text":" to run the closure."},{"text":" - initial: Whether the action should be run when this view initially"},{"text":" appears."},{"text":" - action: A closure to run when the value changes."},{"text":" - term oldValue: The old value that failed the comparison check (or the"},{"text":" initial value when requested)."},{"text":" - term newValue: The new value that failed the comparison check."},{"text":""},{"text":"- Returns: A view that fires an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"initial","declarationFragments":[{"kind":"identifier","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:initial:_:)"],"names":{"title":"onChange(of:initial:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a modifier for this view that fires an action when a specific"},{"text":"value changes."},{"text":""},{"text":"You can use `onChange` to trigger a side effect as the result of a"},{"text":"value changing, such as an `Environment` key or a `Binding`."},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value. In the following code example,"},{"text":"`PlayerView` calls into its model when `playState` changes model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) {"},{"text":" model.playStateDidChange(state: playState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check against when determining whether"},{"text":" to run the closure."},{"text":" - initial: Whether the action should be run when this view initially"},{"text":" appears."},{"text":" - action: A closure to run when the value changes."},{"text":""},{"text":"- Returns: A view that fires an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"initial","declarationFragments":[{"kind":"identifier","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityShowsLargeContentViewer(_:)"],"names":{"title":"accessibilityShowsLargeContentViewer(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a custom large content view to be shown by"},{"text":"the large content viewer."},{"text":""},{"text":"Rely on the large content viewer only in situations"},{"text":"where items must remain small due to unavoidable"},{"text":"design constraints. For example, buttons in a tab bar"},{"text":"remain small to leave more room for the main app content."},{"text":""},{"text":"The following example shows how to add a custom large"},{"text":"content view:"},{"text":""},{"text":" var body: some View {"},{"text":" Button(action: newMessage) {"},{"text":" Image(systemName: \"plus\")"},{"text":" }"},{"text":" .accessibilityShowsLargeContentViewer {"},{"text":" Label(\"New Message\", systemImage: \"plus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Don’t use the large content viewer as a replacement for proper"},{"text":"Dynamic Type support. For example, Dynamic Type allows items"},{"text":"in a list to grow or shrink vertically to accommodate the user’s preferred"},{"text":"font size. Rely on the large content viewer only in situations where"},{"text":"items must remain small due to unavoidable design constraints."},{"text":""},{"text":"For example, views that have their Dynamic Type size constrained"},{"text":"with ``View/dynamicTypeSize(_:)`` may require a"},{"text":"large content view."}]},"functionSignature":{"parameters":[{"name":"largeContentView","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largeContentView"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"largeContentView"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityShowsLargeContentViewer()"],"names":{"title":"accessibilityShowsLargeContentViewer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a default large content view to be shown by"},{"text":"the large content viewer."},{"text":""},{"text":"Rely on the large content viewer only in situations"},{"text":"where items must remain small due to unavoidable"},{"text":"design constraints. For example, buttons in a tab bar"},{"text":"remain small to leave more room for the main app content."},{"text":""},{"text":"The following example shows how to add a custom large"},{"text":"content view:"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"New Message\", action: newMessage)"},{"text":" .accessibilityShowsLargeContentViewer()"},{"text":" }"},{"text":""},{"text":"Don’t use the large content viewer as a replacement for proper"},{"text":"Dynamic Type support. For example, Dynamic Type allows items"},{"text":"in a list to grow or shrink vertically to accommodate the user’s preferred"},{"text":"font size. Rely on the large content viewer only in situations where"},{"text":"items must remain small due to unavoidable design constraints."},{"text":""},{"text":"For example, views that have their Dynamic Type size constrained"},{"text":"with ``View/dynamicTypeSize(_:)`` may require a"},{"text":"large content view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerShape(_:)"],"names":{"title":"containerShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the container shape to use for any container relative shape"},{"text":"within this view."},{"text":""},{"text":"The example below defines a view that shows its content with a rounded"},{"text":"rectangle background and the same container shape. Any"},{"text":"``ContainerRelativeShape`` within the `content` matches the rounded"},{"text":"rectangle shape from this container inset as appropriate."},{"text":""},{"text":" struct PlatterContainer : View {"},{"text":" @ContentBuilder var content: Content"},{"text":" var body: some View {"},{"text":" content"},{"text":" .padding()"},{"text":" .containerShape(shape)"},{"text":" .background(shape.fill(.background))"},{"text":" }"},{"text":" var shape: RoundedRectangle { RoundedRectangle(cornerRadius: 20) }"},{"text":" }"},{"text":""},{"text":"- SeeAlso: ``View/containerShape(_:)-(RoundedRectangularShape)``"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","phaseAnimator(_:trigger:content:animation:)"],"names":{"title":"phaseAnimator(_:trigger:content:animation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Animates effects that you apply to a view over a sequence of phases"},{"text":"that change based on a trigger."},{"text":""},{"text":"When the modified view first appears, this modifier renders its"},{"text":"`content` closure using the first phase as input to the closure,"},{"text":"along with a proxy for the modified view. Apply effects to the"},{"text":"proxy --- and thus to the modified view --- in a way that's appropriate"},{"text":"for the first phase value."},{"text":""},{"text":"Later, when the value of the `trigger` input changes, the modifier"},{"text":"provides its `content` closure with the value of the second phase."},{"text":"Update the effects that you apply to the proxy view accordingly,"},{"text":"and the modifier animates the change for you. The next time the"},{"text":"`trigger` input changes, this procedure repeats using successive phases"},{"text":"until reaching the last phase, at which point the modifier loops back"},{"text":"to the first phase."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The sequence of phases to cycle through. Ensure that the"},{"text":" sequence isn't empty. If it is, SwiftUI logs a runtime warning and"},{"text":" also returns a visual warning as the output view."},{"text":" - trigger: A value whose changes cause the animator to use the"},{"text":" next phase."},{"text":" - content: A content builder closure that takes two parameters: a proxy"},{"text":" value representing the modified view and the current phase."},{"text":" You can apply effects to the proxy based on the current phase."},{"text":" - animation: A closure that takes the current phase as input. Return"},{"text":" the animation to use when transitioning to the next phase. If you"},{"text":" return `nil`, the transition doesn't animate. If you don't set this"},{"text":" parameter, SwiftUI uses a default animation."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Phase","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Phase","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"sameType","lhs":"Phase","rhs":"(some Sequence).Element"},{"kind":"conformance","lhs":"some Sequence","rhs":"Sequence","rhsPrecise":"s:ST"},{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"? = { _ in .default }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","phaseAnimator(_:content:animation:)"],"names":{"title":"phaseAnimator(_:content:animation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Animates effects that you apply to a view over a sequence of phases"},{"text":"that change continuously."},{"text":""},{"text":"When the modified view first appears, this modifier renders its"},{"text":"`content` closure using the first phase as input to the closure,"},{"text":"along with a proxy for the modified view. Apply effects to the"},{"text":"proxy --- and thus to the modified view --- in a way that's appropriate"},{"text":"for the first phase value."},{"text":""},{"text":"Right away, the modifier provides its `content` closure with the value"},{"text":"of the second phase. Update the effects that you apply to the proxy"},{"text":"view accordingly, and the modifier animates the change for you."},{"text":"As soon as the animation completes, the procedure repeats using"},{"text":"successive phases until reaching the last phase, at which point the"},{"text":"modifier loops back to the first phase."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The sequence of phases to cycle through. Ensure that the"},{"text":" sequence isn't empty. If it is, SwiftUI logs a runtime warning and"},{"text":" also returns a visual warning as the output view."},{"text":" - content: A content builder closure that takes two parameters: a proxy"},{"text":" value representing the modified view and the current phase."},{"text":" You can apply effects to the proxy based on the current phase."},{"text":" - animation: A closure that takes the current phase as input. Return"},{"text":" the animation to use when transitioning to the next phase. If you"},{"text":" return `nil`, the transition doesn't animate. If you don't set this"},{"text":" parameter, SwiftUI uses a default animation."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Phase","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Phase","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"sameType","lhs":"Phase","rhs":"(some Sequence).Element"},{"kind":"conformance","lhs":"some Sequence","rhs":"Sequence","rhsPrecise":"s:ST"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"? = { _ in .default }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:perform:)"],"names":{"title":"onTapGesture(count:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the view or container `count` times."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"In the example below, the color of the heart images changes to a random"},{"text":"color from the `colors` array whenever the user clicks or taps on the"},{"text":"view twice:"},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" let colors: [Color] = [.gray, .red, .orange, .yellow,"},{"text":" .green, .blue, .purple, .pink]"},{"text":" @State private var fgColor: Color = .gray"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 200, height: 200)"},{"text":" .foregroundColor(fgColor)"},{"text":" .onTapGesture(count: 2) {"},{"text":" fgColor = colors.randomElement()!"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a view of a heart.](SwiftUI-View-TapGesture.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - action: The action to perform."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutPriority(_:)"],"names":{"title":"layoutPriority(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutPriority"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the priority by which a parent layout should apportion space to"},{"text":"this child."},{"text":""},{"text":"Views typically have a default priority of `0` which causes space to be"},{"text":"apportioned evenly to all sibling views. Raising a view's layout"},{"text":"priority encourages the higher priority view to shrink later when the"},{"text":"group is shrunk and stretch sooner when the group is stretched."},{"text":""},{"text":" HStack {"},{"text":" Text(\"This is a moderately long string.\")"},{"text":" .font(.largeTitle)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Text(\"This is a higher priority string.\")"},{"text":" .font(.largeTitle)"},{"text":" .layoutPriority(1)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":""},{"text":"In the example above, the first ``Text`` element has the default"},{"text":"priority `0` which causes its view to shrink dramatically due to the"},{"text":"higher priority of the second ``Text`` element, even though all of their"},{"text":"other attributes (font, font size and character count) are the same."},{"text":""},{"text":"![A screenshot showing twoText views different layout"},{"text":"priorities.](SwiftUI-View-layoutPriority.png)"},{"text":""},{"text":"A parent layout offers the child views with the highest layout priority"},{"text":"all the space offered to the parent minus the minimum space required for"},{"text":"all its lower-priority children."},{"text":""},{"text":"- Parameter value: The priority by which a parent layout apportions"},{"text":" space to the child."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutPriority"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environment(_:)"],"names":{"title":"environment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Places an observable object in the view's environment."},{"text":""},{"text":"Use this modifier to place an object that you declare with the"},{"text":""},{"text":"macro into a view's environment. For example, you can add an instance"},{"text":"of a custom observable `Profile` class to the environment of a"},{"text":"`ContentView`:"},{"text":""},{"text":" @Observable class Profile { ... }"},{"text":""},{"text":" struct RootView: View {"},{"text":" @State private var currentProfile: Profile?"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .environment(currentProfile)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You then read the object inside `ContentView` or one of its descendants"},{"text":"using the ``Environment`` property wrapper:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Environment(Profile.self) private var currentProfile: Profile"},{"text":""},{"text":" var body: some View { ... }"},{"text":" }"},{"text":""},{"text":"This modifier affects the given view, as well as that view's descendant"},{"text":"views. It has no effect outside the view hierarchy on which you call it."},{"text":"The environment of a given view hierarchy holds only one observable"},{"text":"object of a given type."},{"text":""},{"text":"- Note: This modifier takes an object that conforms to the"},{"text":" "},{"text":" protocol. To add environment objects that conform to the"},{"text":" "},{"text":" protocol, use ``View/environmentObject(_:)`` instead."},{"text":""},{"text":"- Parameter object: The object to set for this object's type in the"},{"text":" environment, or `nil` to clear an object of this type from the"},{"text":" environment."},{"text":""},{"text":"- Returns: A view that has the specified object in its environment."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPreferenceChange(_:perform:)"],"names":{"title":"onPreferenceChange(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPreferenceChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when the specified preference key's value"},{"text":"changes."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to monitor for value changes."},{"text":" - action: The action to perform when the value for `key` changes. The"},{"text":" `action` closure passes the new value as its parameter."},{"text":""},{"text":"- Returns: A view that triggers `action` when the value for `key`"},{"text":" changes."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"},{"kind":"conformance","lhs":"K.Value","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPreferenceChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","headerProminence(_:)"],"names":{"title":"headerProminence(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"headerProminence"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the header prominence for this view."},{"text":""},{"text":"In the following example, the section header appears with increased"},{"text":"prominence:"},{"text":""},{"text":" List {"},{"text":" Section(header: Text(\"Header\")) {"},{"text":" Text(\"Row\")"},{"text":" }"},{"text":" .headerProminence(.increased)"},{"text":" }"},{"text":" .listStyle(.insetGrouped)"},{"text":""},{"text":"- Parameter prominence: The prominence to apply."}]},"functionSignature":{"parameters":[{"name":"prominence","declarationFragments":[{"kind":"identifier","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"headerProminence"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","modifier(_:)"],"names":{"title":"modifier(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a modifier to a view and returns a new view."},{"text":""},{"text":"Use this modifier to combine a ``View`` and a ``ViewModifier``, to"},{"text":"create a new view. For example, if you create a view modifier for"},{"text":"a new kind of caption with blue text surrounded by a rounded rectangle:"},{"text":""},{"text":" struct BorderedCaption: ViewModifier {"},{"text":" func body(content: Content) -> some View {"},{"text":" content"},{"text":" .font(.caption2)"},{"text":" .padding(10)"},{"text":" .overlay("},{"text":" RoundedRectangle(cornerRadius: 15)"},{"text":" .stroke(lineWidth: 1)"},{"text":" )"},{"text":" .foregroundColor(Color.blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can use ``modifier(_:)`` to extend ``View`` to create new modifier"},{"text":"for applying the `BorderedCaption` defined above:"},{"text":""},{"text":" extension View {"},{"text":" func borderedCaption() -> some View {"},{"text":" modifier(BorderedCaption())"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Then you can apply the bordered caption to any view:"},{"text":""},{"text":" Image(systemName: \"bus\")"},{"text":" .resizable()"},{"text":" .frame(width:50, height:50)"},{"text":" Text(\"Downtown Bus\")"},{"text":" .borderedCaption()"},{"text":""},{"text":"![A screenshot showing the image of a bus with a caption reading"},{"text":"Downtown Bus. A view extension, using custom a modifier, renders the"},{"text":" caption in blue text surrounded by a rounded"},{"text":" rectangle.](SwiftUI-View-ViewModifier.png)"},{"text":""},{"text":"- Parameter modifier: The modifier to apply to this view."}]},"functionSignature":{"parameters":[{"name":"modifier","declarationFragments":[{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"modifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowedDynamicRange(_:)"],"names":{"title":"allowedDynamicRange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowedDynamicRange"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view configured with the specified allowed"},{"text":"dynamic range."},{"text":""},{"text":"The following example enables HDR rendering within a view"},{"text":"hierarchy:"},{"text":""},{"text":" MyView().allowedDynamicRange(.high)"},{"text":""},{"text":"- Parameter range: the requested dynamic range, or nil to"},{"text":" restore the default allowed range."},{"text":""},{"text":"- Returns: a new view."}]},"functionSignature":{"parameters":[{"name":"range","declarationFragments":[{"kind":"identifier","spelling":"range"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowedDynamicRange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"range"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolVariant(_:)"],"names":{"title":"symbolVariant(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariant"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Makes symbols within the view show a particular variant."},{"text":""},{"text":"When you want all the"},{"text":""},{"text":"in a part of your app's user interface to use the same variant, use the"},{"text":"`symbolVariant(_:)` modifier with a ``SymbolVariants`` value, like"},{"text":"``SymbolVariants/fill-swift.type.property``:"},{"text":""},{"text":" VStack(spacing: 20) {"},{"text":" HStack(spacing: 20) {"},{"text":" Image(systemName: \"person\")"},{"text":" Image(systemName: \"folder\")"},{"text":" Image(systemName: \"gearshape\")"},{"text":" Image(systemName: \"list.bullet\")"},{"text":" }"},{"text":""},{"text":" HStack(spacing: 20) {"},{"text":" Image(systemName: \"person\")"},{"text":" Image(systemName: \"folder\")"},{"text":" Image(systemName: \"gearshape\")"},{"text":" Image(systemName: \"list.bullet\")"},{"text":" }"},{"text":" .symbolVariant(.fill) // Shows filled variants, when available."},{"text":" }"},{"text":""},{"text":"A symbol that doesn't have the specified variant remains unaffected."},{"text":"In the example above, the `list.bullet` symbol doesn't have a filled"},{"text":"variant, so the `symbolVariant(_:)` modifer has no effect."},{"text":""},{"text":"![A screenshot showing two rows of four symbols. Both rows contain a"},{"text":"person, a folder, a gear, and a bullet list. The symbols in the first"},{"text":"row are outlined. The symbols in the second row are filled, except the"},{"text":"list, which is the same in both rows.](View-symbolVariant-1)"},{"text":""},{"text":"If you apply the modifier more than once, its effects accumulate."},{"text":"Alternatively, you can apply multiple variants in one call:"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane.circle.fill\")"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane\")"},{"text":" .symbolVariant(.circle)"},{"text":" .symbolVariant(.fill)"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane\")"},{"text":" .symbolVariant(.circle.fill)"},{"text":""},{"text":"All of the labels in the code above produce the same output:"},{"text":""},{"text":"![A screenshot of a label that shows an airplane in a filled circle"},{"text":"beside the word Airplane.](View-symbolVariant-2)"},{"text":""},{"text":"You can apply all these variants in any order, but"},{"text":"if you apply more than one shape variant, the one closest to the"},{"text":"symbol takes precedence. For example, the following image uses the"},{"text":"``SymbolVariants/square-swift.type.property`` shape:"},{"text":""},{"text":" Image(systemName: \"arrow.left\")"},{"text":" .symbolVariant(.square) // This shape takes precedence."},{"text":" .symbolVariant(.circle)"},{"text":" .symbolVariant(.fill)"},{"text":""},{"text":"![A screenshot of a left arrow symbol in a filled"},{"text":"square.](View-symbolVariant-3)"},{"text":""},{"text":"To cause a symbol to ignore the variants currently in the environment,"},{"text":"directly set the ``EnvironmentValues/symbolVariants`` environment value"},{"text":"to ``SymbolVariants/none`` using the ``View/environment(_:_:)`` modifer."},{"text":""},{"text":"- Parameter variant: The variant to use for symbols. Use the values in"},{"text":" ``SymbolVariants``."},{"text":"- Returns: A view that applies the specified symbol variant or variants"},{"text":" to itself and its child views."}]},"functionSignature":{"parameters":[{"name":"variant","declarationFragments":[{"kind":"identifier","spelling":"variant"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariant"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"variant"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:alignment:)"],"names":{"title":"background(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Background"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the given view behind this view."},{"text":""},{"text":"Use `background(_:alignment:)` when you need to place one view behind"},{"text":"another, with the background view optionally aligned with a specified"},{"text":"edge of the frontmost view."},{"text":""},{"text":"The example below creates two views: the `Frontmost` view, and the"},{"text":"`DiamondBackground` view. The `Frontmost` view uses the"},{"text":"`DiamondBackground` view for the background of the image element inside"},{"text":"the `Frontmost` view's ``VStack``."},{"text":""},{"text":" struct DiamondBackground: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Rectangle()"},{"text":" .fill(.gray)"},{"text":" .frame(width: 250, height: 250, alignment: .center)"},{"text":" .rotationEffect(.degrees(45.0))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Frontmost: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Image(systemName: \"folder\")"},{"text":" .font(.system(size: 128, weight: .ultraLight))"},{"text":" .background(DiamondBackground())"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A view showing a large folder image with a gray diamond placed behind"},{"text":"it as its background view.](View-background-1)"},{"text":""},{"text":"- Parameters:"},{"text":" - background: The view to draw behind this view."},{"text":" - alignment: The alignment with a default value of"},{"text":" ``Alignment/center`` that you use to position the background view."}]},"functionSignature":{"parameters":[{"name":"background","declarationFragments":[{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Background"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Background","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Background"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"background"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(alignment:content:)"],"names":{"title":"background(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the views that you specify behind this view."},{"text":""},{"text":"Use this modifier to place one or more views behind another view."},{"text":"For example, you can place a collection of stars behind a ``Text`` view:"},{"text":""},{"text":" Text(\"ABCDEF\")"},{"text":" .background(alignment: .leading) { Star(color: .red) }"},{"text":" .background(alignment: .center) { Star(color: .green) }"},{"text":" .background(alignment: .trailing) { Star(color: .blue) }"},{"text":""},{"text":"The example above assumes that you've defined a `Star` view with a"},{"text":"parameterized color:"},{"text":""},{"text":" struct Star: View {"},{"text":" var color: Color"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"star.fill\")"},{"text":" .foregroundStyle(color)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By setting different `alignment` values for each modifier, you make the"},{"text":"stars appear in different places behind the text:"},{"text":""},{"text":"![A screenshot of the letters A, B, C, D, E, and F written in front of"},{"text":"three stars. The stars, from left to right, are red, green, and"},{"text":"blue.](View-background-2)"},{"text":""},{"text":"If you specify more than one view in the `content` closure, the modifier"},{"text":"collects all of the views in the closure into an implicit ``ZStack``,"},{"text":"taking them in order from back to front. For example, you can layer a"},{"text":"vertical bar behind a circle, with both of those behind a horizontal"},{"text":"bar:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10) // Creates a horizontal bar."},{"text":" .background {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100) // Creates a vertical bar."},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":""},{"text":"Both the background modifier and the implicit ``ZStack`` composed from"},{"text":"the background content --- the circle and the vertical bar --- use a"},{"text":"default ``Alignment/center`` alignment. The vertical bar appears"},{"text":"centered behind the circle, and both appear as a composite view centered"},{"text":"behind the horizontal bar:"},{"text":""},{"text":"![A screenshot of a circle with a horizontal blue bar layered on top"},{"text":"and a vertical green bar layered underneath. All of the items are center"},{"text":"aligned.](View-background-3)"},{"text":""},{"text":"If you specify an alignment for the background, it applies to the"},{"text":"implicit stack rather than to the individual views in the closure. You"},{"text":"can see this if you add the ``Alignment/leading`` alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10)"},{"text":" .background(alignment: .leading) {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100)"},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":""},{"text":"The vertical bar and the circle move as a unit to align the stack"},{"text":"with the leading edge of the horizontal bar, while the"},{"text":"vertical bar remains centered on the circle:"},{"text":""},{"text":"![A screenshot of a horizontal blue bar in front of a circle, which"},{"text":"is in front of a vertical green bar. The horizontal bar and the circle"},{"text":"are center aligned with each other; the left edges of the circle"},{"text":"and the horizontal are aligned.](View-background-3a)"},{"text":""},{"text":"To control the placement of individual items inside the `content`"},{"text":"closure, either use a different background modifier for each item, as"},{"text":"the earlier example of stars under text demonstrates, or add an explicit"},{"text":"``ZStack`` inside the content closure with its own alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10)"},{"text":" .background(alignment: .leading) {"},{"text":" ZStack(alignment: .leading) {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100)"},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The stack alignment ensures that the circle's leading edge aligns with"},{"text":"the vertical bar's, while the background modifier aligns the composite"},{"text":"view with the horizontal bar:"},{"text":""},{"text":"![A screenshot of a horizontal blue bar in front of a circle, which"},{"text":"is in front of a vertical green bar. All items are aligned on their"},{"text":"left edges.](View-background-4)"},{"text":""},{"text":"You can achieve layering without a background modifier by putting both"},{"text":"the modified view and the background content into a ``ZStack``. This"},{"text":"produces a simpler view hierarchy, but it changes the layout priority"},{"text":"that SwiftUI applies to the views. Use the background modifier when you"},{"text":"want the modified view to dominate the layout."},{"text":""},{"text":"If you want to specify a ``ShapeStyle`` like a"},{"text":"``HierarchicalShapeStyle`` or a ``Material`` as the background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)``."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(alignment:content:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default"},{"text":" is ``Alignment/center``."},{"text":" - content: A ``ContentBuilder`` that you use to declare the views to draw"},{"text":" behind this view, stacked in a cascading order from bottom to top."},{"text":" The last view that you list appears at the front of the stack."},{"text":""},{"text":"- Returns: A view that uses the specified content as a background."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(ignoresSafeAreaEdges:)"],"names":{"title":"background(ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to the default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:ignoresSafeAreaEdges:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style."},{"text":"For example, you can add a background to a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background()"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the teal color behind the label shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a region filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a rectangle; the"},{"text":"rectangle is filled with the background color and layered on top of a"},{"text":"larger rectangle that's filled with the color teal.](View-background-7)"},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the background,"},{"text":"use ``View/background(alignment:content:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)``."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the background. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the ``ShapeStyle/background`` shape style"},{"text":" drawn behind it."}]},"functionSignature":{"parameters":[{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:ignoresSafeAreaEdges:)"],"names":{"title":"background(_:ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a style."},{"text":""},{"text":"Use this modifier to place a type that conforms to the ``ShapeStyle``"},{"text":"protocol --- like a ``Color``, ``Material``, or"},{"text":"``HierarchicalShapeStyle`` --- behind a view. For example, you can add"},{"text":"the ``ShapeStyle/regularMaterial`` behind a ``Label``:"},{"text":""},{"text":" struct FlagLabel: View {"},{"text":" var body: some View {"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.regularMaterial)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI anchors the style to the view's bounds. For the example above,"},{"text":"the background fills the entirety of the label's frame, which includes"},{"text":"the padding:"},{"text":""},{"text":"![A screenshot of a flag symbol and the word flag layered over a"},{"text":"gray rectangle.](View-background-5)"},{"text":""},{"text":"SwiftUI limits the background style's extent to the modified view's"},{"text":"container-relative shape. You can see this effect if you constrain the"},{"text":"`FlagLabel` view with a ``View/containerShape(_:)`` modifier:"},{"text":""},{"text":" FlagLabel()"},{"text":" .containerShape(RoundedRectangle(cornerRadius: 16))"},{"text":""},{"text":"The background takes on the specified container shape:"},{"text":""},{"text":"![A screenshot of a flag symbol and the word flag layered over a"},{"text":"gray rectangle with rounded corners.](View-background-6)"},{"text":""},{"text":"By default, the background ignores safe area insets on all edges, but"},{"text":"you can provide a specific set of edges to ignore, or an empty set to"},{"text":"respect safe area insets on all edges:"},{"text":""},{"text":" Rectangle()"},{"text":" .background("},{"text":" .regularMaterial,"},{"text":" ignoresSafeAreaEdges: []) // Ignore no safe area insets."},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the background,"},{"text":"use ``View/background(alignment:content:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)`` ."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: An instance of a type that conforms to ``ShapeStyle`` that"},{"text":" SwiftUI draws behind the modified view."},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the background. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the specified style drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(in:fillStyle:)"],"names":{"title":"background(in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a shape filled with the"},{"text":"default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:in:fillStyle:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style"},{"text":"to fill the specified shape. For example, you can create a ``Path``"},{"text":"that outlines a trapezoid:"},{"text":""},{"text":" let trapezoid = Path { path in"},{"text":" path.move(to: .zero)"},{"text":" path.addLine(to: CGPoint(x: 90, y: 0))"},{"text":" path.addLine(to: CGPoint(x: 80, y: 50))"},{"text":" path.addLine(to: CGPoint(x: 10, y: 50))"},{"text":" }"},{"text":""},{"text":"Then you can use that shape as a background for a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(in: trapezoid)"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the fill color shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a shape filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a trapezoid; the"},{"text":"trapezoid is filled with the background color and layered on top of"},{"text":"a rectangle filled with the color teal.](View-background-B)"},{"text":""},{"text":"To create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws behind the view using the ``ShapeStyle/background``"},{"text":" shape style."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:in:fillStyle:)"],"names":{"title":"background(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a shape filled with a style."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``Shape``"},{"text":"protocol behind a view. Specify the ``ShapeStyle`` that's used to"},{"text":"fill the shape. For example, you can create a ``Path`` that outlines"},{"text":"a trapezoid:"},{"text":""},{"text":" let trapezoid = Path { path in"},{"text":" path.move(to: .zero)"},{"text":" path.addLine(to: CGPoint(x: 90, y: 0))"},{"text":" path.addLine(to: CGPoint(x: 80, y: 50))"},{"text":" path.addLine(to: CGPoint(x: 10, y: 50))"},{"text":" }"},{"text":""},{"text":"Then you can use that shape as a background for a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.teal, in: trapezoid)"},{"text":""},{"text":"The ``ShapeStyle/teal`` color fills the shape:"},{"text":""},{"text":"![A screenshot of the flag icon and the word flag inside a trapezoid;"},{"text":"The trapezoid is filled with the color teal.](View-background-A)"},{"text":""},{"text":"This modifier is a convenience method for placing a single shape behind a view. To"},{"text":"create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to the fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws behind the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(in:fillStyle:)"],"names":{"title":"background(in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to an insettable shape filled with the"},{"text":"default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:in:fillStyle:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style"},{"text":"to fill the specified insettable shape. For example, you can use"},{"text":"a ``RoundedRectangle`` as a background on a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(in: RoundedRectangle(cornerRadius: 8))"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the fill color shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a shape filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a rectangle with"},{"text":"rounded corners; the rectangle is filled with the background color, and"},{"text":"is layered on top of a larger rectangle that's filled with the color"},{"text":"teal.](View-background-9)"},{"text":""},{"text":"To create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: An instance of a type that conforms to ``InsettableShape``"},{"text":" that SwiftUI draws behind the view using the"},{"text":" ``ShapeStyle/background`` shape style."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified insettable shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:in:fillStyle:)"],"names":{"title":"background(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to an insettable shape filled with a style."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the"},{"text":"``InsettableShape`` protocol --- like a ``Rectangle``, ``Circle``, or"},{"text":"``Capsule`` --- behind a view. Specify the ``ShapeStyle`` that's used to"},{"text":"fill the shape. For example, you can place a ``RoundedRectangle``"},{"text":"behind a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.teal, in: RoundedRectangle(cornerRadius: 8))"},{"text":""},{"text":"The ``ShapeStyle/teal`` color fills the shape:"},{"text":""},{"text":"![A screenshot of the flag icon and word on a teal rectangle with"},{"text":"rounded corners.](View-background-8)"},{"text":""},{"text":"This modifier is a convenience method for placing a single shape behind a view. To"},{"text":"create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to the fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``InsettableShape``"},{"text":" that SwiftUI draws behind the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified insettable shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentTransition(_:)"],"names":{"title":"contentTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the view to use a given transition as its method of animating"},{"text":"changes to the contents of its views."},{"text":""},{"text":"This modifier allows you to perform a transition that animates a change"},{"text":"within a single view. The provided ``ContentTransition`` can present an"},{"text":"opacity animation for content changes, an interpolated animation of"},{"text":"the content's paths as they change, or perform no animation at all."},{"text":""},{"text":"> Tip: The `contentTransition(_:)` modifier only has an effect within"},{"text":"the context of an ``Animation``."},{"text":""},{"text":"In the following example, a ``Button`` changes the color and font size"},{"text":"of a ``Text`` view. Since both of these properties apply to the paths of"},{"text":"the text, the ``ContentTransition/interpolate`` transition can animate a"},{"text":"gradual change to these properties through the entire transition. By"},{"text":"contrast, the ``ContentTransition/opacity`` transition would simply fade"},{"text":"between the start and end states."},{"text":""},{"text":" private static let font1 = Font.system(size: 20)"},{"text":" private static let font2 = Font.system(size: 45)"},{"text":""},{"text":" @State private var color = Color.red"},{"text":" @State private var currentFont = font1"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Content transition\")"},{"text":" .foregroundColor(color)"},{"text":" .font(currentFont)"},{"text":" .contentTransition(.interpolate)"},{"text":" Spacer()"},{"text":" Button(\"Change\") {"},{"text":" withAnimation(Animation.easeInOut(duration: 5.0)) {"},{"text":" color = (color == .red) ? .green : .red"},{"text":" currentFont = (currentFont == font1) ? font2 : font1"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses an ease-in–ease-out animation with a five-second"},{"text":"duration to make it easier to see the effect of the interpolation. The"},{"text":"figure below shows the `Text` at the beginning of the animation,"},{"text":"halfway through, and at the end."},{"text":""},{"text":"| Time | Display |"},{"text":"| ------- | ------- |"},{"text":"| Start | ![The text Content transition in a small red font.](ContentTransition-1) |"},{"text":"| Middle | ![The text Content transition in a medium brown font.](ContentTransition-2) |"},{"text":"| End | ![The text Content transition in a large green font.](ContentTransition-3) |"},{"text":""},{"text":"To control whether content transitions use GPU-accelerated rendering,"},{"text":"set the value of the"},{"text":"``EnvironmentValues/contentTransitionAddsDrawingGroup`` environment"},{"text":"variable."},{"text":""},{"text":"- parameter transition: The transition to apply when animating the"},{"text":" content change."}]},"functionSignature":{"parameters":[{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","visualEffect(_:)"],"names":{"title":"visualEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"visualEffect"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies effects to this view, while providing access to layout"},{"text":"information through a geometry proxy."},{"text":""},{"text":"You return new effects by calling functions on the first argument"},{"text":"provided to the `effect` closure. In this example, `ContentView` is"},{"text":"offset by its own size, causing its top left corner to appear where the"},{"text":"bottom right corner was originally located:"},{"text":"```swift"},{"text":"ContentView()"},{"text":" .visualEffect { content, geometryProxy in"},{"text":" content.offset(geometryProxy.size)"},{"text":" }"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A closure that returns the effect to be applied. The first"},{"text":" argument provided to the closure is a placeholder representing"},{"text":" this view. The second argument is a `GeometryProxy`."},{"text":"- Returns: A view with the effect applied."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"visualEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10saturationyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","saturation(_:)"],"names":{"title":"saturation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"saturation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adjusts the color saturation of this view."},{"text":""},{"text":"Use color saturation to increase or decrease the intensity of colors in"},{"text":"a view."},{"text":""},{"text":"The example below shows a series of red squares with their saturation"},{"text":"increasing from 0 (gray) to 100% (fully-red) in 20% increments:"},{"text":""},{"text":" struct Saturation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .saturation(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of saturation adjustments in 20%"},{"text":"increments from gray at 0% to fully-red at"},{"text":"100%.](SwiftUI-View-saturation.png)"},{"text":""},{"text":"- SeeAlso: `contrast(_:)`"},{"text":"- Parameter amount: The amount of saturation to apply to this view."},{"text":""},{"text":"- Returns: A view that adjusts the saturation of this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"saturation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","ignoresSafeArea(_:edges:)"],"names":{"title":"ignoresSafeArea(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Expands the safe area of a view."},{"text":""},{"text":"By default, the SwiftUI layout system sizes and positions views to"},{"text":"avoid certain safe areas. This ensures that system content like the"},{"text":"software keyboard or edges of the device don’t obstruct your"},{"text":"views. To extend your content into these regions, you can ignore"},{"text":"safe areas on specific edges by applying this modifier."},{"text":""},{"text":"When expanding the safe area, the SwiftUI layout system proposes"},{"text":"the expanded size to the view. If your view has a fixed size,"},{"text":"the alignment of the view may not be what you expect."},{"text":""},{"text":"By default, SwiftUI resolves the alignment based on the"},{"text":"edges being ignored. For example, providing only the bottom"},{"text":"edge will result in a bottom alignment being used. You can use"},{"text":"the ``View/ignoresSafeArea(_:alignment:)`` modifier to"},{"text":"explicitly configure the alignment."},{"text":""},{"text":"For examples of how to use this modifier,"},{"text":"see ."},{"text":""},{"text":"- Parameters:"},{"text":" - regions: The regions to expand the view's safe area into. The"},{"text":" modifier expands into all safe area region types by default."},{"text":" - edges: The set of edges to expand. Any edges that you"},{"text":" don't include in this set remain unchanged. The set includes all"},{"text":" edges by default."},{"text":""},{"text":"- Returns: A view with an expanded safe area."}]},"functionSignature":{"parameters":[{"name":"regions","declarationFragments":[{"kind":"identifier","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","ignoresSafeArea(_:edges:alignment:)"],"names":{"title":"ignoresSafeArea(_:edges:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Expands the safe area of a view aligning content within the new"},{"text":"bounds using the provided alignment."},{"text":""},{"text":"By default, the SwiftUI layout system sizes and positions views to"},{"text":"avoid certain safe areas. This ensures that system content like the"},{"text":"software keyboard or edges of the device don’t obstruct your"},{"text":"views. To extend your content into these regions, you can ignore"},{"text":"safe areas on specific edges by applying this modifier."},{"text":""},{"text":"When expanding the safe area, the SwiftUI layout system proposes"},{"text":"the expanded size to the view. If your view has a fixed size,"},{"text":"you can use the alignment property to determine how the fixed"},{"text":"size view should be aligned in the expanded bounds."},{"text":""},{"text":"For examples of how to use this modifier,"},{"text":"see ."},{"text":""},{"text":"- Parameters:"},{"text":" - regions: The regions to expand the view's safe area into. The"},{"text":" modifier expands into all safe area region types by default."},{"text":" - edges: The set of edges to expand. Any edges that you"},{"text":" don't include in this set remain unchanged. The set includes all"},{"text":" edges by default."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with an expanded safe area."}]},"functionSignature":{"parameters":[{"name":"regions","declarationFragments":[{"kind":"identifier","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsHitTesting(_:)"],"names":{"title":"allowsHitTesting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsHitTesting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Configures whether this view participates in hit test operations."}]},"functionSignature":{"parameters":[{"name":"enabled","declarationFragments":[{"kind":"identifier","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsHitTesting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","imageScale(_:)"],"names":{"title":"imageScale(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"imageScale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales images within the view according to one of the relative sizes"},{"text":"available including small, medium, and large images sizes."},{"text":""},{"text":"The example below shows the relative scaling effect. The system renders"},{"text":"the image at a relative size based on the available space and"},{"text":"configuration options of the image it is scaling."},{"text":""},{"text":" VStack {"},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.small)"},{"text":" Text(\"Small\")"},{"text":" }"},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.medium)"},{"text":" Text(\"Medium\")"},{"text":" }"},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.large)"},{"text":" Text(\"Large\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A view showing small, medium, and large hearts rendered at a size"},{"text":"relative to the available space.](SwiftUI-View-imageScale.png)"},{"text":""},{"text":"- Parameter scale: One of the relative sizes provided by the image scale"},{"text":" enumeration."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"imageScale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","font(_:)"],"names":{"title":"font(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default font for text in this view."},{"text":""},{"text":"Use `font(_:)` to apply a specific font to all of the text in a view."},{"text":""},{"text":"The example below shows the effects of applying fonts to individual"},{"text":"views and to view hierarchies. Font information flows down the view"},{"text":"hierarchy as part of the environment, and remains in effect unless"},{"text":"overridden at the level of an individual view or view container."},{"text":""},{"text":"Here, the outermost ``VStack`` applies a 16-point system font as a"},{"text":"default font to views contained in that ``VStack``. Inside that stack,"},{"text":"the example applies a ``Font/largeTitle`` font to just the first text"},{"text":"view; this explicitly overrides the default. The remaining stack and the"},{"text":"views contained with it continue to use the 16-point system font set by"},{"text":"their containing view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Font applied to a text view.\")"},{"text":" .font(.largeTitle)"},{"text":""},{"text":" VStack {"},{"text":" Text(\"These 2 text views have the same font\")"},{"text":" Text(\"applied to their parent hierarchy\")"},{"text":" }"},{"text":" }"},{"text":" .font(.system(size: 16, weight: .light, design: .default))"},{"text":""},{"text":"![A screenshot showing the application fonts to an individual text field"},{"text":"and view hierarchy.](SwiftUI-view-font.png)"},{"text":""},{"text":"- Parameter font: The default font to use in this view."},{"text":""},{"text":"- Returns: A view with the default font set to the value you supply."}]},"functionSignature":{"parameters":[{"name":"font","declarationFragments":[{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"font"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","monospacedDigit()"],"names":{"title":"monospacedDigit()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospacedDigit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the fonts of all child views to use fixed-width digits, if"},{"text":"possible, while leaving other characters proportionally spaced."},{"text":""},{"text":"Using fixed-width digits allows you to easily align numbers of the"},{"text":"same size in a table-like arrangement. This feature is also known as"},{"text":"\"tabular figures\" or \"tabular numbers.\""},{"text":""},{"text":"This modifier only affects numeric characters, and leaves all other"},{"text":"characters unchanged."},{"text":""},{"text":"The following example shows the effect of `monospacedDigit()` on"},{"text":"multiple child views. The example consists of two ``VStack`` views"},{"text":"inside an ``HStack``. Each `VStack` contains two ``Button`` views, with"},{"text":"the second `VStack` applying the `monospacedDigit()` modifier to its"},{"text":"contents. As a result, the digits in the buttons in the trailing"},{"text":"`VStack` are the same width, which in turn gives the buttons equal widths."},{"text":""},{"text":" var body: some View {"},{"text":" HStack(alignment: .top) {"},{"text":" VStack(alignment: .leading) {"},{"text":" Button(\"Delete 111 messages\") {}"},{"text":" Button(\"Delete 222 messages\") {}"},{"text":" }"},{"text":" VStack(alignment: .leading) {"},{"text":" Button(\"Delete 111 messages\") {}"},{"text":" Button(\"Delete 222 messages\") {}"},{"text":" }"},{"text":" .monospacedDigit()"},{"text":" }"},{"text":" .padding()"},{"text":" .navigationTitle(\"monospacedDigit() Child Views\")"},{"text":" }"},{"text":""},{"text":"![A macOS window showing four buttons, arranged in two columns. Each"},{"text":"column's buttons contain the same text: Delete 111 messages and Delete"},{"text":"222 messages. The right column's buttons have fixed width, or"},{"text":"monospaced, digits, which make the 1 characters wider than they would be"},{"text":"in a proportional font. Because the 1 and 2 characters are the same"},{"text":"width in the right column, the buttons are the same"},{"text":"width.](View-monospacedDigit-1)"},{"text":""},{"text":"If a child view's base font doesn't support fixed-width digits, the font"},{"text":"remains unchanged."},{"text":""},{"text":"- Returns: A view whose child views' fonts use fixed-width numeric"},{"text":"characters, while leaving other characters proportionally spaced."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospacedDigit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","monospaced(_:)"],"names":{"title":"monospaced(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospaced"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the fonts of all child views to use the fixed-width variant of"},{"text":"the current font, if possible."},{"text":""},{"text":"If a child view's base font doesn't support fixed-width, the font"},{"text":"remains unchanged."},{"text":""},{"text":"- Returns: A view whose child views' fonts use fixed-width characters,"},{"text":"while leaving other characters proportionally spaced."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospaced"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontWeight(_:)"],"names":{"title":"fontWeight(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWeight"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font weight of the text in this view."},{"text":""},{"text":"- Parameter weight: One of the available font weights."},{"text":" Providing `nil` removes the effect of any font weight"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font weight you specify."}]},"functionSignature":{"parameters":[{"name":"weight","declarationFragments":[{"kind":"identifier","spelling":"weight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWeight"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"weight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontWidth(_:)"],"names":{"title":"fontWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font width of the text in this view."},{"text":""},{"text":"- Parameter width: One of the available font widths."},{"text":" Providing `nil` removes the effect of any font width"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font width you specify."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4boldyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","bold(_:)"],"names":{"title":"bold(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bold"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a bold font weight to the text in this view."},{"text":""},{"text":"- Parameter isActive: A Boolean value that indicates"},{"text":" whether bold font styling is added. The default value is `true`."},{"text":""},{"text":"- Returns: A view with bold text."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bold"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6italicyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","italic(_:)"],"names":{"title":"italic(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"italic"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies italics to the text in this view."},{"text":""},{"text":"- Parameter isActive: A Boolean value that indicates"},{"text":" whether italic styling is added. The default value is `true`."},{"text":""},{"text":"- Returns: A View with italic text."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"italic"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontDesign(_:)"],"names":{"title":"fontDesign(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontDesign"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font design of the text in this view."},{"text":""},{"text":"- Parameter design: One of the available font designs."},{"text":" Providing `nil` removes the effect of any font design"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font design you specify."}]},"functionSignature":{"parameters":[{"name":"design","declarationFragments":[{"kind":"identifier","spelling":"design"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontDesign"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"design"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":1}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":1}},{"domain":"watchOS","introduced":{"major":9,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","kerning(_:)"],"names":{"title":"kerning(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the spacing, or kerning, between characters for the text in this view."},{"text":""},{"text":"- Parameter kerning: The spacing to use between individual characters in text."},{"text":" Value of `0` sets the kerning to the system default value."},{"text":""},{"text":"- Returns: A view where text has the specified amount of kerning."}]},"functionSignature":{"parameters":[{"name":"kerning","declarationFragments":[{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"kerning"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tracking(_:)"],"names":{"title":"tracking(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the tracking for the text in this view."},{"text":""},{"text":"- Parameter tracking: The amount of additional space, in points, that"},{"text":" the view should add to each character cluster after layout. Value of `0`"},{"text":" sets the tracking to the system default value."},{"text":""},{"text":"- Returns: A view where text has the specified amount of tracking."}]},"functionSignature":{"parameters":[{"name":"tracking","declarationFragments":[{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tracking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","baselineOffset(_:)"],"names":{"title":"baselineOffset(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the vertical offset for the text relative to its baseline"},{"text":"in this view."},{"text":""},{"text":"- Parameter baselineOffset: The amount to shift the text"},{"text":" vertically (up or down) relative to its baseline."},{"text":""},{"text":"- Returns: A view where text is above or below its baseline."}]},"functionSignature":{"parameters":[{"name":"baselineOffset","declarationFragments":[{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"baselineOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorMultiply(_:)"],"names":{"title":"colorMultiply(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorMultiply"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a color multiplication effect to this view."},{"text":""},{"text":"The following example shows two versions of the same image side by side;"},{"text":"at left is the original, and at right is a duplicate with the"},{"text":"`colorMultiply(_:)` modifier applied with ``ShapeStyle/purple``."},{"text":""},{"text":" struct InnerCircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 40, height: 40, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ColorMultiply: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .overlay(Text(\"Normal\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .colorMultiply(Color.purple)"},{"text":" .overlay(Text(\"Multiply\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" .padding(50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing two images showing the effect of multiplying the"},{"text":"colors of an image with another color.](SwiftUI-View-colorMultiply.png)"},{"text":""},{"text":"- Parameter color: The color to bias this view toward."},{"text":""},{"text":"- Returns: A view with a color multiplication effect."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorMultiply"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformAnchorPreference(key:value:transform:)"],"names":{"title":"transformAnchorPreference(key:value:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformAnchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the specified preference key, the value is a"},{"text":"function of the key's current value and a geometry value tied"},{"text":"to the current coordinate space, allowing readers of the value"},{"text":"to convert the geometry to their local coordinates."},{"text":""},{"text":"- Parameters:"},{"text":" - key: the preference key type."},{"text":" - value: the geometry value in the current coordinate space."},{"text":" - transform: the function to produce the preference value."},{"text":""},{"text":"- Returns: a new version of the view that writes the preference."}]},"functionSignature":{"parameters":[{"name":"key","internalName":"_","declarationFragments":[{"kind":"identifier","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"K","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformAnchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","clipShape(_:style:)"],"names":{"title":"clipShape(_:style:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a clipping shape for this view."},{"text":""},{"text":"Use `clipShape(_:style:)` to clip the view to the provided shape. By"},{"text":"applying a clipping shape to a view, you preserve the parts of the view"},{"text":"covered by the shape, while eliminating other parts of the view. The"},{"text":"clipping shape itself isn't visible."},{"text":""},{"text":"For example, this code applies a circular clipping shape to a `Text`"},{"text":"view:"},{"text":""},{"text":" Text(\"Clipped text in a circle\")"},{"text":" .frame(width: 175, height: 100)"},{"text":" .foregroundColor(Color.white)"},{"text":" .background(Color.black)"},{"text":" .clipShape(Circle())"},{"text":""},{"text":"The resulting view shows only the portion of the text that lies within"},{"text":"the bounds of the circle."},{"text":""},{"text":"![A screenshot of text clipped to the shape of a"},{"text":"circle.](SwiftUI-View-clipShape.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - shape: The clipping shape to use for this view. The `shape` fills"},{"text":" the view's frame, while maintaining its aspect ratio."},{"text":" - style: The fill style to use when rasterizing `shape`."},{"text":""},{"text":"- Returns: A view that clips this view to `shape`, using `style` to"},{"text":" define the shape's rasterization."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","clipped(antialiased:)"],"names":{"title":"clipped(antialiased:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipped"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Clips this view to its bounding rectangular frame."},{"text":""},{"text":"Use the `clipped(antialiased:)` modifier to hide any content that"},{"text":"extends beyond the layout bounds of the shape."},{"text":""},{"text":"By default, a view's bounding frame is used only for layout, so any"},{"text":"content that extends beyond the edges of the frame is still visible."},{"text":""},{"text":" Text(\"This long text string is clipped\")"},{"text":" .fixedSize()"},{"text":" .frame(width: 175, height: 100)"},{"text":" .clipped()"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![Screenshot showing text clipped to its"},{"text":"frame.](SwiftUI-View-clipped.png)"},{"text":""},{"text":"- Parameter antialiased: A Boolean value that indicates whether the"},{"text":" rendering system applies smoothing to the edges of the clipping"},{"text":" rectangle."},{"text":""},{"text":"- Returns: A view that clips this view to its bounding frame."}]},"functionSignature":{"parameters":[{"name":"antialiased","declarationFragments":[{"kind":"identifier","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipped"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","cornerRadius(_:antialiased:)"],"names":{"title":"cornerRadius(_:antialiased:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Clips this view to its bounding frame, with the specified corner radius."},{"text":""},{"text":"By default, a view's bounding frame only affects its layout, so any"},{"text":"content that extends beyond the edges of the frame remains visible. Use"},{"text":"`cornerRadius(_:antialiased:)` to hide any content that extends beyond"},{"text":"these edges while applying a corner radius."},{"text":""},{"text":"The following code applies a corner radius of 25 to a text view:"},{"text":""},{"text":" Text(\"Rounded Corners\")"},{"text":" .frame(width: 175, height: 75)"},{"text":" .foregroundColor(Color.white)"},{"text":" .background(Color.black)"},{"text":" .cornerRadius(25)"},{"text":""},{"text":"![A screenshot of a rectangle with rounded corners bounding a text"},{"text":"view.](SwiftUI-View-cornerRadius.png)"},{"text":""},{"text":"- Parameter antialiased: A Boolean value that indicates whether the"},{"text":" rendering system applies smoothing to the edges of the clipping"},{"text":" rectangle."},{"text":""},{"text":"- Returns: A view that clips this view to its bounding frame with the"},{"text":" specified corner radius."}]},"functionSignature":{"parameters":[{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"antialiased","declarationFragments":[{"kind":"identifier","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(_:)"],"names":{"title":"transaction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the view."},{"text":""},{"text":"Use this modifier to change or replace the animation used in a view."},{"text":"Consider three identical animations controlled by a"},{"text":"button that executes all three animations simultaneously:"},{"text":""},{"text":" * The first animation rotates the \"Rotation\" ``Text`` view by 360"},{"text":" degrees."},{"text":" * The second uses the `transaction(_:)` modifier to change the"},{"text":" animation by adding a delay to the start of the animation"},{"text":" by two seconds and then increases the rotational speed of the"},{"text":" \"Rotation\\nModified\" ``Text`` view animation by a factor of 2."},{"text":" * The third animation uses the `transaction(_:)` modifier to"},{"text":" replace the rotation animation affecting the \"Animation\\nReplaced\""},{"text":" ``Text`` view with a spring animation."},{"text":""},{"text":"The following code implements these animations:"},{"text":""},{"text":" struct TransactionExample: View {"},{"text":" @State private var flag = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" HStack(spacing: 30) {"},{"text":" Text(\"Rotation\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":""},{"text":" Text(\"Rotation\\nModified\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":" .transaction { view in"},{"text":" view.animation ="},{"text":" view.animation?.delay(2.0).speed(2)"},{"text":" }"},{"text":""},{"text":" Text(\"Animation\\nReplaced\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":" .transaction { view in"},{"text":" view.animation = .interactiveSpring("},{"text":" response: 0.60,"},{"text":" dampingFraction: 0.20,"},{"text":" blendDuration: 0.25)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Button(\"Animate\") {"},{"text":" withAnimation(.easeIn(duration: 2.0)) {"},{"text":" self.flag.toggle()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use this modifier on leaf views such as ``Image`` or ``Button`` rather"},{"text":"than container views such as ``VStack`` or ``HStack``. The"},{"text":"transformation applies to all child views within this view; calling"},{"text":"`transaction(_:)` on a container view can lead to unbounded scope of"},{"text":"execution depending on the depth of the view hierarchy."},{"text":""},{"text":"- Parameter transform: The transformation to apply to transactions"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies a transformation to"},{"text":" all transactions used within the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(value:_:)"],"names":{"title":"transaction(value:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the view."},{"text":""},{"text":"Use this modifier to change or replace the animation used in a view."},{"text":"Consider three identical views controlled by a"},{"text":"button that changes all three simultaneously:"},{"text":""},{"text":" * The first view animates rotating the \"Rotation\" ``Text`` view by 360"},{"text":" degrees."},{"text":" * The second uses the `transaction(_:)` modifier to change the"},{"text":" animation by adding a delay to the start of the animation"},{"text":" by two seconds and then increases the rotational speed of the"},{"text":" \"Rotation\\nModified\" ``Text`` view animation by a factor of 2."},{"text":" * The third uses the `transaction(_:)` modifier to disable animations"},{"text":" affecting the \"Animation\\nReplaced\" ``Text`` view."},{"text":""},{"text":"The following code implements these animations:"},{"text":""},{"text":" struct TransactionExample: View {"},{"text":" @State var flag = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" HStack(spacing: 30) {"},{"text":" Text(\"Rotation\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":""},{"text":" Text(\"Rotation\\nModified\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":" .transaction(value: flag) { t in"},{"text":" t.animation ="},{"text":" t.animation?.delay(2.0).speed(2)"},{"text":" }"},{"text":""},{"text":" Text(\"Animation\\nReplaced\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":" .transaction(value: flag) { t in"},{"text":" t.disableAnimations = true"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Button(\"Animate\") {"},{"text":" withAnimation(.easeIn(duration: 2.0)) {"},{"text":" flag.toggle()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: A value to monitor for changes."},{"text":" - transform: The transformation to apply to transactions"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies a transformation to"},{"text":" all transactions used within the view whenever `value` changes."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:)"],"names":{"title":"animation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to all animatable values within this view."},{"text":""},{"text":"Use this modifier on leaf views rather than container views. The"},{"text":"animation applies to all child views within this view; calling"},{"text":"`animation(_:)` on a container view can lead to unbounded scope."},{"text":""},{"text":"- Parameter animation: The animation to apply to animatable values"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies `animation` to all"},{"text":" animatable values used within the view."}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":15,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":12,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":15,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":1,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":8,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(_:body:)"],"names":{"title":"transaction(_:body:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the `body` closure."},{"text":""},{"text":"Any modifiers applied to the content of `body` will be applied to this"},{"text":"view, and the changes to the transaction performed in the `transform`"},{"text":"will only affect the modifiers defined in the `body`."},{"text":""},{"text":"The following code animates the opacity changing with a faster"},{"text":"animation, while the contents of MyView are animated with the implicit"},{"text":"transaction:"},{"text":""},{"text":" MyView(isActive: isActive)"},{"text":" .transaction { transaction in"},{"text":" transaction.animation = transaction.animation?.speed(2)"},{"text":" } body: { content in"},{"text":" content.opacity(isActive ? 1.0 : 0.0)"},{"text":" }"},{"text":""},{"text":"- See Also: `Transaction.disablesAnimations`"}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"body","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:body:)"],"names":{"title":"animation(_:body:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to all animatable values within the `body`"},{"text":"closure."},{"text":""},{"text":"Any modifiers applied to the content of `body` will be applied to this"},{"text":"view, and the `animation` will only be used on the modifiers defined in"},{"text":"the `body`."},{"text":""},{"text":"The following code animates the opacity changing with an easeInOut"},{"text":"animation, while the contents of MyView are animated with the implicit"},{"text":"transaction's animation:"},{"text":""},{"text":" MyView(isActive: isActive)"},{"text":" .animation(.easeInOut) { content in"},{"text":" content.opacity(isActive ? 1.0 : 0.0)"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]},{"name":"body","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","id(_:)"],"names":{"title":"id(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Binds a view's identity to the given proxy value."},{"text":""},{"text":"When the proxy value specified by the `id` parameter changes, the"},{"text":"identity of the view — for example, its state — is reset."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorScheme(_:)"],"names":{"title":"colorScheme(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets this view's color scheme."},{"text":""},{"text":"Use `colorScheme(_:)` to set the color scheme for the view to which you"},{"text":"apply it and any subviews. If you want to set the color scheme for all"},{"text":"views in the presentation, use ``View/preferredColorScheme(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter colorScheme: The color scheme for this view."},{"text":""},{"text":"- Returns: A view that sets this view's color scheme."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","preferredColorScheme(_:)"],"names":{"title":"preferredColorScheme(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preferredColorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred color scheme for this presentation."},{"text":""},{"text":"Use one of the values in ``ColorScheme`` with this modifier to set a"},{"text":"preferred color scheme for the nearest enclosing presentation, like a"},{"text":"popover, a sheet, or a window. The value that you set overrides the"},{"text":"user's Dark Mode selection for that presentation. In the example below,"},{"text":"the ``Toggle`` controls an `isDarkMode` state variable, which in turn"},{"text":"controls the color scheme of the sheet that contains the toggle:"},{"text":""},{"text":" @State private var isPresented = false"},{"text":" @State private var isDarkMode = true"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Sheet\") {"},{"text":" isPresented = true"},{"text":" }"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" List {"},{"text":" Toggle(\"Dark Mode\", isOn: $isDarkMode)"},{"text":" }"},{"text":" .preferredColorScheme(isDarkMode ? .dark : nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you apply the modifier to any of the views in the sheet --- which in"},{"text":"this case are a ``List`` and a ``Toggle`` --- the value that you set"},{"text":"propagates up through the view hierarchy to the enclosing"},{"text":"presentation, or until another color scheme modifier higher in the"},{"text":"hierarchy overrides it. The value you set also flows down to all child"},{"text":"views of the enclosing presentation."},{"text":""},{"text":"Pass `nil` to indicate that there is no preferred color scheme for this"},{"text":"view. This is useful in cases where a preferred color scheme should only"},{"text":"be applied conditionally. In the previous example, the sheet will prefer"},{"text":"dark mode when `isDarkMode` is set to `true`, but otherwise defer to the"},{"text":"color scheme as determined by the system."},{"text":""},{"text":"Multiple views in the same view hierarchy can set a preferred color"},{"text":"scheme. Applying this modifier overrides any existing preferred color"},{"text":"scheme set for the view, such as by one of its subviews. If there are"},{"text":"conflicting, non-`nil` color scheme preferences set by parallel branches"},{"text":"of the view hierarchy, the system will prioritize the first non-`nil`"},{"text":"preference based on the order of the views. In the example below, the"},{"text":"preferred color scheme for the entire view will resolve to `.dark`, from"},{"text":"the second view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"First\")"},{"text":" .preferredColorScheme(.light)"},{"text":" .preferredColorScheme(nil) // overrides `.light`"},{"text":""},{"text":" Text(\"Second\")"},{"text":" .preferredColorScheme(.dark)"},{"text":""},{"text":" Text(\"Third\")"},{"text":" .preferredColorScheme(.light)"},{"text":" }"},{"text":""},{"text":"A common use for this modifier is to create side-by-side previews"},{"text":"of the same view with light and dark appearances:"},{"text":""},{"text":" struct MyView_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" MyView().preferredColorScheme(.light)"},{"text":" MyView().preferredColorScheme(.dark)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you need to detect the color scheme that currently applies to a view,"},{"text":"read the ``EnvironmentValues/colorScheme`` environment value:"},{"text":""},{"text":" @Environment(\\.colorScheme) private var colorScheme"},{"text":""},{"text":" var body: some View {"},{"text":" Text(colorScheme == .dark ? \"Dark\" : \"Light\")"},{"text":" }"},{"text":""},{"text":"- Parameter colorScheme: The preferred color scheme for this view, or"},{"text":" `nil` to indicate no preference."},{"text":""},{"text":"- Returns: A view that sets the color scheme."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preferredColorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onHingeChange(isEnabled:_:)"],"names":{"title":"onHingeChange(isEnabled:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHingeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when the hinge context of the"},{"text":"view hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to the hinge"},{"text":"context of the device."},{"text":""},{"text":" @State private var hinge: DeviceHinge? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" if let hinge {"},{"text":" AngleDisplayView(angle: hinge.angle)"},{"text":" StatusDisplayView(status: hinge.status)"},{"text":" } else {"},{"text":" ContentUnavailableView("},{"text":" \"Hinge Unavailable\","},{"text":" systemImage: \"rectangle.split.2x1\")"},{"text":" }"},{"text":" }"},{"text":" .onHingeChange { _, newContext in"},{"text":" hinge = newContext.hinge"},{"text":" }"},{"text":" }"},{"text":""},{"text":"In the example above, the current angle and status of the hinge"},{"text":"will be displayed in the app as you interact with the hinge."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHingeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:including:)"],"names":{"title":"gesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:including:)"],"names":{"title":"highPriorityGesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:including:)"],"names":{"title":"simultaneousGesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:isEnabled:)"],"names":{"title":"gesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:isEnabled:)"],"names":{"title":"highPriorityGesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:isEnabled:)"],"names":{"title":"simultaneousGesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:name:isEnabled:)"],"names":{"title":"gesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:name:isEnabled:)"],"names":{"title":"highPriorityGesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:name:isEnabled:)"],"names":{"title":"simultaneousGesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(_:anchor:)"],"names":{"title":"scaleEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given vertical and horizontal"},{"text":"size amounts, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(_:anchor:)` to scale a view by applying a scaling"},{"text":"transform of a specific size, specified by `scale`."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(CGSize(x: 0.9, y: 1.3), anchor: .leading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a red envelope scaled to a size of 90x130"},{"text":"pixels.](SwiftUI-View-scaleEffect.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - scale: A that"},{"text":" represents the horizontal and vertical amount to scale the view."},{"text":" - anchor: The point with a default of ``UnitPoint/center`` that"},{"text":" defines the location within the view from which to apply the"},{"text":" transformation."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(_:anchor:)"],"names":{"title":"scaleEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given amount in both the"},{"text":"horizontal and vertical directions, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(_:anchor:)` to apply a horizontally and vertically"},{"text":"scaling transform to a view."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(2, anchor: .leading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a 100x100 pixel red envelope scaled up to 2x the"},{"text":"size of its view.](SwiftUI-View-scaleEffect-cgfloat.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - s: The amount to scale the view in the view in both the horizontal"},{"text":" and vertical directions."},{"text":" - anchor: The anchor point with a default of ``UnitPoint/center`` that"},{"text":" indicates the starting position for the scale operation."}]},"functionSignature":{"parameters":[{"name":"s","declarationFragments":[{"kind":"identifier","spelling":"s"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"s"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(x:y:anchor:)"],"names":{"title":"scaleEffect(x:y:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given horizontal and vertical"},{"text":"amounts, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(x:y:anchor:)` to apply a scaling transform to a view by"},{"text":"a specific horizontal and vertical amount."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(x: 0.5, y: 0.5, anchor: .bottomTrailing)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a 100x100 pixel red envelope scaled down 50% in"},{"text":"both the x and y axes.](SwiftUI-View-scaleEffect-xy.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: An amount that represents the horizontal amount to scale the"},{"text":" view. The default value is `1.0`."},{"text":" - y: An amount that represents the vertical amount to scale the view."},{"text":" The default value is `1.0`."},{"text":" - anchor: The anchor point that indicates the starting position for"},{"text":" the scale operation."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1.0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1.0, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaInset(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaInset(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Shows the specified content above or below the modified view."},{"text":""},{"text":"The `content` view is anchored to the specified"},{"text":"vertical edge in the parent view, aligning its horizontal axis"},{"text":"to the specified alignment guide. The modified view is inset by"},{"text":"the height of `content`, from `edge`, with its safe area"},{"text":"increased by the same amount."},{"text":""},{"text":" struct ScrollableViewWithBottomBar: View {"},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ScrolledContent()"},{"text":" }"},{"text":" .safeAreaInset(edge: .bottom, spacing: 0) {"},{"text":" BottomBarContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The vertical edge of the view to inset by the height of"},{"text":" `content`, to make space for `content`."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" horizontally."},{"text":" - content: A content builder function providing the view to"},{"text":" display in the inset space of the modified view."},{"text":""},{"text":"- Returns: A new view that displays `content` above or below the"},{"text":" modified view,"},{"text":" making space for the `content` view by vertically insetting"},{"text":" the modified view, adjusting the safe area of the result to match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaInset(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaInset(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Shows the specified content beside the modified view."},{"text":""},{"text":"The `content` view is anchored to the specified"},{"text":"horizontal edge in the parent view, aligning its vertical axis"},{"text":"to the specified alignment guide. The modified view is inset by"},{"text":"the width of `content`, from `edge`, with its safe area"},{"text":"increased by the same amount."},{"text":""},{"text":" struct ScrollableViewWithSideBar: View {"},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ScrolledContent()"},{"text":" }"},{"text":" .safeAreaInset(edge: .leading, spacing: 0) {"},{"text":" SideBarContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The horizontal edge of the view to inset by the width of"},{"text":" `content`, to make space for `content`."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" vertically."},{"text":" - content: A content builder function providing the view to"},{"text":" display in the inset space of the modified view."},{"text":""},{"text":"- Returns: A new view that displays `content` beside the modified view,"},{"text":" making space for the `content` view by horizontally insetting"},{"text":" the modified view."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:)"],"names":{"title":"safeAreaPadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:_:)"],"names":{"title":"safeAreaPadding(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:)"],"names":{"title":"safeAreaPadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tint(_:)"],"names":{"title":"tint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the tint color within this view."},{"text":""},{"text":"Use this method to override the default accent color for this view."},{"text":"Unlike an app's accent color, which can be overridden by user"},{"text":"preference, the tint color is always respected and should be used as a"},{"text":"way to provide additional meaning to the control."},{"text":""},{"text":"This example shows Answer and Decline buttons with ``ShapeStyle/green``"},{"text":"and ``ShapeStyle/red`` tint colors, respectively."},{"text":""},{"text":" struct ControlTint: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Button {"},{"text":" // Answer the call"},{"text":" } label: {"},{"text":" Label(\"Answer\", systemImage: \"phone\")"},{"text":" }"},{"text":" .tint(.green)"},{"text":" Button {"},{"text":" // Decline the call"},{"text":" } label: {"},{"text":" Label(\"Decline\", systemImage: \"phone.down\")"},{"text":" }"},{"text":" .tint(.red)"},{"text":" }"},{"text":" .buttonStyle(.borderedProminent)"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Some controls adapt to the tint color differently based on their style,"},{"text":"the current platform, and the surrounding context. For example, in"},{"text":"macOS, a button with the ``PrimitiveButtonStyle/bordered`` style doesn't"},{"text":"tint its background, but one with the"},{"text":"``PrimitiveButtonStyle/borderedProminent`` style does. In macOS, neither"},{"text":"of these button styles tint their label, but they do in other platforms."},{"text":""},{"text":"- Parameter tint: The tint ``Color`` to apply."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hueRotation(_:)"],"names":{"title":"hueRotation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hueRotation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hue rotation effect to this view."},{"text":""},{"text":"Use hue rotation effect to shift all of the colors in a view according"},{"text":"to the angle you specify."},{"text":""},{"text":"The example below shows a series of squares filled with a linear"},{"text":"gradient. Each square shows the effect of a 36˚ hueRotation (a total of"},{"text":"180˚ across the 5 squares) on the gradient:"},{"text":""},{"text":" struct HueRotation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Rectangle()"},{"text":" .fill(.linearGradient("},{"text":" colors: [.blue, .red, .green],"},{"text":" startPoint: .top, endPoint: .bottom))"},{"text":" .hueRotation((.degrees(Double($0 * 36))))"},{"text":" .frame(width: 60, height: 60, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Shows the effect of hueRotation on a linear"},{"text":"gradient.](SwiftUI-hueRotation.png)"},{"text":""},{"text":"- Parameter angle: The hue rotation angle to apply to the colors in this"},{"text":" view."},{"text":""},{"text":"- Returns: A view that applies a hue rotation effect to this view."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hueRotation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputBorderShape(_:)"],"names":{"title":"textInputBorderShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputBorderShape"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the border shape for text input controls in the view hierarchy."},{"text":""},{"text":"Use this modifier to customize the border shape of ``TextField`` and"},{"text":"other text input controls. The shape can be applied to individual"},{"text":"controls or to a container to affect all text input controls within"},{"text":"it."},{"text":""},{"text":"In this example, a search field and button both use a capsule shape:"},{"text":""},{"text":" HStack {"},{"text":" TextField(\"Search\", text: $searchText)"},{"text":" Button(\"Go\", action: search)"},{"text":" }"},{"text":" .buttonBorderShape(.capsule)"},{"text":" .textInputBorderShape(.capsule)"},{"text":""},{"text":"- Parameter shape: The shape to use for the border of text input"},{"text":" controls."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputBorderShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transition(_:)"],"names":{"title":"transition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a transition with the view."},{"text":""},{"text":"When this view appears or disappears, the transition will be applied to"},{"text":"it, allowing for animating it in and out."},{"text":""},{"text":"The following code will conditionally show MyView, and when it appears"},{"text":"or disappears, will use a slide transition to show it."},{"text":""},{"text":" if isActive {"},{"text":" MyView()"},{"text":" .transition(.slide)"},{"text":" }"},{"text":" Button(\"Toggle\") {"},{"text":" withAnimation {"},{"text":" isActive.toggle()"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"t","declarationFragments":[{"kind":"identifier","spelling":"t"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"t"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueDescription: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueDescription","declarationFragments":[{"kind":"identifier","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueKey: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueResource: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - value: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueDescription","declarationFragments":[{"kind":"identifier","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if"},{"text":"that's different than the view's label. For example, for a slider that"},{"text":"you label as \"Volume\" using accessibilityLabel(), you can provide the"},{"text":"current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewColumnWidth(_:)"],"names":{"title":"navigationSplitViewColumnWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed, preferred width for the column containing this view."},{"text":""},{"text":"Apply this modifier to the content of a column in a"},{"text":"``NavigationSplitView`` to specify a fixed preferred width for the"},{"text":"column. Use ``View/navigationSplitViewColumnWidth(min:ideal:max:)`` if"},{"text":"you need to specify a flexible width."},{"text":""},{"text":"The following example shows a three-column navigation split view where"},{"text":"the first column has a preferred width of 150 points, and the second"},{"text":"column has a flexible, preferred width between 150 and 400 points:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" MySidebar()"},{"text":" .navigationSplitViewColumnWidth(150)"},{"text":" } contents: {"},{"text":" MyContents()"},{"text":" .navigationSplitViewColumnWidth("},{"text":" min: 150, ideal: 200, max: 400)"},{"text":" } detail: {"},{"text":" MyDetail()"},{"text":" }"},{"text":""},{"text":"Only some platforms enable resizing columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewColumnWidth(min:ideal:max:)"],"names":{"title":"navigationSplitViewColumnWidth(min:ideal:max:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a flexible, preferred width for the column containing this view."},{"text":""},{"text":"Apply this modifier to the content of a column in a"},{"text":"``NavigationSplitView`` to specify a preferred flexible width for the"},{"text":"column. Use ``View/navigationSplitViewColumnWidth(_:)`` if you need to"},{"text":"specify a fixed width."},{"text":""},{"text":"The following example shows a three-column navigation split view where"},{"text":"the first column has a preferred width of 150 points, and the second"},{"text":"column has a flexible, preferred width between 150 and 400 points:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" MySidebar()"},{"text":" .navigationSplitViewColumnWidth(150)"},{"text":" } contents: {"},{"text":" MyContents()"},{"text":" .navigationSplitViewColumnWidth("},{"text":" min: 150, ideal: 200, max: 400)"},{"text":" } detail: {"},{"text":" MyDetail()"},{"text":" }"},{"text":""},{"text":"Only some platforms enable resizing columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."}]},"functionSignature":{"parameters":[{"name":"min","declarationFragments":[{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"ideal","declarationFragments":[{"kind":"identifier","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"max","declarationFragments":[{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLinkedGroup(id:in:)"],"names":{"title":"accessibilityLinkedGroup(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLinkedGroup"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Links multiple accessibility elements so that the user can quickly"},{"text":"navigate from one element to another, even when the elements are not near"},{"text":"each other in the accessibility hierarchy."},{"text":""},{"text":"This can be useful to allow quickly jumping between content in a list and"},{"text":"the same content shown in a detail view, for example. All elements marked"},{"text":"with `accessibilityLinkedGroup` with the same namespace and identifier will be"},{"text":"linked together."},{"text":""},{"text":"When all elements in the linked group are text views (`Text`, `TextEditor`,"},{"text":"or `TextField`), VoiceOver treats the group as a single text element — line,"},{"text":"word, and character navigation moves across element boundaries as if the views"},{"text":"form one continuous text region. On macOS, this unified text navigation uses"},{"text":"shared text UI elements. If any element in the group is not a text view, the"},{"text":"standard linking behavior applies."},{"text":""},{"text":"- Parameters:"},{"text":" - id: A hashable identifier used to separate sets of linked elements"},{"text":" within the same namespace. Elements with matching `namespace` and `id`"},{"text":" will be linked together."},{"text":" - namespace: The namespace to use to organize linked accessibility"},{"text":" elements. All elements marked with `accessibilityLinkedGroup` in this"},{"text":" namespace and with the specified `id` will be linked together."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLinkedGroup"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabeledPair(role:id:in:)"],"names":{"title":"accessibilityLabeledPair(role:id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabeledPair"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Pairs an accessibility element representing a label with the element"},{"text":"for the matching content."},{"text":""},{"text":"Use `accessibilityLabeledPair` with a role of `AccessibilityLabeledPairRole.label`"},{"text":"to identify the label, and a role of `AccessibilityLabeledPairRole.content`"},{"text":"to identify the content."},{"text":"This improves the behavior of accessibility features such as VoiceOver"},{"text":"when navigating such elements, allowing users to better understand the"},{"text":"relationship between them."},{"text":""},{"text":"- Parameters:"},{"text":" - role: Determines whether this element should be used as the label"},{"text":" in the pair, or the content in the pair."},{"text":" - id: The identifier for the label / content pair. Elements with"},{"text":" matching identifiers within the same namespace will be paired"},{"text":" together."},{"text":" - namespace: The namespace used to organize label and content. Label"},{"text":" and content under the same namespace with matching identifiers will"},{"text":" be paired together."}]},"functionSignature":{"parameters":[{"name":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabeledPair"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","handGestureShortcut(_:isEnabled:)"],"names":{"title":"handGestureShortcut(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handGestureShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Assigns a hand gesture shortcut to the modified control."},{"text":""},{"text":"Performing the control's shortcut while the control is anywhere in the"},{"text":"frontmost scene is equivalent to direct interaction with the control to"},{"text":"perform its primary action."},{"text":""},{"text":"The following example lets users of a watchOS music app toggle playback"},{"text":"by double-tapping their thumb and index finger together:"},{"text":""},{"text":" struct PlaybackControls: View {"},{"text":" let model: TrackModel"},{"text":""},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Button(\"Skip Back\") {"},{"text":" model.skipBack()"},{"text":" }"},{"text":""},{"text":" Button(\"Play/Pause\") {"},{"text":" model.playPause()"},{"text":" }"},{"text":" .handGestureShortcut(.primaryAction)"},{"text":""},{"text":" Button(\"Skip Forward\") {"},{"text":" model.skipForward()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The target of a hand gesture shortcut is resolved in a"},{"text":"leading-to-trailing traversal of the active scene."},{"text":""},{"text":"- Parameters:"},{"text":" - shortcut: The shortcut to associate with this control."},{"text":" - isEnabled: A Boolean value that indicates whether the shortcut is"},{"text":" is enabled for this control."}]},"functionSignature":{"parameters":[{"name":"shortcut","declarationFragments":[{"kind":"identifier","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handGestureShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scenePadding(_:)"],"names":{"title":"scenePadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds padding to the specified edges of this view using an amount that's"},{"text":"appropriate for the current scene."},{"text":""},{"text":"Use this modifier to add a scene-appropriate amount of padding to a"},{"text":"view. Specify either a single edge value from ``Edge/Set``, or an"},{"text":" that"},{"text":"describes the edges to pad."},{"text":""},{"text":"In macOS, use scene padding to produce the recommended spacing around"},{"text":"the root view of a window. In watchOS, use scene padding to align"},{"text":"elements of your user interface with top level elements, like the title"},{"text":"of a navigation view. For example, compare the effects of different"},{"text":"kinds of padding on text views presented inside a ``NavigationView``"},{"text":"in watchOS:"},{"text":""},{"text":" VStack(alignment: .leading, spacing: 10) {"},{"text":" Text(\"Scene padding\")"},{"text":" .scenePadding(.horizontal)"},{"text":" .border(.red) // Border added for reference."},{"text":" Text(\"Regular padding\")"},{"text":" .padding(.horizontal)"},{"text":" .border(.green)"},{"text":" Text(\"Text with no padding\")"},{"text":" .border(.blue)"},{"text":" Button(\"Button\") { }"},{"text":" }"},{"text":" .navigationTitle(\"Hello World\")"},{"text":""},{"text":"The text with scene padding automatically aligns with the title,"},{"text":"unlike the text that uses the default padding or the text without"},{"text":"padding:"},{"text":""},{"text":"![A watchOS screenshot with the title Hello World and a back button"},{"text":"in the upper left. The title is indented by a small amount from"},{"text":"the leading edge of the screen. Three bordered strings and a button"},{"text":"appear arranged vertically below the title."},{"text":"The first string says Scene padding and has a red border that's aligned"},{"text":"with the leading edge of the screen. The leading"},{"text":"edge of the string inside the border aligns with the leading edge of"},{"text":"the screen's title."},{"text":"The second string says Regular padding and has a green border that's"},{"text":"aligned with the leading edge of the screen. The leading edge of the"},{"text":"string appears offset from the title's leading edge by a small amount."},{"text":"The third string says Text with no padding and has a blue border that's"},{"text":"aligned with the leading edge of the screen. The string is also aligned"},{"text":"with the leading edge of the screen.](View-scenePadding-1-watchOS)"},{"text":""},{"text":"Scene padding in watchOS also ensures that your content avoids the"},{"text":"curved edges of a device like Apple Watch Series 7."},{"text":"In other platforms, scene padding produces the same default padding that"},{"text":"you get from the ``View/padding(_:_:)`` modifier."},{"text":""},{"text":"> Important: Scene padding doesn't pad the top and bottom edges of a"},{"text":"view in watchOS, even if you specify those edges as part of the input."},{"text":"For example, if you specify ``Edge/Set/vertical`` instead of"},{"text":"``Edge/Set/horizontal`` in the example above, the modifier would have"},{"text":"no effect in watchOS. It does, however, apply to all the edges that you"},{"text":"specify in other platforms."},{"text":""},{"text":"- Parameter edges: The set of edges along which to pad this view."},{"text":""},{"text":"- Returns: A view that's padded on specified edges by a"},{"text":" scene-appropriate amount."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scenePadding(_:edges:)"],"names":{"title":"scenePadding(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a specified kind of padding to the specified edges of this view"},{"text":"using an amount that's appropriate for the current scene."},{"text":""},{"text":"Use this modifier to add a scene-appropriate amount of padding to a"},{"text":"view. Specify either a single edge value from ``Edge/Set``, or an"},{"text":" that"},{"text":"describes the edges to pad."},{"text":""},{"text":"In macOS, use scene padding to produce the recommended spacing around"},{"text":"the root view of a window. In watchOS, use scene padding to align"},{"text":"elements of your user interface with top level elements, like the title"},{"text":"of a navigation view. For example, compare the effects of different"},{"text":"kinds of padding on text views presented inside a ``NavigationView``"},{"text":"in watchOS:"},{"text":""},{"text":" VStack(alignment: .leading, spacing: 10) {"},{"text":" Text(\"Minimum Scene padding\")"},{"text":" .scenePadding(.minimum, edges: .horizontal)"},{"text":" .border(.red) // Border added for reference."},{"text":" Text(\"Navigation Bar Scene padding\")"},{"text":" .scenePadding(.navigationBar, edges: .horizontal)"},{"text":" .border(.yellow)"},{"text":" Text(\"Regular padding\")"},{"text":" .padding(.horizontal)"},{"text":" .border(.green)"},{"text":" Text(\"Text with no padding\")"},{"text":" .border(.blue)"},{"text":" Button(\"Button\") { }"},{"text":" }"},{"text":" .navigationTitle(\"Hello World\")"},{"text":""},{"text":"The text with minimum scene padding uses the system minimum padding"},{"text":"and the text with navigation bar scene padding automatically aligns"},{"text":"with the navigation bar content. In contrast, the text that uses the"},{"text":"default padding and the text without padding do not align with scene"},{"text":"elements."},{"text":""},{"text":"Scene padding in watchOS also ensures that your content avoids the"},{"text":"curved edges of a device like Apple Watch Series 7."},{"text":"In other platforms, scene padding produces the same default padding that"},{"text":"you get from the ``View/padding(_:_:)`` modifier."},{"text":""},{"text":"> Important: Scene padding doesn't pad the top and bottom edges of a"},{"text":"view in watchOS, even if you specify those edges as part of the input."},{"text":"For example, if you specify ``Edge/Set/vertical`` instead of"},{"text":"``Edge/Set/horizontal`` in the example above, the modifier would have"},{"text":"no effect in watchOS. It does, however, apply to all the edges that you"},{"text":"specify in other platforms."},{"text":""},{"text":"- Parameter padding: The kind of padding to add."},{"text":"- Parameter edges: The set of edges along which to pad this view."},{"text":""},{"text":"- Returns: A view that's padded on specified edges by a"},{"text":" scene-appropriate amount."}]},"functionSignature":{"parameters":[{"name":"padding","declarationFragments":[{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"padding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listStyle(_:)"],"names":{"title":"listStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for lists within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ListStyle","rhsPrecise":"s:7SwiftUI9ListStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ListStyle","preciseIdentifier":"s:7SwiftUI9ListStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActions(category:_:)"],"names":{"title":"accessibilityActions(category:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds multiple accessibility actions to the view with a specific"},{"text":"category. Actions allow assistive technologies, such as VoiceOver,"},{"text":"to interact with the view by invoking the action and are grouped by"},{"text":"their category. When multiple action modifiers with an equal category"},{"text":"are applied to the view, the actions are combined together."},{"text":""},{"text":" var body: some View {"},{"text":" EditorView()"},{"text":" .accessibilityActions(category: .edit) {"},{"text":" ForEach(editActions) { action in"},{"text":" Button(action.title) {"},{"text":" action()"},{"text":" }"},{"text":" }"},{"text":" if hasTextSuggestions {"},{"text":" Button(\"Show Text Suggestions\") {"},{"text":" presentTextSuggestions()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - category: The category the accessibility actions are grouped by."},{"text":" - content: The accessibility actions added to the view."}]},"functionSignature":{"parameters":[{"name":"category","declarationFragments":[{"kind":"identifier","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(content:)"],"names":{"title":"accessibilityLabel(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to append content to the accessibility label for a view."},{"text":"For example, you could use this method to label a badge or alert that"},{"text":"is custom drawn without removing the existing accessibility label."},{"text":"- Parameters:"},{"text":" - content: A content builder closure that takes a proxy"},{"text":" value representing the modified view. You can combine the modified"},{"text":" view with other content to create a new accessibility label for"},{"text":" the original view."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays"},{"text":"music with the text \"Play\". Don't include text in the label that repeats"},{"text":"information that users already have. For example, don't use the label"},{"text":"\"Play button\" because a button already has a trait that identifies it"},{"text":"as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowInsets(_:)"],"names":{"title":"listRowInsets(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies an inset to the rows in a list."},{"text":""},{"text":"Use `listRowInsets(_:)` to change the default padding of the content of"},{"text":"list items."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowInsets(_:)` modifier then changes the edge insets of each row"},{"text":"of the list according to the ``EdgeInsets`` provided:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowInsets(.init(top: 0,"},{"text":" leading: 25,"},{"text":" bottom: 0,"},{"text":" trailing: 0))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a list with leading 25 point inset on each row.](SwiftUI-View-ListRowInsets.png)"},{"text":""},{"text":"- Parameter insets: The ``EdgeInsets`` to apply to the edges of the"},{"text":" view."},{"text":"- Returns: A view that uses the given edge insets when used as a list"},{"text":" cell."},{"text":"- Note: On iOS 18 and earlier, and on visionOS 2 and earlier, the"},{"text":" content of list rows can grow slightly into the row insets. The"},{"text":" effective vertical insets can then be smaller than expected."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowInsets(_:_:)"],"names":{"title":"listRowInsets(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the insets of rows in a list on the specified edges."},{"text":""},{"text":"Use this modifier to change the default insets of list rows on the"},{"text":"specified edges."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowInsets(_:_:)` modifier then changes the leading inset of each"},{"text":"row of the list and leaves the default insets on the other edges"},{"text":"untouched:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowInsets(.leading, 25)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a list with leading 25 point inset on each"},{"text":"row.](SwiftUI-View-ListRowInsets.png)"},{"text":""},{"text":"When applying multiple `listRowInsets` modifiers, modifiers with the"},{"text":"same edges will override modifiers higher up in the view hierarchy."},{"text":""},{"text":"- Parameter edges: The edges to set the insets to."},{"text":"- Parameter length: An amount, given in points, to set the insets to on"},{"text":" the specified edges."},{"text":"- Returns: A view in which the margins of list sections are set to the"},{"text":" specified amount"},{"text":"- Note: On iOS 18 and earlier, and on visionOS 2 and earlier, the"},{"text":" content of list rows can grow slightly into the row insets. The"},{"text":" effective vertical insets can then be smaller than expected."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogIcon(_:)"],"names":{"title":"dialogIcon(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogIcon"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the icon used by dialogs within this view."},{"text":""},{"text":"On macOS, this icon replaces the default icon of the app."},{"text":""},{"text":"On watchOS, this icon will be shown in any dialogs presented."},{"text":""},{"text":"This modifier has no effect on other platforms."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a custom image."},{"text":""},{"text":" Button(\"Delete items\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogIcon(Image(...))"},{"text":""},{"text":"- Parameter icon: The custom icon to use for confirmation dialogs and alerts."},{"text":" Passing `nil` will use the default app icon."}]},"functionSignature":{"parameters":[{"name":"icon","declarationFragments":[{"kind":"identifier","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(item:content:)"],"names":{"title":"alert(item:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert to the user."},{"text":""},{"text":"Use this method when you need to show an alert that contains"},{"text":"information from a binding to an optional data source that you provide."},{"text":"The example below shows a custom data source `FileInfo` whose"},{"text":"properties configure the alert's `message` field:"},{"text":""},{"text":" struct FileInfo: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":""},{"text":" struct ConfirmImportAlert: View {"},{"text":" @State private var alertDetails: FileInfo?"},{"text":" var body: some View {"},{"text":" Button(\"Show Alert\") {"},{"text":" alertDetails = FileInfo(name: \"MyImageFile.png\","},{"text":" fileType: .png)"},{"text":" }"},{"text":" .alert(item: $alertDetails) { details in"},{"text":" Alert(title: Text(\"Import Complete\"),"},{"text":" message: Text(\"\"\""},{"text":" Imported \\(details.name) \\n File"},{"text":" type: \\(details.fileType.description)."},{"text":" \"\"\"),"},{"text":" dismissButton: .default(Text(\"Dismiss\")))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":""},{"text":"![An alert showing information from a data source that describes the"},{"text":"result of a file import process. The alert displays the name of the"},{"text":"file imported, MyImageFile.png and its file type, the PNG image"},{"text":"file format along with a default OK button for dismissing the"},{"text":"alert.](SwiftUI-View-AlertItemContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the alert."},{"text":" if `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You use this content to populate the fields"},{"text":" of an alert that you create that the system displays to the user."},{"text":" If `item` changes, the system dismisses the currently displayed"},{"text":" alert and replaces it with a new one using the same process."},{"text":" - content: A closure returning the alert to present."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:content:)"],"names":{"title":"alert(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert to the user."},{"text":""},{"text":"Use this method when you need to show an alert to the user. The example"},{"text":"below displays an alert that is shown when the user toggles a"},{"text":"Boolean value that controls the presentation of the alert:"},{"text":""},{"text":" struct OrderCompleteAlert: View {"},{"text":" @State private var isPresented = false"},{"text":" var body: some View {"},{"text":" Button(\"Show Alert\", action: {"},{"text":" isPresented = true"},{"text":" })"},{"text":" .alert(isPresented: $isPresented) {"},{"text":" Alert(title: Text(\"Order Complete\"),"},{"text":" message: Text(\"Thank you for shopping with us.\"),"},{"text":" dismissButton: .default(Text(\"OK\")))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![An alert whose title reads Order Complete, with the"},{"text":"message, Thank you for shopping with us placed underneath. The alert"},{"text":"also includes an OK button for dismissing the"},{"text":"alert.](SwiftUI-View-AlertIsPresentedContent.png)"},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the alert that you create in the modifier's `content` closure. When the"},{"text":" user presses or taps OK the system sets `isPresented` to `false`"},{"text":" which dismisses the alert."},{"text":" - content: A closure returning the alert to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(for:destination:)"],"names":{"title":"navigationDestination(for:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a presented data type for use within"},{"text":"a navigation stack."},{"text":""},{"text":"Add this view modifier to a view inside a ``NavigationStack`` to"},{"text":"describe the view that the stack displays when presenting"},{"text":"a particular kind of data. Use a ``NavigationLink`` to present"},{"text":"the data. For example, you can present a `ColorDetail` view for"},{"text":"each presentation of a ``Color`` instance:"},{"text":""},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Mint\", value: Color.mint)"},{"text":" NavigationLink(\"Pink\", value: Color.pink)"},{"text":" NavigationLink(\"Teal\", value: Color.teal)"},{"text":" }"},{"text":" .navigationDestination(for: Color.self) { color in"},{"text":" ColorDetail(color: color)"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":" }"},{"text":""},{"text":"You can add more than one navigation destination modifier to the stack"},{"text":"if it needs to present more than one kind of data."},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation stack can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - data: The type of data that this destination matches."},{"text":" - destination: A content builder that defines a view to display"},{"text":" when the stack's navigation state contains a value of"},{"text":" type `data`. The closure takes one argument, which is the value"},{"text":" of the data to present."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"C","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(isPresented:destination:)"],"names":{"title":"navigationDestination(isPresented:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a binding that can be used to push"},{"text":"the view onto a ``NavigationStack``."},{"text":""},{"text":"In general, favor binding a path to a navigation stack for programmatic"},{"text":"navigation. Add this view modifier to a view inside a ``NavigationStack``"},{"text":"to programmatically push a single view onto the stack. This is useful"},{"text":"for building components that can push an associated view. For example,"},{"text":"you can present a `ColorDetail` view for a particular color:"},{"text":""},{"text":" @State private var showDetails = false"},{"text":" var favoriteColor: Color"},{"text":""},{"text":" NavigationStack {"},{"text":" VStack {"},{"text":" Circle()"},{"text":" .fill(favoriteColor)"},{"text":" Button(\"Show details\") {"},{"text":" showDetails = true"},{"text":" }"},{"text":" }"},{"text":" .navigationDestination(isPresented: $showDetails) {"},{"text":" ColorDetail(color: favoriteColor)"},{"text":" }"},{"text":" .navigationTitle(\"My Favorite Color\")"},{"text":" }"},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation stack can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that indicates whether"},{"text":" `destination` is currently presented."},{"text":" - destination: A view to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(item:destination:)"],"names":{"title":"navigationDestination(item:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a bound value for use within a"},{"text":"navigation stack or navigation split view"},{"text":""},{"text":"Add this view modifier to a view inside a ``NavigationStack`` or"},{"text":"``NavigationSplitView`` to describe the view that the stack displays"},{"text":"when presenting a particular kind of data. Programmatically update"},{"text":"the binding to display or remove the view. For example, you can replace"},{"text":"the view showing in the detail column of a navigation split view:"},{"text":""},{"text":" @State private var colorShown: Color?"},{"text":""},{"text":" NavigationSplitView {"},{"text":" List {"},{"text":" Button(\"Mint\") { colorShown = .mint }"},{"text":" Button(\"Pink\") { colorShown = .pink }"},{"text":" Button(\"Teal\") { colorShown = .teal }"},{"text":" }"},{"text":" .navigationDestination(item: $colorShown) { color in"},{"text":" ColorDetail(color: color)"},{"text":" }"},{"text":" } detail: {"},{"text":" Text(\"Select a color\")"},{"text":" }"},{"text":""},{"text":"When the person using the app taps on the Mint button, the mint color"},{"text":"shows in the detail and `colorShown` gets the value `Color.mint`. You"},{"text":"can reset the navigation split view to show the message \"Select a color\""},{"text":"by setting `colorShown` back to `nil`."},{"text":""},{"text":"You can add more than one navigation destination modifier to the stack"},{"text":"if it needs to present more than one kind of data."},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation split view can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to the data presented, or `nil` if nothing is"},{"text":" currently presented."},{"text":" - destination: A content builder that defines a view to display"},{"text":" when `item` is not `nil`."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"C","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textSelection(_:)"],"names":{"title":"textSelection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls whether people can select text within this view."},{"text":""},{"text":"People sometimes need to copy useful information from ``Text`` views ---"},{"text":"including error messages, serial numbers, or IP addresses --- so they"},{"text":"can then paste the text into another context. Enable text selection"},{"text":"to let people select text in a platform-appropriate way."},{"text":""},{"text":"You can apply this method to an individual text view, or to a"},{"text":"container to make each contained text view selectable. In the following"},{"text":"example, the person using the app can select text that shows the date of"},{"text":"an event or the name or email of any of the event participants:"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Event Invite\")"},{"text":" .font(.title)"},{"text":" Text(invite.date.formatted(date: .long, time: .shortened))"},{"text":" .textSelection(.enabled)"},{"text":""},{"text":" List(invite.recipients) { recipient in"},{"text":" VStack (alignment: .leading) {"},{"text":" Text(recipient.name)"},{"text":" Text(recipient.email)"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":" }"},{"text":" .textSelection(.enabled)"},{"text":" }"},{"text":" .navigationTitle(\"New Invitation\")"},{"text":" }"},{"text":""},{"text":"On macOS, people use the mouse or trackpad to select a range of text,"},{"text":"which they can quickly copy by choosing Edit > Copy, or with the"},{"text":"standard keyboard shortcut."},{"text":""},{"text":"![A macOS window titled New Invitation, with header Event Invite and"},{"text":"the date and time of the event below it. The date --- July 31, 2022 ---"},{"text":"is selected. Below this, a list of invitees by name and"},{"text":"email.](View-textSelection-1)"},{"text":""},{"text":"On iOS, the person using the app touches and holds on a selectable"},{"text":"`Text` view to begin selecting text."},{"text":"In iOS 27 or later, this brings up the system text selection handles"},{"text":"and highlight which supports selecting a range of text."},{"text":"In iOS 26 or earlier, this brings up a system menu with"},{"text":"menu items appropriate for the current context."},{"text":"These menu items operate on the entire contents of the `Text` view."},{"text":""},{"text":"@Image(source: \"View-textSelection-2\","},{"text":"alt: \"A portion of an iOS view, with header Event Invite and the date"},{"text":"and time of the event below it. Below the date and time,"},{"text":"a menu shows three items: Copy, Look Up and Translate."},{"text":"Below this, a list of invitees by name and email.\","},{"text":"deviceFrame: \"iPhone16-top-half\")"},{"text":""},{"text":"- Note: ``Button`` views don't support text selection."}]},"functionSignature":{"parameters":[{"name":"selectability","declarationFragments":[{"kind":"identifier","spelling":"selectability"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TextSelectability","rhsPrecise":"s:7SwiftUI17TextSelectabilityP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selectability"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextSelectability","preciseIdentifier":"s:7SwiftUI17TextSelectabilityP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAdjustableAction(_:)"],"names":{"title":"accessibilityAdjustableAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAdjustableAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility adjustable action to the view. Actions allow"},{"text":"assistive technologies, such as the VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how an adjustable action to navigate"},{"text":"through pages could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" PageControl()"},{"text":" .accessibilityAdjustableAction { direction in"},{"text":" switch direction {"},{"text":" case .increment:"},{"text":" // Go to next page"},{"text":" case .decrement:"},{"text":" // Go to previous page"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAdjustableAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityTextContentType(_:)"],"names":{"title":"accessibilityTextContentType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityTextContentType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an accessibility text content type."},{"text":""},{"text":"Use this modifier to set the content type of this accessibility"},{"text":"element. Assistive technologies can use this property to choose"},{"text":"an appropriate way to output the text. For example, when"},{"text":"encountering a source coding context, VoiceOver could"},{"text":"choose to speak all punctuation."},{"text":""},{"text":"The default content type ``AccessibilityTextContentType/plain``."},{"text":""},{"text":"- Parameter value: The accessibility content type from the available"},{"text":"``AccessibilityTextContentType`` options."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityTextContentType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHeading(_:)"],"names":{"title":"accessibilityHeading(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHeading"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the accessibility level of this heading."},{"text":""},{"text":"Use this modifier to set the level of this heading in relation to other headings. The system speaks"},{"text":"the level number of levels ``AccessibilityHeadingLevel/h1`` through"},{"text":" ``AccessibilityHeadingLevel/h6`` alongside the text."},{"text":""},{"text":"The default heading level if you don’t use this modifier"},{"text":"is ``AccessibilityHeadingLevel/unspecified``."},{"text":""},{"text":"- Parameter level: The heading level to associate with this element"},{"text":" from the available ``AccessibilityHeadingLevel`` levels."}]},"functionSignature":{"parameters":[{"name":"level","declarationFragments":[{"kind":"identifier","spelling":"level"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHeading"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"level"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsWindowActivationEvents(_:)"],"names":{"title":"allowsWindowActivationEvents(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures whether gestures in this view hierarchy can handle events"},{"text":"that activate the containing window."},{"text":""},{"text":"Views higher in the hierarchy can override the value you set on this"},{"text":"view. In the following example, the tap gesture on the `Rectangle` won't"},{"text":"handle events that activate the containing window because the outer"},{"text":"`allowsWindowActivationEvents(_:)` view modifier overrides the"},{"text":"inner one:"},{"text":""},{"text":"```"},{"text":"HStack {"},{"text":" Rectangle()"},{"text":" .onTapGesture { ... }"},{"text":" .allowsWindowActivationEvents()"},{"text":"}"},{"text":".allowsWindowActivationEvents(false)"},{"text":"```"},{"text":""},{"text":"> Note: It’s only possible to disallow handling events that activate the"},{"text":"> containing window for views that allow it by default or that inherit"},{"text":"> this behavior from their ancestors. Views that explicitly already"},{"text":"> disallow this functionality can’t have it turned on."},{"text":""},{"text":"> Note: Prefer using ``View/allowsWindowActivationEvents()`` if the"},{"text":"> parameter is always `true` and it never changes."},{"text":""},{"text":"- Parameters:"},{"text":" - value: A Boolean value that indicates whether gestures in this"},{"text":" view hierarchy can handle events that activate the containing"},{"text":" window. If `nil`, or if the modifier is not present, the behavior"},{"text":" will be inherited from the view’s ancestors."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsWindowActivationEvents()"],"names":{"title":"allowsWindowActivationEvents()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures gestures in this view hierarchy to handle events that"},{"text":"activate the containing window."},{"text":""},{"text":"Views higher in the hierarchy can override the value you set on this"},{"text":"view. In the following example, the tap gesture on the `Rectangle` won't"},{"text":"handle events that activate the containing window because the outer"},{"text":"`allowsWindowActivationEvents(_:)` view modifier overrides the"},{"text":"inner one:"},{"text":""},{"text":"```"},{"text":"HStack {"},{"text":" Rectangle()"},{"text":" .onTapGesture { ... }"},{"text":" .allowsWindowActivationEvents()"},{"text":"}"},{"text":".allowsWindowActivationEvents(false)"},{"text":"```"},{"text":""},{"text":"> Note: It’s only possible to disallow handling events that activate the"},{"text":"> containing window for views that allow it by default or that inherit"},{"text":"> this behavior from their ancestors. Views that explicitly already"},{"text":"> disallow this functionality can’t have it turned on."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(_:trigger:)"],"names":{"title":"sensoryFeedback(_:trigger:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays the specified `feedback` when the provided `trigger` value"},{"text":"changes."},{"text":""},{"text":"For example, you could play feedback when a state value changes:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var showAccessory = false"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .sensoryFeedback(.selection, trigger: showAccessory)"},{"text":" .onLongPressGesture {"},{"text":" showAccessory.toggle()"},{"text":" }"},{"text":""},{"text":" if showAccessory {"},{"text":" AccessoryView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - feedback: Which type of feedback to play."},{"text":" - trigger: A value to monitor for changes to determine when to play."}]},"functionSignature":{"parameters":[{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(_:trigger:condition:)"],"names":{"title":"sensoryFeedback(_:trigger:condition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"condition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays the specified `feedback` when the provided `trigger` value changes"},{"text":"and the `condition` closure returns `true`."},{"text":""},{"text":"For example, you could play feedback for certain state transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var phase = Phase.inactive"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(phase: $phase)"},{"text":" .sensoryFeedback(.selection, trigger: phase) { old, new in"},{"text":" old == .inactive || new == .expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":" enum Phase {"},{"text":" case inactive"},{"text":" case preparing"},{"text":" case active"},{"text":" case expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - feedback: Which type of feedback to play."},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - condition: A closure to determine whether to play the feedback when"},{"text":" `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(trigger:_:)"],"names":{"title":"sensoryFeedback(trigger:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays feedback when returned from the `feedback` closure after the"},{"text":"provided `trigger` value changes."},{"text":""},{"text":"For example, you could play different feedback for different state"},{"text":"transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var phase = Phase.inactive"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(phase: $phase)"},{"text":" .sensoryFeedback(trigger: phase) { old, new in"},{"text":" switch (old, new) {"},{"text":" case (.inactive, _): return .success"},{"text":" case (_, .expanded): return .impact"},{"text":" default: return nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" enum Phase {"},{"text":" case inactive"},{"text":" case preparing"},{"text":" case active"},{"text":" case expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - feedback: A closure to determine whether to play the feedback and"},{"text":" what type of feedback to play when `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(trigger:_:)"],"names":{"title":"sensoryFeedback(trigger:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays feedback when returned from the `feedback` closure after the"},{"text":"provided `trigger` value changes."},{"text":""},{"text":"For example, you could play different feedback for different state"},{"text":"transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var isExpanded = false"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(isExpanded: $isExpanded)"},{"text":" .sensoryFeedback(trigger: isExpanded) {"},{"text":" isExpanded ? .impact : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - feedback: A closure to determine whether to play the feedback and"},{"text":" what type of feedback to play when `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag-and-drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag-and-drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedContentTypes`. Return `true`"},{"text":" if the drop operation was successful; otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe"},{"text":" the types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedContentTypes`. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:delegate:)"],"names":{"title":"onDrop(of:delegate:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation using behavior"},{"text":"controlled by the delegate that you provide."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - delegate: A type that conforms to the ``DropDelegate`` protocol. You"},{"text":" have comprehensive control over drop behavior when you use a"},{"text":" delegate."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"delegate","declarationFragments":[{"kind":"identifier","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropDestination(for:isEnabled:action:)"],"names":{"title":"dropDestination(for:isEnabled:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that provides a drop operation proposal and"},{"text":"handles the dropped content with a closure that you specify."},{"text":""},{"text":"The dropped content can be provided as binary data, file URLs, or file promises."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":" @State private var isDropTargeted = false"},{"text":" @Binding var isDropEnabled: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .dropDestination("},{"text":" for: String.self, isEnabled: isDropEnabled"},{"text":" ) { receivedTitles, session in"},{"text":" animateDrop(at: session.location)"},{"text":" process(titles: receivedTitles)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func process(titles: [String]) { ... }"},{"text":" func animateDrop(at: CGPoint) { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - type: The expected type of the dropped models."},{"text":" - isEnabled: The Boolean value indicating if the view accepts drop interactions."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains"},{"text":" the dropped items. The second parameter contains the drop session description."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drop"},{"text":" operation of the specified type."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDropSessionUpdated(_:)"],"names":{"title":"onDropSessionUpdated(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDropSessionUpdated"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action to perform on each update of an ongoing drop operation"},{"text":"activated by `dropDestination(_:)` or other drop modifiers."},{"text":""},{"text":"The `onUpdate` closure is called when the closest drop session"},{"text":"in the child view hierarchy becomes active."}]},"functionSignature":{"parameters":[{"name":"onUpdate","declarationFragments":[{"kind":"identifier","spelling":"onUpdate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDropSessionUpdated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"onUpdate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropConfiguration(_:)"],"names":{"title":"dropConfiguration(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropConfiguration"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures a drop session."},{"text":""},{"text":"Below is an example of a view that accepts drop of `Image` type."},{"text":"The view prefers drop operation `move` in a case when the source"},{"text":"supports it (the source will remove the images from its storage after"},{"text":"the drop operation)."},{"text":"If the source does not support moving images, the destination"},{"text":"will make copies."},{"text":""},{"text":" ExampleView()"},{"text":" .dropDestination(for: Image.self) { images, _ in"},{"text":" process(images)"},{"text":" }"},{"text":" .dropConfiguration { dropSession in"},{"text":" if dropSession.suggestedOperations.contains(.move) {"},{"text":" return DropConfiguration(operation: .move)"},{"text":" }"},{"text":" return DropConfiguration(operation: .copy)"},{"text":" }"},{"text":""},{"text":"> Note: The closure that provides the configuration is called"},{"text":"frequently to allow specifying different operations for different drop"},{"text":"locations in a view. Do not perform any expensive calculations in it."},{"text":""},{"text":"- Parameter configuration: A value that describes the configuration"},{"text":"of a drop session."},{"text":"- Returns: A view that configures a drop session in a way, described"},{"text":"by the return value of the `configuration` parameter."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropConfiguration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation, using the same"},{"text":"size and position as this view, handling dropped content with the given"},{"text":"closure."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true`"},{"text":" when the cursor is inside the area, and `false` when the cursor is"},{"text":" outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedTypes`. Return `true`"},{"text":" if the drop operation was successful; otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation with the same size"},{"text":"and position as this view, handling dropped content and the drop"},{"text":"location with the given closure."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true`"},{"text":" when the cursor is inside the area, and `false` when the cursor is"},{"text":" outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedTypes`. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:delegate:)"],"names":{"title":"onDrop(of:delegate:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation with the same size"},{"text":"and position as this view, with behavior controlled by the given"},{"text":"delegate."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - delegate: A type that conforms to the `DropDelegate` protocol. You"},{"text":" have comprehensive control over drop behavior when you use a"},{"text":" delegate."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"delegate","declarationFragments":[{"kind":"identifier","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","invalidatableContent(_:)"],"names":{"title":"invalidatableContent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidatableContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Mark the receiver as their content might be invalidated."},{"text":""},{"text":"Use this modifier to annotate views that display values that are derived"},{"text":"from the current state of your data and might be invalidated in"},{"text":"response of, for example, user interaction."},{"text":""},{"text":"The view will change its appearance when"},{"text":"``RedactionReasons/invalidated`` is present in the environment."},{"text":""},{"text":"In an interactive widget a view is invalidated from the moment the user"},{"text":"interacts with a control on the widget to the moment when a new timeline"},{"text":"update has been presented."},{"text":""},{"text":"- Parameters:"},{"text":" - invalidatable: Whether the receiver content might be invalidated."}]},"functionSignature":{"parameters":[{"name":"invalidatable","declarationFragments":[{"kind":"identifier","spelling":"invalidatable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidatableContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"invalidatable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","findNavigator(isPresented:)"],"names":{"title":"findNavigator(isPresented:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findNavigator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Programmatically presents the find and replace interface for text"},{"text":"editor views."},{"text":""},{"text":"Add this modifier to a ``TextEditor``, or to a view hierarchy that"},{"text":"contains at least one text editor, to control the presentation of"},{"text":"the find and replace interface. When you set the `isPresented` binding"},{"text":"to `true`, the system shows the interface, and when you set it to"},{"text":"`false`, the system hides the interface. The following example shows"},{"text":"and hides the interface based on the state of a toolbar button:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":" .toolbar {"},{"text":" Toggle(isOn: $isPresented) {"},{"text":" Label(\"Find\", systemImage: \"magnifyingglass\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The find and replace interface allows people to search for instances"},{"text":"of a specified string in the text editor, and optionally to replace"},{"text":"instances of the search string with another string. They can also"},{"text":"show and hide the interface using built-in controls, like menus and"},{"text":"keyboard shortcuts. SwiftUI updates `isPresented` to reflect the"},{"text":"users's actions."},{"text":""},{"text":"If the text editor view isn't currently in focus, the system still"},{"text":"presents the find and replace interface when you set `isPresented`"},{"text":"to `true`. If the view hierarchy contains multiple editors, the one"},{"text":"that shows the find and replace interface is nondeterministic."},{"text":""},{"text":"You can disable the find and replace interface for a text editor by"},{"text":"applying the ``View/findDisabled(_:)`` modifier to the editor. If you"},{"text":"do that, setting this modifier's `isPresented` binding to `true` has"},{"text":"no effect, but only if the disabling modifier appears closer to the"},{"text":"text editor, like this:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"- Parameter isPresented: A binding to a Boolean value that controls the"},{"text":" presentation of the find and replace interface."},{"text":""},{"text":"- Returns: A view that presents the find and replace interface when"},{"text":" `isPresented` is `true`."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findNavigator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","findDisabled(_:)"],"names":{"title":"findDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents find and replace operations in a text editor."},{"text":""},{"text":"Add this modifier to ensure that people can't activate the find"},{"text":"and replace interface for a ``TextEditor``:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled()"},{"text":""},{"text":"When you disable the find operation, you also implicitly disable the"},{"text":"replace operation. If you want to only disable replace, use"},{"text":"``View/replaceDisabled(_:)`` instead."},{"text":""},{"text":"Using this modifer also prevents programmatic find and replace"},{"text":"interface presentation using the ``View/findNavigator(isPresented:)``"},{"text":"method. Be sure to place the disabling modifier closer to the text"},{"text":"editor for this to work:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"If you apply this modifer at multiple levels of a view hierarchy,"},{"text":"the call closest to the text editor takes precedence. For example,"},{"text":"people can activate find and replace for the first text editor"},{"text":"in the following example, but not the second:"},{"text":""},{"text":" VStack {"},{"text":" TextEditor(text: $text1)"},{"text":" .findDisabled(false)"},{"text":" TextEditor(text: $text2)"},{"text":" }"},{"text":" .findDisabled(true)"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether to"},{"text":" disable the find and replace interface for a text editor."},{"text":""},{"text":"- Returns: A view that disables the find and replace interface."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","replaceDisabled(_:)"],"names":{"title":"replaceDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"replaceDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents replace operations in a text editor."},{"text":""},{"text":"Add this modifier to ensure that people can't activate the replace"},{"text":"feature of a find and replace interface for a ``TextEditor``:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .replaceDisabled()"},{"text":""},{"text":"If you want to disable both find and replace, use the"},{"text":"``View/findDisabled(_:)`` modifier instead."},{"text":""},{"text":"Using this modifer also disables the replace feature of a find and"},{"text":"replace interface that you present programmatically using the"},{"text":"``View/findNavigator(isPresented:)`` method. Be sure to place the"},{"text":"disabling modifier closer to the text editor for this to work:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .replaceDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"If you apply this modifer at multiple levels of a view hierarchy,"},{"text":"the call closest to the text editor takes precedence. For example,"},{"text":"people can activate find and replace for the first text editor"},{"text":"in the following example, but only find for the second:"},{"text":""},{"text":" VStack {"},{"text":" TextEditor(text: $text1)"},{"text":" .replaceDisabled(false)"},{"text":" TextEditor(text: $text2)"},{"text":" }"},{"text":" .replaceDisabled(true)"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether text"},{"text":" replacement in the find and replace interface is disabled."},{"text":""},{"text":"- Returns: A view that disables the replace feature of a find and"},{"text":" replace interface."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"replaceDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffectsRemoved(_:)"],"names":{"title":"symbolEffectsRemoved(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffectsRemoved"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Returns a new view with its inherited symbol image effects"},{"text":"either removed or left unchanged."},{"text":""},{"text":"The following example adds a repeating pulse effect to two"},{"text":"symbol images, but then disables the effect on one of them:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\") // does not pulse"},{"text":" .symbolEffectsRemoved()"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\") // pulses"},{"text":" }"},{"text":" .symbolEffect(.pulse)"},{"text":""},{"text":"- Parameter isEnabled: Whether to remove inherited symbol"},{"text":" effects or not."},{"text":""},{"text":"- Returns: a copy of the view with its symbol effects either"},{"text":" removed or left unchanged."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffectsRemoved"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","userActivity(_:isActive:_:)"],"names":{"title":"userActivity(_:isActive:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Advertises a user activity type."},{"text":""},{"text":"You can use `userActivity(_:isActive:_:)` to start, stop, or modify the"},{"text":"advertisement of a specific type of user activity."},{"text":""},{"text":"The scope of the activity applies only to the scene or window the"},{"text":"view is in."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity to advertise."},{"text":" - isActive: When `false`, avoids advertising the activity. Defaults"},{"text":" to `true`."},{"text":" - update: A function that modifies the passed-in activity for"},{"text":" advertisement."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"update","declarationFragments":[{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"update"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","userActivity(_:element:_:)"],"names":{"title":"userActivity(_:element:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Advertises a user activity type."},{"text":""},{"text":"The scope of the activity applies only to the scene or window the"},{"text":"view is in."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity to advertise."},{"text":" - element: If the element is `nil`, the handler will not be"},{"text":" associated with the activity (and if there are no handlers, no"},{"text":" activity is advertised). The method passes the non-`nil` element to"},{"text":" the handler as a convenience so the handlers don't all need to"},{"text":" implement an early exit with"},{"text":" `guard element = element else { return }`."},{"text":" - update: A function that modifies the passed-in activity for"},{"text":" advertisement."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"element","declarationFragments":[{"kind":"identifier","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?"}]},{"name":"update","declarationFragments":[{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"P","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"update"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinueUserActivity(_:perform:)"],"names":{"title":"onContinueUserActivity(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinueUserActivity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Registers a handler to invoke in response to a user activity that your"},{"text":"app receives."},{"text":""},{"text":"Use this view modifier to receive"},{"text":""},{"text":"instances in a particular scene within your app. The scene that SwiftUI"},{"text":"routes the incoming user activity to depends on the structure of your"},{"text":"app, what scenes are active, and other configuration. For more"},{"text":"information, see ``Scene/handlesExternalEvents(matching:)``."},{"text":""},{"text":"UI frameworks traditionally pass Universal Links to your app using a"},{"text":"user activity. However, SwiftUI passes a Universal Link to your app"},{"text":"directly as a URL. To receive a Universal Link, use the"},{"text":"``View/onOpenURL(perform:)`` modifier instead."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity that the `action` closure"},{"text":" handles. Be sure that this string matches one of the values that"},{"text":" you list in the"},{"text":" "},{"text":" array in your app's Information Property List."},{"text":" - action: A closure that SwiftUI calls when your app receives a user"},{"text":" activity of the specified type. The closure takes the activity as"},{"text":" an input parameter."},{"text":""},{"text":"- Returns: A view that handles incoming user activities."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinueUserActivity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onOpenURL(perform:)"],"names":{"title":"onOpenURL(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Registers a handler to invoke in response to a URL that your app"},{"text":"receives."},{"text":""},{"text":"Use this view modifier to receive URLs in a particular scene within your"},{"text":"app. The scene that SwiftUI routes the incoming URL to depends on the"},{"text":"structure of your app, what scenes are active, and other configuration."},{"text":"For more information, see ``Scene/handlesExternalEvents(matching:)``."},{"text":""},{"text":"UI frameworks traditionally pass Universal Links to your app using an"},{"text":"."},{"text":"However, SwiftUI passes a Universal Link to your app directly as a URL,"},{"text":"which you receive using this modifier. To receive other user activities,"},{"text":"like when your app participates in Handoff, use the"},{"text":"``View/onContinueUserActivity(_:perform:)`` modifier instead."},{"text":""},{"text":"For more information about linking into your app, see"},{"text":"."},{"text":""},{"text":"- Parameter action: A closure that SwiftUI calls when your app receives"},{"text":" a Universal Link or a custom"},{"text":" ."},{"text":" The closure takes the URL as an input parameter."},{"text":""},{"text":"- Returns: A view that handles incoming URLs."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","handlesExternalEvents(preferring:allowing:)"],"names":{"title":"handlesExternalEvents(preferring:allowing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handlesExternalEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the external events that the view's scene handles"},{"text":"if the scene is already open."},{"text":""},{"text":"Apply this modifier to a view to indicate whether an open scene that"},{"text":"contains the view handles specified user activities or URLs that your"},{"text":"app receives. Specify two sets of string identifiers to distinguish"},{"text":"between the kinds of events that the scene _prefers_ to handle"},{"text":"and those that it _can_ handle. You can dynamically update the"},{"text":"identifiers in each set to reflect changing app state."},{"text":""},{"text":"When your app receives an event on a platform that supports multiple"},{"text":"simultaneous scenes, SwiftUI sends the event to the first"},{"text":"open scene it finds that prefers to handle the event. Otherwise,"},{"text":"it sends the event to the first open scene it finds that can handle"},{"text":"the event. If it finds neither --- including when you don't add"},{"text":"this view modifier --- SwiftUI creates a new scene for the event."},{"text":""},{"text":"> Important: Don't confuse this view modifier with the"},{"text":" ``Scene/handlesExternalEvents(matching:)`` _scene_ modifier. You use"},{"text":" the view modifier to indicate that an open scene handles certain"},{"text":" events, whereas you use the scene modifier to help SwiftUI choose a"},{"text":" new scene to open when no open scene handles the event."},{"text":""},{"text":"On platforms that support only a single scene, SwiftUI ignores this"},{"text":"modifier and sends all external events to the one open scene."},{"text":""},{"text":"### Matching an event"},{"text":""},{"text":"To find an open scene that handles a particular external event, SwiftUI"},{"text":"compares a property of the event against the strings that you specify"},{"text":"in the `preferring` and `allowing` sets. SwiftUI examines the"},{"text":"following event properties to perform the comparison:"},{"text":""},{"text":"* For an"},{"text":" ,"},{"text":" like when your app handles Handoff, SwiftUI uses the activity's"},{"text":" "},{"text":" property, or if that's `nil`, its"},{"text":" "},{"text":" property rendered as an"},{"text":" ."},{"text":"* For a"},{"text":" ,"},{"text":" like when another process opens a URL that your app handles,"},{"text":" SwiftUI uses the URL's"},{"text":" ."},{"text":""},{"text":"For both parameter sets, an empty set of strings never matches."},{"text":"Similarly, empty strings never match. Conversely, as a special case,"},{"text":"the string that contains only an asterisk (`*`) matches anything."},{"text":"The modifier performs string comparisons that are case and"},{"text":"diacritic insensitive."},{"text":""},{"text":"If you specify multiple instances of this view modifier inside a single"},{"text":"scene, the scene uses the union of the respective `preferring` and"},{"text":"`allowing` sets from all the modifiers."},{"text":""},{"text":"### Handling a user activity in an open scene"},{"text":""},{"text":"As an example, the following view --- which participates in Handoff"},{"text":"through the ``View/userActivity(_:isActive:_:)`` and"},{"text":"``View/onContinueUserActivity(_:perform:)`` methods --- updates its"},{"text":"`preferring` set according to the current selection. The enclosing"},{"text":"scene prefers to handle an event for a contact that's already selected,"},{"text":"but doesn't volunteer itself as a preferred scene when no contact is"},{"text":"selected:"},{"text":""},{"text":" private struct ContactList: View {"},{"text":" var store: ContactStore"},{"text":" @State private var selectedContact: UUID?"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" List(store.contacts, selection: $selectedContact) { contact in"},{"text":" NavigationLink(contact.name) {"},{"text":" Text(contact.name)"},{"text":" }"},{"text":" }"},{"text":" } detail: {"},{"text":" Text(\"Select a contact\")"},{"text":" }"},{"text":" .handlesExternalEvents("},{"text":" preferring: selectedContact == nil"},{"text":" ? []"},{"text":" : [selectedContact!.uuidString],"},{"text":" allowing: selectedContact == nil"},{"text":" ? [\"*\"]"},{"text":" : []"},{"text":" )"},{"text":" .onContinueUserActivity(Contact.userActivityType) { activity in"},{"text":" if let identifier = activity.targetContentIdentifier {"},{"text":" selectedContact = UUID(uuidString: identifier)"},{"text":" }"},{"text":" }"},{"text":" .userActivity("},{"text":" Contact.userActivityType,"},{"text":" isActive: selectedContact != nil"},{"text":" ) { activity in"},{"text":" activity.title = \"Contact\""},{"text":" activity.targetContentIdentifier = selectedContact?.uuidString"},{"text":" activity.isEligibleForHandoff = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The above code also updates the `allowing` set to indicate that the"},{"text":"scene can handle any incoming event when there's no current selection,"},{"text":"but that it can't handle any event if the view already displays a"},{"text":"contact. The `preferring` set takes precedence in the special case"},{"text":"where the incoming event exactly matches the currently selected contact."},{"text":""},{"text":"- Parameters:"},{"text":" - preferring: A set of strings that SwiftUI compares against the"},{"text":" incoming user activity or URL to see if the view's"},{"text":" scene prefers to handle the external event."},{"text":" - allowing: A set of strings that SwiftUI compares against the"},{"text":" incoming user activity or URL to see if the view's"},{"text":" scene can handle the exernal event."},{"text":""},{"text":"- Returns: A view whose enclosing scene --- if already open ---"},{"text":" handles incoming external events."}]},"functionSignature":{"parameters":[{"name":"preferring","declarationFragments":[{"kind":"identifier","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"allowing","declarationFragments":[{"kind":"identifier","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handlesExternalEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"> Note: On macOS, if the view does not have an action and it has been"},{"text":" made into a container with ``accessibilityElement(children: .contain)``,"},{"text":" this will be used to describe the container. For example, if the"},{"text":" container is for a graph, the hint could be \"graph\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hintKey: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hintKey","declarationFragments":[{"kind":"identifier","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"> Note: On macOS, if the view does not have an action and it has been"},{"text":" made into a container with ``accessibilityElement(children: .contain)``,"},{"text":" this will be used to describe the container. For example, if the"},{"text":" container is for a graph, the hint could be \"graph\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hintKey","declarationFragments":[{"kind":"identifier","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onReceive(_:perform:)"],"names":{"title":"onReceive(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onReceive"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view detects data emitted by the"},{"text":"given publisher."},{"text":""},{"text":"- Parameters:"},{"text":" - publisher: The publisher to subscribe to."},{"text":" - action: The action to perform when an event is emitted by"},{"text":" `publisher`. The event emitted by publisher is passed as a"},{"text":" parameter to `action`."},{"text":""},{"text":"- Returns: A view that triggers `action` when `publisher` emits an"},{"text":" event."}]},"functionSignature":{"parameters":[{"name":"publisher","declarationFragments":[{"kind":"identifier","spelling":"publisher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"P","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"P","rhs":"Publisher","rhsPrecise":"s:7Combine9PublisherP"},{"kind":"sameType","lhs":"P.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onReceive"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"publisher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Publisher","preciseIdentifier":"s:7Combine9PublisherP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:7Combine9PublisherP7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuStyle(_:)"],"names":{"title":"menuStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for menus within this view."},{"text":""},{"text":"To set a specific style for all menu instances within a view, use the"},{"text":"`menuStyle(_:)` modifier:"},{"text":""},{"text":" Menu(\"PDF\") {"},{"text":" Button(\"Open in Preview\", action: openInPreview)"},{"text":" Button(\"Save as PDF\", action: saveAsPDF)"},{"text":" }"},{"text":" .menuStyle(ButtonMenuStyle())"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"MenuStyle","rhsPrecise":"s:7SwiftUI9MenuStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MenuStyle","preciseIdentifier":"s:7SwiftUI9MenuStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","flipsForRightToLeftLayoutDirection(_:)"],"names":{"title":"flipsForRightToLeftLayoutDirection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flipsForRightToLeftLayoutDirection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether this view mirrors its contents horizontally when the layout"},{"text":"direction is right-to-left."},{"text":""},{"text":"Use `flipsForRightToLeftLayoutDirection(_:)` when you need the system to"},{"text":"horizontally mirror the contents of the view when presented in"},{"text":"a right-to-left layout."},{"text":""},{"text":"To override the layout direction for a specific view, use the"},{"text":"``View/environment(_:_:)`` view modifier to explicitly override"},{"text":"the ``EnvironmentValues/layoutDirection`` environment value for"},{"text":"the view."},{"text":""},{"text":"- Parameter enabled: A Boolean value that indicates whether this view"},{"text":" should have its content flipped horizontally when the layout"},{"text":" direction is right-to-left. By default, views will adjust their layouts"},{"text":" automatically in a right-to-left context and do not need to be mirrored."},{"text":""},{"text":"- Returns: A view that conditionally mirrors its contents"},{"text":" horizontally when the layout direction is right-to-left."}]},"functionSignature":{"parameters":[{"name":"enabled","declarationFragments":[{"kind":"identifier","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flipsForRightToLeftLayoutDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textEditorStyle(_:)"],"names":{"title":"textEditorStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textEditorStyle"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for text editors within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some TextEditorStyle","rhs":"TextEditorStyle","rhsPrecise":"s:7SwiftUI15TextEditorStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textEditorStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toggleStyle(_:)"],"names":{"title":"toggleStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toggleStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for toggles in a view hierarchy."},{"text":""},{"text":"Use this modifier on a ``Toggle`` instance to set a style that defines"},{"text":"the control's appearance and behavior. For example, you can choose"},{"text":"the ``ToggleStyle/switch`` style:"},{"text":""},{"text":" Toggle(\"Vibrate on Ring\", isOn: $vibrateOnRing)"},{"text":" .toggleStyle(.switch)"},{"text":""},{"text":"Built-in styles typically have a similar appearance across platforms,"},{"text":"tailored to the platform's overall style:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of the text Vibrate on Ring appearing to the left of a toggle switch that's on. The toggle's tint color is green. The toggle and its text appear in a rounded rectangle.](View-toggleStyle-1-iOS) |"},{"text":"| macOS | ![A screenshot of the text Vibrate on Ring appearing to the left of a toggle switch that's on. The toggle's tint color is blue. The toggle and its text appear on a neutral background.](View-toggleStyle-1-macOS) |"},{"text":""},{"text":"### Styling toggles in a hierarchy"},{"text":""},{"text":"You can set a style for all toggle instances within a view hierarchy"},{"text":"by applying the style modifier to a container view. For example, you"},{"text":"can apply the ``ToggleStyle/button`` style to an ``HStack``:"},{"text":""},{"text":" HStack {"},{"text":" Toggle(isOn: $isFlagged) {"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" }"},{"text":" Toggle(isOn: $isMuted) {"},{"text":" Label(\"Mute\", systemImage: \"speaker.slash.fill\")"},{"text":" }"},{"text":" }"},{"text":" .toggleStyle(.button)"},{"text":""},{"text":"The example above has the following appearance when `isFlagged` is"},{"text":"`true` and `isMuted` is `false`:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of two buttons arranged horizontally. The first has the image of a flag and is active with a blue tint. The second has an image of a speaker with a line through it and is inactive with a neutral tint.](View-toggleStyle-2-iOS) |"},{"text":"| macOS | ![A screenshot of two buttons arranged horizontally. The first has the image of a flag and is active with a blue tint. The second has an image of a speaker with a line through it and is inactive with a neutral tint.](View-toggleStyle-2-macOS) |"},{"text":""},{"text":"### Automatic styling"},{"text":""},{"text":"If you don't set a style, SwiftUI assumes a value of"},{"text":"``ToggleStyle/automatic``, which corresponds to a context-specific"},{"text":"default. Specify the automatic style explicitly to override a"},{"text":"container's style and revert to the default:"},{"text":""},{"text":" HStack {"},{"text":" Toggle(isOn: $isShuffling) {"},{"text":" Label(\"Shuffle\", systemImage: \"shuffle\")"},{"text":" }"},{"text":" Toggle(isOn: $isRepeating) {"},{"text":" Label(\"Repeat\", systemImage: \"repeat\")"},{"text":" }"},{"text":""},{"text":" Divider()"},{"text":""},{"text":" Toggle(\"Enhance Sound\", isOn: $isEnhanced)"},{"text":" .toggleStyle(.automatic) // Revert to the default style."},{"text":" }"},{"text":" .toggleStyle(.button) // Use button style for toggles in the stack."},{"text":" .labelStyle(.iconOnly) // Omit the title from any labels."},{"text":""},{"text":"The style that SwiftUI uses as the default depends on both the platform"},{"text":"and the context. In macOS, the default in most contexts is a"},{"text":"``ToggleStyle/checkbox``, while in iOS, the default toggle style is a"},{"text":"``ToggleStyle/switch``:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of several horizontally arranged items: two buttons, a vertical divider line, the text Enhance sound, and a switch. The first button has two right facing arrows that cross over in the middle and is active with a blue tint. The second button has one right and one left facing arrow and is inactive with neutral tint. The switch is on and has a green tint.](View-toggleStyle-3-iOS) |"},{"text":"| macOS | ![A screenshot of several horizontally arranged items: two buttons, a vertical divider line, a checkbox, and the text Enhance sound. The first button has two right facing arrows that cross over in the middle and is active with a blue tint. The second button has one right and one left facing arrow and is inactive with a neutral tint. The check box is checked and has a blue tint.](View-toggleStyle-3-macOS) |"},{"text":""},{"text":"> Note: Like toggle style does for toggles, the ``View/labelStyle(_:)``"},{"text":"modifier sets the style for ``Label`` instances in the hierarchy. The"},{"text":"example above demostrates the compact ``LabelStyle/iconOnly`` style,"},{"text":"which is useful for button toggles in space-constrained contexts."},{"text":"Always include a descriptive title for better accessibility."},{"text":""},{"text":"For more information about how SwiftUI chooses a default toggle style,"},{"text":"see the ``ToggleStyle/automatic`` style."},{"text":""},{"text":"- Parameter style: The toggle style to set. Use one of the built-in"},{"text":" values, like ``ToggleStyle/switch`` or ``ToggleStyle/button``,"},{"text":" or a custom style that you define by creating a type that conforms"},{"text":" to the ``ToggleStyle`` protocol."},{"text":""},{"text":"- Returns: A view that uses the specified toggle style for itself"},{"text":" and its child views."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ToggleStyle","rhsPrecise":"s:7SwiftUI11ToggleStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toggleStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToggleStyle","preciseIdentifier":"s:7SwiftUI11ToggleStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputAutocapitalization(_:)"],"names":{"title":"textInputAutocapitalization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputAutocapitalization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets how often the shift key in the keyboard is automatically enabled."},{"text":""},{"text":"Use `textInputAutocapitalization(_:)` when you need to automatically"},{"text":"capitalize words, sentences, or other text like proper nouns."},{"text":""},{"text":"In example below, as the user enters text the shift key is"},{"text":"automatically enabled before every word:"},{"text":""},{"text":" TextField(\"Last, First\", text: $fullName)"},{"text":" .textInputAutocapitalization(.words)"},{"text":""},{"text":"The ``TextInputAutocapitalization`` struct defines the available"},{"text":"autocapitalizing behavior. Providing `nil` to this view modifier does"},{"text":"not change the autocapitalization behavior. The default is"},{"text":"``TextInputAutocapitalization.sentences``."},{"text":""},{"text":"- Parameter autocapitalization: One of the capitalizing behaviors"},{"text":"defined in the ``TextInputAutocapitalization`` struct or nil."}]},"functionSignature":{"parameters":[{"name":"autocapitalization","declarationFragments":[{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputAutocapitalization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"autocapitalization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8disabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disabled(_:)"],"names":{"title":"disabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a condition that controls whether users can interact with this"},{"text":"view."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button isn't interactive"},{"text":"because the outer `disabled(_:)` modifier overrides the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(Text(\"Press\")) {}"},{"text":" .disabled(false)"},{"text":" }"},{"text":" .disabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether users can"},{"text":" interact with this view."},{"text":""},{"text":"- Returns: A view that controls whether users can interact with this"},{"text":" view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onInteractiveResizeChange(_:)"],"names":{"title":"onInteractiveResizeChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onInteractiveResizeChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the enclosing window is being"},{"text":"interactively resized."},{"text":""},{"text":"Use this modifier to adjust how your view behaves when a window is in"},{"text":"the process of being resized by the user. The action provided to this"},{"text":"modifier will be called when the resize action begins and ends."},{"text":""},{"text":"For example, you can adjust the frame rate of a custom Metal renderer"},{"text":"during interactive resize:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var renderer: MetalRenderer"},{"text":" var body: some View {"},{"text":" MetalRepresentable(renderer: renderer)"},{"text":" .onInteractiveResizeChange { isResizing in"},{"text":" // Let the renderer know the window is being actively"},{"text":" // resized, so that it can adjust frame rate,"},{"text":" // pause animations, etc."},{"text":" renderer.handleWindowResize(isResizing: isResizing)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the state of the window's"},{"text":" interactive resize changes."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onInteractiveResizeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","indexViewStyle(_:)"],"names":{"title":"indexViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"indexViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for the index view within the current environment."},{"text":""},{"text":"- Parameter style: The style to apply to this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"IndexViewStyle","rhsPrecise":"s:7SwiftUI14IndexViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"indexViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"IndexViewStyle","preciseIdentifier":"s:7SwiftUI14IndexViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewStyle(_:)"],"names":{"title":"tabViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for the tab view within the current environment."},{"text":""},{"text":"- Parameter style: The style to apply to this tab view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TabViewStyle","rhsPrecise":"s:7SwiftUI12TabViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TabViewStyle","preciseIdentifier":"s:7SwiftUI12TabViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disclosureGroupStyle(_:)"],"names":{"title":"disclosureGroupStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disclosureGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for disclosure groups within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"DisclosureGroupStyle","rhsPrecise":"s:7SwiftUI20DisclosureGroupStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disclosureGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DisclosureGroupStyle","preciseIdentifier":"s:7SwiftUI20DisclosureGroupStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinuousHover(coordinateSpace:perform:)"],"names":{"title":"onContinuousHover(coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the pointer enters, moves within, and"},{"text":"exits the view's bounds."},{"text":""},{"text":"Use this modifier to define a region for detecting pointer movement with"},{"text":"a view. The following example updates a small rectangle's position"},{"text":"and style by modifying `hoverLocation` and `isHovering` as the pointer"},{"text":"moves within the larger, red rectangle:"},{"text":""},{"text":" @State private var hoverLocation: CGPoint = .zero"},{"text":" @State private var isHovering = false"},{"text":""},{"text":" var body: some View {"},{"text":" Color.red"},{"text":" .frame(width: 400, height: 400)"},{"text":" .onContinuousHover { phase in"},{"text":" switch phase {"},{"text":" case .active(let location):"},{"text":" hoverLocation = location"},{"text":" isHovering = true"},{"text":" case .ended:"},{"text":" isHovering = false"},{"text":" }"},{"text":" }"},{"text":" .overlay {"},{"text":" Rectangle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" .foregroundStyle(isHovering ? .green : .blue)"},{"text":" .offset(x: hoverLocation.x, y: hoverLocation.y)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - coordinateSpace: The coordinate space for the"},{"text":" location values. The default value is ``CoordinateSpace/local``."},{"text":" - action: The action to perform whenever the pointer enters,"},{"text":" moves within, or exits the view's bounds. The closure takes"},{"text":" a `phase` input that has the value ``HoverPhase/active(_:)`` and"},{"text":" contains the pointer's coordinates if the pointer is within the"},{"text":" view's bounds. The closure receives the ``HoverPhase/ended``"},{"text":" phase when the pointer leaves the view's bounds."},{"text":""},{"text":"- Returns: A view that calls `action` when the pointer enters,"},{"text":" moves within, or exits the view's bounds."}]},"functionSignature":{"parameters":[{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(name:priority:file:line:_:)"],"names":{"title":"task(name:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous task to perform before this view appears."},{"text":""},{"text":"Use this modifier to perform an asynchronous task with a lifetime that"},{"text":"matches that of the modified view. If the task doesn't finish"},{"text":"before SwiftUI removes the view or the view changes identity, SwiftUI"},{"text":"cancels the task."},{"text":""},{"text":"Use the `await` keyword inside the task to"},{"text":"wait for an asynchronous call to complete, or to wait on the values of"},{"text":"an "},{"text":"instance. For example, you can modify a ``Text`` view to start a task"},{"text":"that loads content from a remote resource:"},{"text":""},{"text":" let url = URL(string: \"https://example.com\")!"},{"text":" @State private var message = \"Loading...\""},{"text":""},{"text":" var body: some View {"},{"text":" Text(message)"},{"text":" .task {"},{"text":" do {"},{"text":" var receivedLines = [String]()"},{"text":" for try await line in url.lines {"},{"text":" receivedLines.append(line)"},{"text":" message = \"Received \\(receivedLines.count) lines\""},{"text":" }"},{"text":" } catch {"},{"text":" message = \"Failed to load\""},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to get the content stored at the specified"},{"text":" as an"},{"text":"asynchronous sequence of strings. When each new line arrives, the body"},{"text":"of the `for`-`await`-`in` loop stores the line in an array of strings"},{"text":"and updates the content of the text view to report the latest line"},{"text":"count."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI will automatically cancel the task"},{"text":" at some point after the view disappears before the action completes."},{"text":""},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(name:executorPreference:priority:file:line:action:)"],"names":{"title":"task(name:executorPreference:priority:file:line:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous task to perform before this view appears."},{"text":""},{"text":"Use this modifier to perform an asynchronous task with a lifetime that"},{"text":"matches that of the modified view. If the task doesn't finish"},{"text":"before SwiftUI removes the view or the view changes identity, SwiftUI"},{"text":"cancels the task."},{"text":""},{"text":"Use the `await` keyword inside the task to"},{"text":"wait for an asynchronous call to complete, or to wait on the values of"},{"text":"an "},{"text":"instance. For example, you can modify a ``Text`` view to start a task"},{"text":"that loads content from a remote resource:"},{"text":""},{"text":" let url = URL(string: \"https://example.com\")!"},{"text":" @State private var message = \"Loading...\""},{"text":""},{"text":" var body: some View {"},{"text":" Text(message)"},{"text":" .task {"},{"text":" do {"},{"text":" var receivedLines = [String]()"},{"text":" for try await line in url.lines {"},{"text":" receivedLines.append(line)"},{"text":" message = \"Received \\(receivedLines.count) lines\""},{"text":" }"},{"text":" } catch {"},{"text":" message = \"Failed to load\""},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to get the content stored at the specified"},{"text":" as an"},{"text":"asynchronous sequence of strings. When each new line arrives, the body"},{"text":"of the `for`-`await`-`in` loop stores the line in an array of strings"},{"text":"and updates the content of the text view to report the latest line"},{"text":"count."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`."},{"text":" - taskExecutor: The task executor that the child task should be"},{"text":" started on and keep using."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI will automatically cancel the task"},{"text":" at some point after the view disappears before the action completes."},{"text":""},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"executorPreference","internalName":"taskExecutor","declarationFragments":[{"kind":"identifier","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":4}},{"domain":"macOS","introduced":{"major":26,"minor":4}},{"domain":"tvOS","introduced":{"major":26,"minor":4}},{"domain":"visionOS","introduced":{"major":26,"minor":4}},{"domain":"watchOS","introduced":{"major":26,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(id:name:priority:file:line:_:)"],"names":{"title":"task(id:name:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a task to perform before this view appears or when a specified"},{"text":"value changes."},{"text":""},{"text":"This method behaves like ``View/task(priority:_:)``, except that it also"},{"text":"cancels and recreates the task when a specified value changes. To detect"},{"text":"a change, the modifier tests whether a new value for the `id` parameter"},{"text":"equals the previous value. For this to work,"},{"text":"the value's type must conform to the"},{"text":" protocol."},{"text":""},{"text":"For example, if you define an equatable `Server` type that posts custom"},{"text":"notifications whenever its state changes --- for example, from _signed"},{"text":"out_ to _signed in_ --- you can use the task modifier to update"},{"text":"the contents of a ``Text`` view to reflect the state of the"},{"text":"currently selected server:"},{"text":""},{"text":" Text(status ?? \"Signed Out\")"},{"text":" .task(id: server) {"},{"text":" let sequence = NotificationCenter.default.notifications("},{"text":" named: .didUpdateStatus,"},{"text":" object: server"},{"text":" ).compactMap {"},{"text":" $0.userInfo?[\"status\"] as? String"},{"text":" }"},{"text":" for await value in sequence {"},{"text":" status = value"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to create an asynchronous sequence of notifications, given by an"},{"text":""},{"text":"instance. The example then maps the notification sequence to a sequence"},{"text":"of strings that correspond to values stored with each notification."},{"text":""},{"text":"Elsewhere, the server defines a custom `didUpdateStatus` notification:"},{"text":""},{"text":" extension NSNotification.Name {"},{"text":" static var didUpdateStatus: NSNotification.Name {"},{"text":" NSNotification.Name(\"didUpdateStatus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Whenever the server status changes, like after the user signs in, the"},{"text":"server posts a notification of this custom type:"},{"text":""},{"text":" let notification = Notification("},{"text":" name: .didUpdateStatus,"},{"text":" object: self,"},{"text":" userInfo: [\"status\": \"Signed In\"])"},{"text":" NotificationCenter.default.post(notification)"},{"text":""},{"text":"The task attached to the ``Text`` view gets and displays the status"},{"text":"value from the notification's user information dictionary. When the user"},{"text":"chooses a different server, SwiftUI cancels the task and creates a new"},{"text":"one, which then waits for notifications from the new server."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The value to observe for changes. The value must conform"},{"text":" to the "},{"text":" protocol."},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI can automatically cancel the task"},{"text":" after the view disappears before the action completes. If the"},{"text":" `id` value changes, SwiftUI cancels and restarts the task."},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears, or restarts the task when the `id` value changes."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(id:name:executorPreference:priority:file:line:_:)"],"names":{"title":"task(id:name:executorPreference:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a task to perform before this view appears or when a specified"},{"text":"value changes."},{"text":""},{"text":"This method behaves like ``View/task(priority:_:)``, except that it also"},{"text":"cancels and recreates the task when a specified value changes. To detect"},{"text":"a change, the modifier tests whether a new value for the `id` parameter"},{"text":"equals the previous value. For this to work,"},{"text":"the value's type must conform to the"},{"text":" protocol."},{"text":""},{"text":"For example, if you define an equatable `Server` type that posts custom"},{"text":"notifications whenever its state changes --- for example, from _signed"},{"text":"out_ to _signed in_ --- you can use the task modifier to update"},{"text":"the contents of a ``Text`` view to reflect the state of the"},{"text":"currently selected server:"},{"text":""},{"text":" Text(status ?? \"Signed Out\")"},{"text":" .task(id: server) {"},{"text":" let sequence = NotificationCenter.default.notifications("},{"text":" named: .didUpdateStatus,"},{"text":" object: server"},{"text":" ).compactMap {"},{"text":" $0.userInfo?[\"status\"] as? String"},{"text":" }"},{"text":" for await value in sequence {"},{"text":" status = value"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to create an asynchronous sequence of notifications, given by an"},{"text":""},{"text":"instance. The example then maps the notification sequence to a sequence"},{"text":"of strings that correspond to values stored with each notification."},{"text":""},{"text":"Elsewhere, the server defines a custom `didUpdateStatus` notification:"},{"text":""},{"text":" extension NSNotification.Name {"},{"text":" static var didUpdateStatus: NSNotification.Name {"},{"text":" NSNotification.Name(\"didUpdateStatus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Whenever the server status changes, like after the user signs in, the"},{"text":"server posts a notification of this custom type:"},{"text":""},{"text":" let notification = Notification("},{"text":" name: .didUpdateStatus,"},{"text":" object: self,"},{"text":" userInfo: [\"status\": \"Signed In\"])"},{"text":" NotificationCenter.default.post(notification)"},{"text":""},{"text":"The task attached to the ``Text`` view gets and displays the status"},{"text":"value from the notification's user information dictionary. When the user"},{"text":"chooses a different server, SwiftUI cancels the task and creates a new"},{"text":"one, which then waits for notifications from the new server."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The value to observe for changes. The value must conform"},{"text":" to the "},{"text":" protocol."},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`."},{"text":" - taskExecutor: The task executor that the child task should be"},{"text":" started on and keep using."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI can automatically cancel the task"},{"text":" after the view disappears before the action completes. If the"},{"text":" `id` value changes, SwiftUI cancels and restarts the task."},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears, or restarts the task when the `id` value changes."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"executorPreference","internalName":"taskExecutor","declarationFragments":[{"kind":"identifier","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":4}},{"domain":"macOS","introduced":{"major":26,"minor":4}},{"domain":"tvOS","introduced":{"major":26,"minor":4}},{"domain":"visionOS","introduced":{"major":26,"minor":4}},{"domain":"watchOS","introduced":{"major":26,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","springLoadingBehavior(_:)"],"names":{"title":"springLoadingBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"springLoadingBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spring loading behavior this view."},{"text":""},{"text":"Spring loading refers to a view being activated during a drag and drop"},{"text":"interaction. On iOS this can occur when pausing briefly on top of a"},{"text":"view with dragged content. On macOS this can occur with similar brief"},{"text":"pauses or on pressure-sensitive systems by \"force clicking\" during the"},{"text":"drag. This has no effect on tvOS or watchOS."},{"text":""},{"text":"This is commonly used with views that have a navigation or presentation"},{"text":"effect, allowing the destination to be revealed without pausing the"},{"text":"drag interaction. For example, a button that reveals a list of folders"},{"text":"that a dragged item can be dropped onto."},{"text":""},{"text":" Button {"},{"text":" showFolders = true"},{"text":" } label: {"},{"text":" Label(\"Show Folders\", systemImage: \"folder\")"},{"text":" }"},{"text":" .springLoadingBehavior(.enabled)"},{"text":""},{"text":"Unlike `disabled(_:)`, this modifier overrides the value set by an"},{"text":"ancestor view rather than being unioned with it. For example, the below"},{"text":"button would allow spring loading:"},{"text":""},{"text":" HStack {"},{"text":" Button {"},{"text":" showFolders = true"},{"text":" } label: {"},{"text":" Label(\"Show Folders\", systemImage: \"folder\")"},{"text":" }"},{"text":" .springLoadingBehavior(.enabled)"},{"text":""},{"text":" ..."},{"text":" }"},{"text":" .springLoadingBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: Whether spring loading is enabled or not. If"},{"text":" unspecified, the default behavior is `.automatic.`"}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"springLoadingBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTransition(_:axis:transition:)"],"names":{"title":"scrollTransition(_:axis:transition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies the given transition, animating between the phases"},{"text":"of the transition as this view appears and disappears within the"},{"text":"visible region of the containing scroll view."},{"text":""},{"text":"- Parameters:"},{"text":" - configuration: The configuration controlling how the"},{"text":" transition will be applied. The configuration will be applied both"},{"text":" while the view is coming into view and while it is disappearing (the"},{"text":" transition is symmetrical)."},{"text":" - axis: The axis of the containing scroll view over which the"},{"text":" transition will be applied. The default value of `nil` uses the"},{"text":" axis of the innermost containing scroll view, or `.vertical` if"},{"text":" the innermost scroll view is scrollable along both axes."},{"text":" - transition: A closure that applies visual effects as a function of"},{"text":" the provided phase."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?"}]},{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":" = .interactive, "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTransition(topLeading:bottomTrailing:axis:transition:)"],"names":{"title":"scrollTransition(topLeading:bottomTrailing:axis:transition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies the given transition, animating between the phases"},{"text":"of the transition as this view appears and disappears within the"},{"text":"visible region of the containing scroll view."},{"text":""},{"text":"- Parameters:"},{"text":" - topLeading: The configuration that drives the transition when"},{"text":" the view is about to appear at the top edge of a vertical"},{"text":" scroll view, or the leading edge of a horizontal scroll view."},{"text":" - bottomTrailing: The configuration that drives the transition when"},{"text":" the view is about to appear at the bottom edge of a vertical"},{"text":" scroll view, or the trailing edge of a horizontal scroll view."},{"text":" - axis: The axis of the containing scroll view over which the"},{"text":" transition will be applied. The default value of `nil` uses the"},{"text":" axis of the innermost containing scroll view, or `.vertical` if"},{"text":" the innermost scroll view is scrollable along both axes."},{"text":" - transition: A closure that applies visual effects as a function of"},{"text":" the provided phase."}]},"functionSignature":{"parameters":[{"name":"topLeading","declarationFragments":[{"kind":"identifier","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"bottomTrailing","declarationFragments":[{"kind":"identifier","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?"}]},{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter text: The explicit text value to use as a type select"},{"text":"equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter stringKey: The localized string key to use as a type select"},{"text":"equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"stringKey","declarationFragments":[{"kind":"identifier","spelling":"stringKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"stringKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter stringResource: The localized string resource to use as a"},{"text":"type select equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"stringResource","declarationFragments":[{"kind":"identifier","spelling":"stringResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"stringResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter string: The string to use as a type select equivalent for a"},{"text":"view in a collection."}]},"functionSignature":{"parameters":[{"name":"string","declarationFragments":[{"kind":"identifier","spelling":"string"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"string"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onHover(perform:)"],"names":{"title":"onHover(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user moves the pointer over or away"},{"text":"from the view's frame."},{"text":""},{"text":"Calling this method defines a region for detecting pointer movement with"},{"text":"the size and position of this view."},{"text":""},{"text":"- Parameter action: The action to perform whenever the pointer enters or"},{"text":" exits this view's frame. If the pointer is in the view's frame, the"},{"text":" `action` closure passes `true` as a parameter; otherwise, `false`."},{"text":""},{"text":"- Returns: A view that triggers `action` when the pointer enters or"},{"text":" exits this view's frame."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSeparator(_:edges:)"],"names":{"title":"listRowSeparator(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the display mode for the separator associated with this specific row."},{"text":""},{"text":"Separators can be presented above and below a row. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter of the separator visibility."},{"text":""},{"text":"The following example shows a simple grouped list whose row separators"},{"text":"are hidden:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparator(.hidden)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the color of a row separators, use"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To hide or change the tint color for a section separators, use"},{"text":"``View/listSectionSeparator(_:edges:)`` and"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of this row's separators."},{"text":" - edges: The set of row edges for which this preference applies."},{"text":" The list style might already decide to not display separators for"},{"text":" some edges, typically the top edge. The default is"},{"text":" ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSeparatorTint(_:edges:)"],"names":{"title":"listRowSeparatorTint(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint color associated with a row."},{"text":""},{"text":"Separators can be presented above and below a row. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter for the separator tint."},{"text":""},{"text":"The following example shows a simple grouped list whose row separators"},{"text":"are tinted based on row-specific data:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To hide a row separators, use"},{"text":"``View/listRowSeparator(_:edges:)``."},{"text":"To hide or change the tint color for a section separator, use"},{"text":"``View/listSectionSeparator(_:edges:)`` and"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The color to use to tint the row separators, or `nil` to"},{"text":" use the default color for the current list style."},{"text":" - edges: The set of row edges for which the tint applies."},{"text":" The list style might decide to not display certain separators,"},{"text":" typically the top edge. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSeparator(_:edges:)"],"names":{"title":"listSectionSeparator(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to hide the separator associated with a list section."},{"text":""},{"text":"Separators can be presented above and below a section. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter of the separator visibility."},{"text":""},{"text":"The following example shows a simple grouped list whose bottom"},{"text":"sections separator are hidden:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage) { garage in"},{"text":" Section(header: Text(garage.location)) {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listSectionSeparator(.hidden, edges: .bottom)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the visibility and tint color for a row separator, use"},{"text":"``View/listRowSeparator(_:edges:)`` and"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To set the tint color for a section separator, use"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of this section's separators."},{"text":" - edges: The set of row edges for which the preference applies."},{"text":" The list style might already decide to not display separators for"},{"text":" some edges. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSeparatorTint(_:edges:)"],"names":{"title":"listSectionSeparatorTint(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint color associated with a section."},{"text":""},{"text":"Separators can be presented above and below a section. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter for the separator tint."},{"text":""},{"text":"The following example shows a simple grouped list whose section separators"},{"text":"are tinted based on section-specific data:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage) { garage in"},{"text":" Section(header: Text(garage.location)) {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listSectionSeparatorTint("},{"text":" garage.cars.last?.brandColor, edges: .bottom)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the visibility and tint color for a row separator, use"},{"text":"``View/listRowSeparator(_:edges:)`` and"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To hide a section separator, use"},{"text":"``View/listSectionSeparator(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The color to use to tint the section separators, or `nil` to"},{"text":" use the default color for the current list style."},{"text":" - edges: The set of row edges for which the tint applies."},{"text":" The list style might decide to not display certain separators,"},{"text":" typically the top edge. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilitySortPriority(_:)"],"names":{"title":"accessibilitySortPriority(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilitySortPriority"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sort priority order for this view's accessibility element,"},{"text":"relative to other elements at the same level."},{"text":""},{"text":"Higher numbers are sorted first. The default sort priority is zero."}]},"functionSignature":{"parameters":[{"name":"sortPriority","declarationFragments":[{"kind":"identifier","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilitySortPriority"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollAction(_:)"],"names":{"title":"accessibilityScrollAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility scroll action to the view. Actions allow"},{"text":"assistive technologies, such as the VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how a scroll action to trigger"},{"text":"a refresh could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ContentView()"},{"text":" }"},{"text":" .accessibilityScrollAction { edge in"},{"text":" if edge == .top {"},{"text":" // Refresh content"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogDefaultDirectory(_:)"],"names":{"title":"fileDialogDefaultDirectory(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogDefaultDirectory"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the ``fileExporter``, ``fileImporter``, or ``fileMover`` to"},{"text":"open with the specified default directory."},{"text":""},{"text":"- Parameter defaultDirectory: The directory to show when"},{"text":" the system file dialog launches. If the given file dialog has"},{"text":" a `fileDialogCustomizationID` if stores the user-chosen directory and subsequently"},{"text":" opens with it, ignoring the default value provided in this modifier."}]},"functionSignature":{"parameters":[{"name":"defaultDirectory","declarationFragments":[{"kind":"identifier","spelling":"defaultDirectory"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogDefaultDirectory"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultDirectory"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogCustomizationID(_:)"],"names":{"title":"fileDialogCustomizationID(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogCustomizationID"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the `fileExporter`, `fileImporter`,"},{"text":"or `fileMover` to persist and restore the file dialog configuration."},{"text":""},{"text":"Among other parameters, it stores the current directory,"},{"text":"view style (e.g., Icons, List, Columns), recent places,"},{"text":"and expanded window size."},{"text":"It enables a refined user experience; for example,"},{"text":"when importing an image, the user might switch to the Icons view,"},{"text":"but the List view could be more convenient in another context."},{"text":"The file dialog stores these settings and applies them"},{"text":"every time before presenting the panel."},{"text":"If not provided, on every launch, the file dialog"},{"text":"uses the default configuration."},{"text":""},{"text":"- Parameter id: An identifier of the configuration."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogCustomizationID"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``, or ``fileMover``"},{"text":"with a custom text that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter message: The optional text to use as the file dialog message."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter messageKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"messageKey","declarationFragments":[{"kind":"identifier","spelling":"messageKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"messageKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter messageResource: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"messageResource","declarationFragments":[{"kind":"identifier","spelling":"messageResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"messageResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter message: The string to use as the file dialog message."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter label: The string to use as the label for the confirmation button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with custom text as a confirmation button label."},{"text":""},{"text":"- Parameter label: The optional text to use as the label for the confirmation button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter labelKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter label: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a text to use as a label for the file name field."},{"text":"- Parameter label: The optional text to use as the label for the file name field."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter labelKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter label: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter label: The string to use as the label for the file name field."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogURLEnabled(_:)"],"names":{"title":"fileDialogURLEnabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogURLEnabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileImporter``"},{"text":"or ``fileMover`` to conditionally disable presented URLs."},{"text":""},{"text":"- Parameter predicate: The predicate that evaluates the"},{"text":" URLs presented to the user to conditionally disable them."},{"text":" The implementation is expected to have constant complexity"},{"text":" and should not access the files contents or metadata. A common use case"},{"text":" is inspecting the path or the file name."}]},"functionSignature":{"parameters":[{"name":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogURLEnabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogImportsUnresolvedAliases(_:)"],"names":{"title":"fileDialogImportsUnresolvedAliases(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogImportsUnresolvedAliases"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` behavior when a user chooses an alias."},{"text":""},{"text":"By default, file dialogs resolve aliases and"},{"text":"provide the URL of the item referred to by the chosen alias."},{"text":"This modifier allows control of this behavior: pass `true` if the"},{"text":"application doesn't want file dialog to resolve aliases."},{"text":"- Parameter imports: A Boolean value that indicates"},{"text":" if the application receives unresolved or resolved URLs"},{"text":" when a user chooses aliases."}]},"functionSignature":{"parameters":[{"name":"imports","declarationFragments":[{"kind":"identifier","spelling":"imports"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogImportsUnresolvedAliases"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"imports"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogBrowserOptions(_:)"],"names":{"title":"fileDialogBrowserOptions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogBrowserOptions"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` to provide a refined URL search experience: include or exclude"},{"text":"hidden files, allow searching by tag, etc."},{"text":""},{"text":"- Parameter options: The search options to apply to a given file dialog."}]},"functionSignature":{"parameters":[{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogBrowserOptions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The title of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: The title of the suppression toggle in the dialog."},{"text":" This parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" Text(\"Do not ask about erasing items again\"),"},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: The label of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a default suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle(isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter isSuppressed: Whether the suppression toggle is on or off"},{"text":" in the dialog."}]},"functionSignature":{"parameters":[{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:onCompletion:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import an existing"},{"text":"file."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, an application can have a button that allows the user to choose the default directory"},{"text":"with document templates loaded on every launch. Such a button might look like this:"},{"text":""},{"text":" struct PickTemplatesDirectoryButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var onTemplatesDirectoryPicked: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose templates directory\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.directory]"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let directory):"},{"text":" // gain access to the directory"},{"text":" let gotAccess = directory.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" onTemplatesDirectoryPicked(directory)"},{"text":" // release access"},{"text":" directory.stopAccessingSecurityScopedResource()"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` while the file importer is"},{"text":" presented will have no immediate effect, however will apply the next"},{"text":" time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import multiple"},{"text":"files."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to choose multiple PDF files for the application"},{"text":"to combine them later, might look like this:"},{"text":""},{"text":" struct PickPDFsButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var handlePickedPDF: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose PDFs to combine\", systemImage: \"doc.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.pdf],"},{"text":" allowsMultipleSelection: true"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let files):"},{"text":" files.forEach { file in"},{"text":" // gain access to the directory"},{"text":" let gotAccess = file.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" handlePickedPDF(file)"},{"text":" // release access"},{"text":" file.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` or `allowsMultipleSelection`"},{"text":" while the file importer is presented will have no immediate effect,"},{"text":" however will apply the next time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - allowsMultipleSelection: Whether the importer allows the user to"},{"text":" select more than one file to import."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"allowsMultipleSelection","declarationFragments":[{"kind":"identifier","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import multiple"},{"text":"files."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to choose multiple PDF files for the application"},{"text":"to combine them later, might look like this:"},{"text":""},{"text":" struct PickPDFsButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var handlePickedPDF: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose PDFs to combine\", systemImage: \"doc.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.pdf],"},{"text":" allowsMultipleSelection: true"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let files):"},{"text":" files.forEach { file in"},{"text":" // gain access to the directory"},{"text":" let gotAccess = file.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" handlePickedPDF(file)"},{"text":" // release access"},{"text":" file.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` or `allowsMultipleSelection`"},{"text":" while the file importer is presented will have no immediate effect,"},{"text":" however will apply the next time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - allowsMultipleSelection: Whether the importer allows the user to"},{"text":" select more than one file to import."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether the operation"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"allowsMultipleSelection","declarationFragments":[{"kind":"identifier","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sheet(item:onDismiss:content:)"],"names":{"title":"sheet(item:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a sheet using the given item as a data source"},{"text":"for the sheet's content."},{"text":""},{"text":"Use this method when you need to present a modal view with content"},{"text":"from a custom data source. The example below shows a custom data source"},{"text":"`InventoryItem` that the `content` closure uses to populate the display"},{"text":"the action sheet shows to the user:"},{"text":""},{"text":" struct ShowPartDetail: View {"},{"text":" @State private var sheetDetail: InventoryItem?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Part Details\") {"},{"text":" sheetDetail = InventoryItem("},{"text":" id: \"0123456789\","},{"text":" partNumber: \"Z-1234A\","},{"text":" quantity: 100,"},{"text":" name: \"Widget\")"},{"text":" }"},{"text":" .sheet(item: $sheetDetail,"},{"text":" onDismiss: didDismiss) { detail in"},{"text":" VStack(alignment: .leading, spacing: 20) {"},{"text":" Text(\"Part Number: \\(detail.partNumber)\")"},{"text":" Text(\"Name: \\(detail.name)\")"},{"text":" Text(\"Quantity On-Hand: \\(detail.quantity)\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" sheetDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct InventoryItem: Identifiable {"},{"text":" var id: String"},{"text":" let partNumber: String"},{"text":" let quantity: Int"},{"text":" let name: String"},{"text":" }"},{"text":""},{"text":"![A view showing a custom structure acting as a data source, providing"},{"text":"data to a modal sheet.](SwiftUI-View-SheetItemContent.png)"},{"text":""},{"text":"In vertically compact environments, such as iPhone in landscape"},{"text":"orientation, a sheet presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".sheet(item: $sheetDetail,"},{"text":" onDismiss: didDismiss) { detail in"},{"text":" VStack(alignment: .leading, spacing: 20) {"},{"text":" Text(\"Part Number: \\(detail.partNumber)\")"},{"text":" Text(\"Name: \\(detail.name)\")"},{"text":" Text(\"Quantity On-Hand: \\(detail.quantity)\")"},{"text":" }"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":" .onTapGesture {"},{"text":" sheetDetail = nil"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"> Passing a `.none` value for a sheet has no effect."},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the sheet."},{"text":" When `item` is non-`nil`, the system passes the item's content to"},{"text":" the modifier's closure. You display this content in a sheet that you"},{"text":" create that the system displays to the user. If `item` changes,"},{"text":" the system dismisses the sheet and replaces it with a new one"},{"text":" using the same process."},{"text":" - onDismiss: The closure to execute when dismissing the sheet."},{"text":" - content: A closure returning the content of the sheet."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sheet(isPresented:onDismiss:content:)"],"names":{"title":"sheet(isPresented:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a sheet when a binding to a Boolean value that you"},{"text":"provide is true."},{"text":""},{"text":"Use this method when you want to present a modal view to the"},{"text":"user when a Boolean value you provide is true. The example"},{"text":"below displays a modal view of the mockup for a software license"},{"text":"agreement when the user toggles the `isShowingSheet` variable by"},{"text":"clicking or tapping on the \"Show License Agreement\" button:"},{"text":""},{"text":" struct ShowLicenseAgreement: View {"},{"text":" @State private var isShowingSheet = false"},{"text":" var body: some View {"},{"text":" Button(action: {"},{"text":" isShowingSheet.toggle()"},{"text":" }) {"},{"text":" Text(\"Show License Agreement\")"},{"text":" }"},{"text":" .sheet(isPresented: $isShowingSheet,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" .padding(50)"},{"text":" Text(\"\"\""},{"text":" Terms and conditions go here."},{"text":" \"\"\")"},{"text":" .padding(50)"},{"text":" Button(\"Dismiss\","},{"text":" action: { isShowingSheet.toggle() })"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a full-screen modal sheet showing the mockup of a"},{"text":"software license agreement with a Dismiss"},{"text":"button.](SwiftUI-View-SheetIsPresentingContent.png)"},{"text":""},{"text":"In vertically compact environments, such as iPhone in landscape"},{"text":"orientation, a sheet presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".sheet(isPresented: $isShowingSheet,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" .padding(50)"},{"text":" Text(\"\"\""},{"text":" Terms and conditions go here."},{"text":" \"\"\")"},{"text":" .padding(50)"},{"text":" Button(\"Dismiss\","},{"text":" action: { isShowingSheet.toggle() })"},{"text":" }"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"> Passing a `.none` value for a sheet has no effect."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the sheet that you create in the modifier's"},{"text":" `content` closure."},{"text":" - onDismiss: The closure to execute when dismissing the sheet."},{"text":" - content: A closure that returns the content of the sheet."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fullScreenCover(item:onDismiss:content:)"],"names":{"title":"fullScreenCover(item:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a modal view that covers as much of the screen as"},{"text":"possible using the binding you provide as a data source for the"},{"text":"sheet's content."},{"text":""},{"text":"Use this method to display a modal view that covers as much of the"},{"text":"screen as possible. In the example below a custom structure —"},{"text":"`CoverData` — provides data for the full-screen view to display in the"},{"text":"`content` closure when the user clicks or taps the"},{"text":"\"Present Full-Screen Cover With Data\" button:"},{"text":""},{"text":" struct FullScreenCoverItemOnDismissContent: View {"},{"text":" @State private var coverData: CoverData?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Present Full-Screen Cover With Data\") {"},{"text":" coverData = CoverData(body: \"Custom Data\")"},{"text":" }"},{"text":" .fullScreenCover(item: $coverData,"},{"text":" onDismiss: didDismiss) { details in"},{"text":" VStack(spacing: 20) {"},{"text":" Text(\"\\(details.body)\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" coverData = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":""},{"text":" }"},{"text":""},{"text":" struct CoverData: Identifiable {"},{"text":" var id: String {"},{"text":" return body"},{"text":" }"},{"text":" let body: String"},{"text":" }"},{"text":""},{"text":"![A full-screen modal view that shows Custom"},{"text":"Content.](SwiftUI-FullScreenCoverItemOnDismissContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the sheet."},{"text":" When `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You display this content in a sheet that you"},{"text":" create that the system displays to the user. If `item` changes,"},{"text":" the system dismisses the currently displayed sheet and replaces"},{"text":" it with a new one using the same process."},{"text":" - onDismiss: The closure to execute when dismissing the modal view."},{"text":" - content: A closure returning the content of the modal view."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fullScreenCover(isPresented:onDismiss:content:)"],"names":{"title":"fullScreenCover(isPresented:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a modal view that covers as much of the screen as"},{"text":"possible when binding to a Boolean value you provide is true."},{"text":""},{"text":"Use this method to show a modal view that covers as much of the screen"},{"text":"as possible. The example below displays a custom view when the user"},{"text":"toggles the value of the `isPresenting` binding:"},{"text":""},{"text":" struct FullScreenCoverPresentedOnDismiss: View {"},{"text":" @State private var isPresenting = false"},{"text":" var body: some View {"},{"text":" Button(\"Present Full-Screen Cover\") {"},{"text":" isPresenting.toggle()"},{"text":" }"},{"text":" .fullScreenCover(isPresented: $isPresenting,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"A full-screen modal view.\")"},{"text":" .font(.title)"},{"text":" Text(\"Tap to Dismiss\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" isPresenting.toggle()"},{"text":" }"},{"text":" .foregroundColor(.white)"},{"text":" .frame(maxWidth: .infinity,"},{"text":" maxHeight: .infinity)"},{"text":" .background(Color.blue)"},{"text":" .ignoresSafeArea(edges: .all)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A full-screen modal view with the text A full-screen modal view"},{"text":"and Tap to Dismiss.](SwiftUI-FullScreenCoverIsPresented.png)"},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the sheet."},{"text":" - onDismiss: The closure to execute when dismissing the modal view."},{"text":" - content: A closure that returns the content of the modal view."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultAppStorage(_:)"],"names":{"title":"defaultAppStorage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAppStorage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The default store used by `AppStorage` contained within the view."},{"text":""},{"text":"If unspecified, the default store for a view hierarchy is"},{"text":"`UserDefaults.standard`, but can be set a to a custom one. For example,"},{"text":"sharing defaults between an app and an extension can override the"},{"text":"default store to one created with `UserDefaults.init(suiteName:_)`."},{"text":""},{"text":"- Parameter store: The user defaults to use as the default"},{"text":" store for `AppStorage`."}]},"functionSignature":{"parameters":[{"name":"store","declarationFragments":[{"kind":"identifier","spelling":"store"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAppStorage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"store"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onSubmit(of:_:)"],"names":{"title":"onSubmit(of:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onSubmit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user submits a value to this view."},{"text":""},{"text":"Different views may have different triggers for the provided action."},{"text":"A ``TextField``, or ``SecureField`` will trigger this action when the"},{"text":"user hits the hardware or software return key. This modifier may also"},{"text":"bind this action to a default action keyboard shortcut. You may set this"},{"text":"action on an individual view or an entire view hierarchy."},{"text":""},{"text":" TextField(\"Username\", text: $username)"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"You can use the ``View/submitScope(_:)`` modifier to stop a submit"},{"text":"trigger from a control from propagating higher up in the view hierarchy"},{"text":"to higher `View.onSubmit(of:_:)` modifiers."},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", text: $viewModel.userName)"},{"text":" SecureField(\"Password\", text: $viewModel.password)"},{"text":""},{"text":" TextField(\"Tags\", text: $viewModel.tags)"},{"text":" .submitScope()"},{"text":" }"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"You can use different submit triggers to filter the types of triggers"},{"text":"that should invoke the provided submission action. For example, you"},{"text":"may provide a value of ``SubmitTriggers/search`` to only hear"},{"text":"submission triggers that originate from search fields vended by"},{"text":"searchable modifiers."},{"text":""},{"text":" @StateObject private var viewModel = ViewModel()"},{"text":""},{"text":" NavigationView {"},{"text":" SidebarView()"},{"text":" DetailView()"},{"text":" }"},{"text":" .searchable("},{"text":" text: $viewModel.searchText,"},{"text":" placement: .sidebar"},{"text":" ) {"},{"text":" SuggestionsView()"},{"text":" }"},{"text":" .onSubmit(of: .search) {"},{"text":" viewModel.submitCurrentSearchQuery()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - triggers: The triggers that should invoke the provided action."},{"text":" - action: The action to perform on submission of a value."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"triggers","declarationFragments":[{"kind":"identifier","spelling":"triggers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onSubmit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"triggers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"},{"kind":"text","spelling":" = .text, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","submitScope(_:)"],"names":{"title":"submitScope(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitScope"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents submission triggers originating from this view to invoke"},{"text":"a submission action configured by a submission modifier higher up"},{"text":"in the view hierarchy."},{"text":""},{"text":"Use this modifier when you want to avoid specific views from initiating"},{"text":"a submission action configured by the ``View/onSubmit(of:_:)`` modifier."},{"text":"In the example below, the tag field doesn't trigger the submission of"},{"text":"the form:"},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", text: $viewModel.userName)"},{"text":" SecureField(\"Password\", text: $viewModel.password)"},{"text":""},{"text":" TextField(\"Tags\", text: $viewModel.tags)"},{"text":" .submitScope()"},{"text":" }"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"- Parameter isBlocking: A Boolean that indicates whether this scope is"},{"text":" actively blocking submission triggers from reaching higher submission"},{"text":" actions."}]},"functionSignature":{"parameters":[{"name":"isBlocking","declarationFragments":[{"kind":"identifier","spelling":"isBlocking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitScope"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isBlocking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationLinkIndicatorVisibility(_:)"],"names":{"title":"navigationLinkIndicatorVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationLinkIndicatorVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures whether navigation links show a disclosure indicator."},{"text":""},{"text":"If you need to detect whether the navigation disclosure indicator"},{"text":"should be shown for the current view, read the"},{"text":"``EnvironmentValues/navigationLinkIndicatorVisibility`` environment value."},{"text":""},{"text":"The following example hides the indicator for all links in the list."},{"text":"The indicator can be hidden for a specific link by placing the"},{"text":"modifier on the `NavigationLink` itself."},{"text":""},{"text":" struct NoIndicatorLink: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"See detail\") {"},{"text":" Text(\"Detail view\")"},{"text":" }"},{"text":" }"},{"text":" .navigationLinkIndicatorVisibility(.hidden)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Important: Current releases support setting the indicator visibility"},{"text":"to `.visible` regardless of whether the link is within a list."},{"text":"On operating systems prior to iOS 26 and aligned releases,"},{"text":"setting the link indicator visibility to `.visible` is only"},{"text":"supported for navigation links contained in a `List`."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationLinkIndicatorVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarHidden(_:)"],"names":{"title":"navigationBarHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarHidden(_:)` to hide the navigation bar. This modifier"},{"text":"only takes effect when this view is inside of and visible within a"},{"text":"``NavigationView``."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" navigation bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar."},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"The example below shows setting the title of the navigation bar using a"},{"text":"``Text`` view:"},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(Text(\"Today's Flavors\"))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the title of a navigation bar configured using a"},{"text":"text view.](SwiftUI-navigationBarTitle-Text.png)"},{"text":""},{"text":"- Parameter title: A description of this view to display in the"},{"text":" navigation bar."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title of this view's navigation bar with a localized string."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar"},{"text":"using a ``LocalizedStringKey`` that will be used to search for a"},{"text":"matching localized string in the application's localizable strings"},{"text":"assets."},{"text":""},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, a string constant is used to access a"},{"text":"``LocalizedStringKey`` that will be resolved at run time to provide a"},{"text":"title for the navigation bar. If the localization key cannot be"},{"text":"resolved, the text of the key name will be used as the title text."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(\"Today's Flavors\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter titleKey: A key to a localized description of this view to"},{"text":" display in the navigation bar."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title of this view's navigation bar with a string."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar"},{"text":"using a `String`. This modifier only takes effect when this view is"},{"text":"inside of and visible within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a string:"},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" let text = \"Today's Flavors\""},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(text)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter title: A title for this view to display in the navigation"},{"text":" bar."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the title"},{"text":"from one of the ``NavigationBarItem/TitleDisplayMode`` styles. This"},{"text":"modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a ``Text`` view. The navigation bar title's"},{"text":"``NavigationBarItem/TitleDisplayMode`` is set to `.inline` which places"},{"text":"the navigation bar title in the bounds of the navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(Text(\"Today's Flavors\", displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - title: A title for this view to display in the navigation bar."},{"text":" - displayMode: The style to use for displaying the navigation bar title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the title"},{"text":"from one of the ``NavigationBarItem/TitleDisplayMode`` styles. This"},{"text":"modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a string. The navigation bar title's"},{"text":"``NavigationBarItem/TitleDisplayMode`` is set to `.inline` which places"},{"text":"the navigation bar title in the bounds of the navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(\"Today's Flavors\", displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If the `titleKey` can't be found, the title uses the text of the key"},{"text":"name instead."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: A key to a localized description of this view to display"},{"text":" in the navigation bar."},{"text":" - displayMode: The style to use for displaying the navigation bar"},{"text":" title."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the"},{"text":"title from one of the `NavigationBarItem.Title.DisplayMode`"},{"text":"styles. This modifier only takes effect when this view is inside of and"},{"text":"visible within a `NavigationView`."},{"text":""},{"text":"In the example below, `navigationBarTitle(_:displayMode:)` uses a"},{"text":"string to provide a title for the navigation bar. Setting the title's"},{"text":"`displayMode` to `.inline` places the navigation bar title within the"},{"text":"bounds of the navigation bar."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided using"},{"text":"a string. The navigation bar title's `displayMode` is set to"},{"text":"`.inline` which places the navigation bar title in the bounds of the"},{"text":"navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" let title = \"Today's Flavors\""},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(title, displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a navigation bar, showing the title within the bounds"},{"text":" of the navigation bar]"},{"text":"(SwiftUI-navigationBarTitle-stringProtocol.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - title: A title for this view to display in the navigation bar."},{"text":" - displayMode: The way to display the title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarBackButtonHidden(_:)"],"names":{"title":"navigationBarBackButtonHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarBackButtonHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the navigation bar back button for the view."},{"text":""},{"text":"Use `navigationBarBackButtonHidden(_:)` to hide the back button for this"},{"text":"view."},{"text":""},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationStack`` or a ``NavigationSplitView`` in narrow size classes."},{"text":""},{"text":"The example below demonstrates how to hide the navigation back button"},{"text":"for a view within a navigation stack:"},{"text":""},{"text":"```swift"},{"text":"NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Mint\") {"},{"text":" Color.mint"},{"text":" .navigationBarBackButtonHidden()"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameter hidesBackButton: A Boolean value that indicates whether to"},{"text":" hide the back button. The default value is `true`."}]},"functionSignature":{"parameters":[{"name":"hidesBackButton","declarationFragments":[{"kind":"identifier","spelling":"hidesBackButton"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarBackButtonHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidesBackButton"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputFormattingControlVisibility(_:for:)"],"names":{"title":"textInputFormattingControlVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputFormattingControlVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies which system text formatting controls are available"},{"text":"for people to format text."},{"text":""},{"text":"A ``TextEditor`` with a binding to an `AttributedString` offers"},{"text":"built-in controls for formatting text. These controls appear in"},{"text":"different placements depending on the platform. By default,"},{"text":"`TextEditor` shows them in the context menu and in the"},{"text":"keyboard toolbar on iOS. See ``TextInputFormattingControlPlacement/Set``"},{"text":"for the available placements."},{"text":""},{"text":"In this example, the formatting accessory bar is shown in a macOS editor:"},{"text":""},{"text":" struct StyledTextEditingView: View {"},{"text":" @State private var text: AttributedString = \"\""},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .textInputFormattingControlVisibility(.visible, for: .accessoryBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: Whether the controls in the given placements may"},{"text":" become visible."},{"text":" - placement: The onscreen control to modify."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputFormattingControlVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRespondsToUserInteraction(_:isEnabled:)"],"names":{"title":"accessibilityRespondsToUserInteraction(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this Accessibility element responds to user"},{"text":"interaction and would thus be interacted with by technologies such as"},{"text":"Switch Control, Voice Control or Full Keyboard Access."},{"text":""},{"text":"If this is not set, the value is inferred from the traits of the"},{"text":"Accessibility element, the presence of Accessibility actions on the"},{"text":"element, or the presence of gestures on the element or containing views."},{"text":""},{"text":"- Parameters:"},{"text":" - respondsToUserInteraction: Whether the view responds to user"},{"text":" interaction."},{"text":" - isEnabled: If true the accessibility interaction state is applied;"},{"text":" otherwise the accessibility interaction state is unchanged."}]},"functionSignature":{"parameters":[{"name":"respondsToUserInteraction","declarationFragments":[{"kind":"identifier","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRespondsToUserInteraction(_:)"],"names":{"title":"accessibilityRespondsToUserInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this Accessibility element responds to user"},{"text":"interaction and would thus be interacted with by technologies such as"},{"text":"Switch Control, Voice Control or Full Keyboard Access."},{"text":""},{"text":"If this is not set, the value is inferred from the traits of the"},{"text":"Accessibility element, the presence of Accessibility actions on the"},{"text":"element, or the presence of gestures on the element or containing views."}]},"functionSignature":{"parameters":[{"name":"respondsToUserInteraction","declarationFragments":[{"kind":"identifier","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonStyle(_:)"],"names":{"title":"buttonStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for buttons within this view to a button style with a"},{"text":"custom appearance and custom interaction behavior."},{"text":""},{"text":"Use this modifier to set a specific style for button instances"},{"text":"within a view:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" Button(\"Register\", action: register)"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"PrimitiveButtonStyle","rhsPrecise":"s:7SwiftUI20PrimitiveButtonStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PrimitiveButtonStyle","preciseIdentifier":"s:7SwiftUI20PrimitiveButtonStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focused(_:equals:)"],"names":{"title":"focused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its focus state to the given state value."},{"text":""},{"text":"Use this modifier to cause the view to receive focus whenever the"},{"text":"`binding` equals the `value`. Typically, you create an enumeration"},{"text":"of fields that may receive focus, bind an instance of this enumeration,"},{"text":"and assign its cases to focusable views."},{"text":""},{"text":"The following example uses the cases of a `LoginForm` enumeration to"},{"text":"bind the focus state of two ``TextField`` views. A sign-in button"},{"text":"validates the fields and sets the bound `focusedField` value to"},{"text":"any field that requires the user to correct a problem."},{"text":""},{"text":" struct LoginForm {"},{"text":" enum Field: Hashable {"},{"text":" case usernameField"},{"text":" case passwordField"},{"text":" }"},{"text":""},{"text":" @State private var username = \"\""},{"text":" @State private var password = \"\""},{"text":" @FocusState private var focusedField: Field?"},{"text":""},{"text":" var body: some View {"},{"text":" Form {"},{"text":" TextField(\"Username\", text: $username)"},{"text":" .focused($focusedField, equals: .usernameField)"},{"text":""},{"text":" SecureField(\"Password\", text: $password)"},{"text":" .focused($focusedField, equals: .passwordField)"},{"text":""},{"text":" Button(\"Sign In\") {"},{"text":" if username.isEmpty {"},{"text":" focusedField = .usernameField"},{"text":" } else if password.isEmpty {"},{"text":" focusedField = .passwordField"},{"text":" } else {"},{"text":" handleLogin(username, password)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To control focus using a Boolean, use the ``View/focused(_:)`` method"},{"text":"instead."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When focus moves to the"},{"text":" modified view, the binding sets the bound value to the corresponding"},{"text":" match value. If a caller sets the state value programmatically to the"},{"text":" matching value, then focus moves to the modified view. When focus"},{"text":" leaves the modified view, the binding sets the bound value to"},{"text":" `nil`. If a caller sets the value to `nil`, SwiftUI automatically"},{"text":" dismisses focus."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focused(_:)"],"names":{"title":"focused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its focus state to the given Boolean state"},{"text":"value."},{"text":""},{"text":"Use this modifier to cause the view to receive focus whenever the"},{"text":"`condition` value is `true`. You can use this modifier to"},{"text":"observe the focus state of a single view, or programmatically set and"},{"text":"remove focus from the view."},{"text":""},{"text":"In the following example, a single ``TextField`` accepts a user's"},{"text":"desired `username`. The text field binds its focus state to the"},{"text":"Boolean value `usernameFieldIsFocused`. A \"Submit\" button's action"},{"text":"verifies whether the name is available. If the name is unavailable, the"},{"text":"button sets `usernameFieldIsFocused` to `true`, which causes focus to"},{"text":"return to the text field, so the user can enter a different name."},{"text":""},{"text":" @State private var username: String = \"\""},{"text":" @FocusState private var usernameFieldIsFocused: Bool"},{"text":" @State private var showUsernameTaken = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(\"Choose a username.\", text: $username)"},{"text":" .focused($usernameFieldIsFocused)"},{"text":" if showUsernameTaken {"},{"text":" Text(\"That username is taken. Please choose another.\")"},{"text":" }"},{"text":" Button(\"Submit\") {"},{"text":" showUsernameTaken = false"},{"text":" if !isUserNameAvailable(username: username) {"},{"text":" usernameFieldIsFocused = true"},{"text":" showUsernameTaken = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To control focus by matching a value, use the"},{"text":"``View/focused(_:equals:)`` method instead."},{"text":""},{"text":"- Parameter condition: The focus state to bind. When focus moves"},{"text":" to the view, the binding sets the bound value to `true`. If a caller"},{"text":" sets the value to `true` programmatically, then focus moves to the"},{"text":" modified view. When focus leaves the modified view, the binding"},{"text":" sets the value to `false`. If a caller sets the value to `false`,"},{"text":" SwiftUI automatically dismisses focus."},{"text":""},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","submitLabel(_:)"],"names":{"title":"submitLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the submit label for this view."},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", $viewModel.username)"},{"text":" .submitLabel(.continue)"},{"text":" SecureField(\"Password\", $viewModel.password)"},{"text":" .submitLabel(.done)"},{"text":" }"},{"text":""},{"text":"- Parameter submitLabel: One of the cases specified in ``SubmitLabel``."}]},"functionSignature":{"parameters":[{"name":"submitLabel","declarationFragments":[{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"submitLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","refreshable(action:)"],"names":{"title":"refreshable(action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"refreshable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous handler that can update the data the view"},{"text":"displays when a person initiates a request, such as by pulling to refresh."},{"text":""},{"text":"Apply this modifier to a view to set the ``EnvironmentValues/refresh``"},{"text":"value in the view's environment to a ``RefreshAction`` instance that"},{"text":"uses the specified `action` as its handler. Views that detect the"},{"text":"presence of the instance can change their appearance to provide a"},{"text":"way for a person to execute the handler."},{"text":""},{"text":"For example, when you apply this modifier on iOS and iPadOS to a"},{"text":"``List``, the list enables a standard pull-to-refresh gesture that"},{"text":"refreshes the list contents. When a person drags the top of the"},{"text":"scrollable area downward, the view reveals a progress indicator"},{"text":"and executes the specified handler. The indicator remains visible"},{"text":"for the duration of the refresh, which runs asynchronously:"},{"text":""},{"text":" List(mailbox.conversations) { conversation in"},{"text":" ConversationCell(conversation)"},{"text":" }"},{"text":" .refreshable {"},{"text":" await mailbox.fetch()"},{"text":" }"},{"text":""},{"text":"You can add refresh capability to your own views as well. For"},{"text":"information on how to do that, see ``RefreshAction``."},{"text":""},{"text":"- Parameters:"},{"text":" - action: An asynchronous handler that SwiftUI executes when"},{"text":" a person requests a refresh. Use this handler to initiate"},{"text":" an update of model data displayed in the modified view. Use"},{"text":" `await` in front of any asynchronous calls inside the handler."},{"text":"- Returns: A view with a new refresh action in its environment."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"refreshable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","projectionEffect(_:)"],"names":{"title":"projectionEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"projectionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies a projection transformation to this view's rendered output."},{"text":""},{"text":"Use `projectionEffect(_:)` to apply a 3D transformation to the view."},{"text":""},{"text":"The example below rotates the text 30˚ around the `z` axis, which is the"},{"text":"axis pointing out of the screen:"},{"text":""},{"text":" // This transform represents a 30˚ rotation around the z axis."},{"text":" let transform = CATransform3DMakeRotation("},{"text":" -30 * (.pi / 180), 0.0, 0.0, 1.0)"},{"text":""},{"text":" Text(\"Projection effects using transforms\")"},{"text":" .projectionEffect(.init(transform))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing text rotated 30 degrees around the axis pointing"},{"text":"out of the screen.](SwiftUI-View-projectionEffect.png)"},{"text":""},{"text":"- Parameter transform: A ``ProjectionTransform`` to apply to the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"projectionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationViewStyle(_:)"],"names":{"title":"navigationViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for navigation views within this view."},{"text":""},{"text":"Use this modifier to change the appearance and behavior of navigation"},{"text":"views. For example, by default, navigation views appear with multiple"},{"text":"columns in wider environments, like iPad in landscape orientation:"},{"text":""},{"text":"![A screenshot of an iPad in landscape orientation mode showing a"},{"text":"multicolumn navigation view. The left column lists the colors Purple,"},{"text":"Pink, and Orange, with Purple selected. The right column presents a"},{"text":"detail view that shows a purple square.](View-navigationViewStyle-1)"},{"text":""},{"text":"You can apply the ``NavigationViewStyle/stack`` style to force"},{"text":"single-column stack navigation in these environments:"},{"text":""},{"text":" NavigationView {"},{"text":" List {"},{"text":" NavigationLink(\"Purple\", destination: ColorDetail(color: .purple))"},{"text":" NavigationLink(\"Pink\", destination: ColorDetail(color: .pink))"},{"text":" NavigationLink(\"Orange\", destination: ColorDetail(color: .orange))"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":""},{"text":" Text(\"Select a Color\") // A placeholder to show before selection."},{"text":" }"},{"text":" .navigationViewStyle(.stack)"},{"text":""},{"text":"![A screenshot of an iPad in landscape orientation mode showing a"},{"text":"single column containing the list Purple, Pink, and"},{"text":"Orange.](View-navigationViewStyle-2)"}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"NavigationViewStyle","rhsPrecise":"s:7SwiftUI19NavigationViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"NavigationViewStyle","preciseIdentifier":"s:7SwiftUI19NavigationViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(menuItems:)"],"names":{"title":"contextMenu(menuItems:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu to a view."},{"text":""},{"text":"Use this modifier to add a context menu to a view in your app's"},{"text":"user interface. Compose the menu by returning controls like ``Button``,"},{"text":"``Toggle``, and ``Picker`` from the `menuItems` closure. You can also"},{"text":"use ``Menu`` to define submenus or ``Section`` to group items."},{"text":""},{"text":"The following example creates a ``Text`` view that has a context menu"},{"text":"with two buttons:"},{"text":""},{"text":" Text(\"Turtle Rock\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system displays the menu next to the content:"},{"text":""},{"text":"![A screenshot of a context menu showing two menu items: Add to"},{"text":"Favorites, and Show in Maps.](View-contextMenu-1-iOS)"},{"text":""},{"text":"The system dismisses the menu if someone makes a selection, or taps"},{"text":"or clicks outside the menu."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/contextMenuPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"> Note: This view modifier produces a context menu on macOS, but that"},{"text":"platform doesn't display a preview."},{"text":""},{"text":"If you want to show a different preview, you can use"},{"text":"``View/contextMenu(menuItems:preview:)``. To add a context menu to a"},{"text":"container that supports selection, like a ``List`` or a ``Table``, and"},{"text":"to distinguish between menu activation on a selection and"},{"text":"activation in an empty area of the container, use"},{"text":"``View/contextMenu(forSelectionType:menu:primaryAction:)``."},{"text":""},{"text":"- Parameter menuItems: A closure that produces the menu's contents. You"},{"text":" can deactivate the context menu by returning nothing from the closure."},{"text":""},{"text":"- Returns: A view that can display a context menu."}]},"functionSignature":{"parameters":[{"name":"menuItems","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"MenuItems","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(menuItems:preview:)"],"names":{"title":"contextMenu(menuItems:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu with a custom preview to a view."},{"text":""},{"text":"When you use this modifer to add a context menu to a view in your"},{"text":"app's user interface, the system displays the custom preview beside the"},{"text":"menu."},{"text":"Compose the menu by returning controls like ``Button``, ``Toggle``, and"},{"text":"``Picker`` from the `menuItems` closure. You can also use ``Menu`` to"},{"text":"define submenus or ``Section`` to group items."},{"text":""},{"text":"Define the custom preview by returning a view from the `preview`"},{"text":"closure. The system sizes the preview to match the size of its content."},{"text":"For example, you can add a two button context menu to a ``Text`` view,"},{"text":"and use an ``Image`` as the preview:"},{"text":""},{"text":" Text(\"Turtle Rock\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" } preview: {"},{"text":" Image(\"turtlerock\") // Loads the image from an asset catalog."},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system displays the image and the menu:"},{"text":""},{"text":"![A screenshot of a context menu with two buttons that are labeled"},{"text":"Add to Favorites, and Show in Maps. An image of a Joshua Tree appears"},{"text":"above the menu.](View-contextMenu-2-iOS)"},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/contextMenuPreview`` kind. For example, you"},{"text":"can change the lift preview's corner radius or use a nested view as the"},{"text":"lift preview."},{"text":""},{"text":"> Note: This view modifier produces a context menu on macOS, but that"},{"text":"platform doesn't display the preview."},{"text":""},{"text":"If you don't need a preview, use ``View/contextMenu(menuItems:)``"},{"text":"instead. If you want to add a context menu to a container that supports"},{"text":"selection, like a ``List`` or a ``Table``, and you want to distinguish"},{"text":"between menu activation on a selection and activation in an empty area"},{"text":"of the container, use"},{"text":"``View/contextMenu(forSelectionType:menu:primaryAction:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - menuItems: A closure that produces the menu's contents. You can"},{"text":" deactivate the context menu by returning nothing from the closure."},{"text":" - preview: A view that the system displays along with the menu."},{"text":""},{"text":"- Returns: A view that can display a context menu with a preview."}]},"functionSignature":{"parameters":[{"name":"menuItems","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"M","index":0,"depth":1},{"name":"P","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(_:)"],"names":{"title":"contextMenu(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu to the view."},{"text":""},{"text":"Use this method to attach a specified context menu to a view."},{"text":"You can make the context menu unavailable by conditionally passing `nil`"},{"text":"as the value for the `contextMenu`."},{"text":""},{"text":"The example below creates a ``ContextMenu`` that contains two items and"},{"text":"passes them into the modifier. The Boolean value `shouldShowMenu`,"},{"text":"which defaults to `true`, controls the context menu availability:"},{"text":""},{"text":" private let menuItems = ContextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" private struct ContextMenuMenuItems: View {"},{"text":" @State private var shouldShowMenu = true"},{"text":""},{"text":" var body: some View {"},{"text":" Text(\"Turtle Rock\")"},{"text":" .contextMenu(shouldShowMenu ? menuItems : nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a context menu showing two menu items: Add to"},{"text":"Favorites, and Show in Maps.](View-contextMenu-1-iOS)"},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/contextMenuPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter contextMenu: A context menu container for views that you"},{"text":" present as menu items in a context menu."},{"text":""},{"text":"- Returns: A view that can show a context menu."}]},"functionSignature":{"parameters":[{"name":"contextMenu","declarationFragments":[{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"MenuItems","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"contextMenu"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","windowToolbarFullScreenVisibility(_:)"],"names":{"title":"windowToolbarFullScreenVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"windowToolbarFullScreenVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the visibility of the window toolbar when the window enters"},{"text":"full screen mode."},{"text":""},{"text":"By default, the window toolbar will show at the top of the display,"},{"text":"above the window's contents."},{"text":""},{"text":"You can use this modifier to override the default behavior."},{"text":""},{"text":"For example, you can specify that the window toolbar should be hidden"},{"text":"by default, and only show once the mouse moves into the area occupied"},{"text":"by the menu bar:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .toolbar {"},{"text":" ..."},{"text":" }"},{"text":" .windowToolbarFullScreenVisibility(.onHover)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter visibility: The visibility to use for the window toolbar in"},{"text":" full screen mode."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"windowToolbarFullScreenVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","itemProvider(_:)"],"names":{"title":"itemProvider(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"itemProvider"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Provides a closure that vends the drag representation to be used for a"},{"text":"particular data element."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"itemProvider"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","paletteSelectionEffect(_:)"],"names":{"title":"paletteSelectionEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"paletteSelectionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the selection effect to apply to a palette item."},{"text":""},{"text":"``PaletteSelectionEffect/automatic`` applies the system's default"},{"text":"appearance when selected. When using un-tinted SF Symbols or template"},{"text":"images, the current tint color is applied to the selected items' image."},{"text":"If the provided SF Symbols have custom tints, a stroke is drawn around selected items."},{"text":""},{"text":"If you wish to provide a specific image (or SF Symbol) to indicate"},{"text":"selection, use ``PaletteSelectionEffect/custom`` to forgo the system's"},{"text":"default selection appearance allowing the provided image to solely"},{"text":"indicate selection instead."},{"text":""},{"text":"The following example creates a palette picker that disables the"},{"text":"system selection behavior:"},{"text":""},{"text":" Menu {"},{"text":" Picker(\"Palettes\", selection: $selection) {"},{"text":" ForEach(palettes) { palette in"},{"text":" Label(palette.title, image: selection == palette ?"},{"text":" \"selected-palette\" : \"palette\")"},{"text":" .tint(palette.tint)"},{"text":" .tag(palette)"},{"text":" }"},{"text":" }"},{"text":" .pickerStyle(.palette)"},{"text":" .paletteSelectionEffect(.custom)"},{"text":" } label: {"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"If a specific SF Symbol variant is preferable instead, use"},{"text":"``PaletteSelectionEffect/symbolVariant(_:)``."},{"text":""},{"text":" Menu {"},{"text":" ControlGroup {"},{"text":" ForEach(ColorTags.allCases) { colorTag in"},{"text":" Toggle(isOn: $selectedColorTags[colorTag]) {"},{"text":" Label(colorTag.name, systemImage: \"circle\")"},{"text":" }"},{"text":" .tint(colorTag.color)"},{"text":" }"},{"text":" }"},{"text":" .controlGroupStyle(.palette)"},{"text":" .paletteSelectionEffect(.symbolVariant(.fill))"},{"text":" }"},{"text":""},{"text":"- Parameter effect: The type of effect to apply when a palette item is selected."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"paletteSelectionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonStyle(_:)"],"names":{"title":"buttonStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for buttons within this view to a button style with a"},{"text":"custom appearance and standard interaction behavior."},{"text":""},{"text":"Use this modifier to set a specific style for all button instances"},{"text":"within a view:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" Button(\"Register\", action: register)"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":""},{"text":"You can also use this modifier to set the style for controls that"},{"text":"acquire a button style through composition, like the ``Menu`` and"},{"text":"``Toggle`` views in the following example:"},{"text":""},{"text":" VStack {"},{"text":" Menu(\"Terms and Conditions\") {"},{"text":" Button(\"Open in Preview\", action: openInPreview)"},{"text":" Button(\"Save as PDF\", action: saveAsPDF)"},{"text":" }"},{"text":" Toggle(\"Remember Password\", isOn: $isToggleOn)"},{"text":" Toggle(\"Flag\", isOn: $flagged)"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" }"},{"text":" .menuStyle(.button)"},{"text":" .toggleStyle(.button)"},{"text":" .buttonStyle(.bordered)"},{"text":""},{"text":"The ``View/menuStyle(_:)`` modifier causes the Terms"},{"text":"and Conditions menu to render as a button. Similarly, the"},{"text":"``View/toggleStyle(_:)`` modifier causes the two toggles to"},{"text":"render as buttons. The button style modifier then causes not only"},{"text":"the explicit Sign In ``Button``, but also the menu and toggles with"},{"text":"button styling, to render with the bordered button style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ButtonStyle","rhsPrecise":"s:7SwiftUI11ButtonStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ButtonStyle","preciseIdentifier":"s:7SwiftUI11ButtonStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textFieldStyle(_:)"],"names":{"title":"textFieldStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textFieldStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for text fields within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TextFieldStyle","rhsPrecise":"s:7SwiftUI14TextFieldStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textFieldStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextFieldStyle","preciseIdentifier":"s:7SwiftUI14TextFieldStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a localized"},{"text":"string key for the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a localized"},{"text":"string resource for the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a string"},{"text":"variable as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a text view for"},{"text":"the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true, using"},{"text":"a localized string key for a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true, using"},{"text":"a localized string resource for a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true using"},{"text":"a string variable as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true using"},{"text":"a text view as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a string variable as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a text view as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a string variable as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a text view as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a string variable as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a text view for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a string variable as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:error:actions:)"],"names":{"title":"alert(isPresented:error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":" @State private var showAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(showAlert: $showAlert, error: $error)"},{"text":" .alert(isPresented: $showAlert, error: error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - error: An optional localized Error that is used to generate the"},{"text":" alert's title. The system passes the contents to the modifier's"},{"text":" closures. You use this data to populate the fields of an alert that"},{"text":" you create that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:error:actions:message:)"],"names":{"title":"alert(isPresented:error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":" @State private var showAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(showAlert: $showAlert, error: $error)"},{"text":" .alert(isPresented: $showAlert, error: error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - error: An optional localized Error that is used to generate the"},{"text":" alert's title. The system passes the contents to the modifier's"},{"text":" closures. You use this data to populate the fields of an alert that"},{"text":" you create that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A content builder returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:)"],"names":{"title":"alert(error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`"},{"text":"if the error is a `LocalizedError`; otherwise it will be"},{"text":"``Error/localizedDescription``."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" If the error is a `LocalizedError`, its `errorDescription`"},{"text":" will be used as the title, otherwise, the title will be"},{"text":" ``Error/localizedDescription``."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:message:)"],"names":{"title":"alert(error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`"},{"text":"if the error is a `LocalizedError`; otherwise it will be"},{"text":"``Error/localizedDescription``."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The system passes the error to the modifier's closures. You use this"},{"text":" data to populate the fields of an alert that the system displays to"},{"text":" the user. If the error is a `LocalizedError`, its `errorDescription`"},{"text":" will be used as the title, otherwise, the title will be"},{"text":" ``Error/localizedDescription``."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:)"],"names":{"title":"alert(error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The error's `errorDescription` will be used as the title."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:message:)"],"names":{"title":"alert(error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The system passes the error to the modifier's closures. You use this"},{"text":" data to populate the fields of an alert that the system displays to"},{"text":" the user. The error's `errorDescription` will be used as the title."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabItem(_:)"],"names":{"title":"tabItem(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabItem"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tab bar item associated with this view."},{"text":""},{"text":"Use `tabItem(_:)` to configure a view as a tab bar item in a"},{"text":"``TabView``. The example below adds two views as tabs in a ``TabView``:"},{"text":""},{"text":" struct View1: View {"},{"text":" var body: some View {"},{"text":" Text(\"View 1\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct View2: View {"},{"text":" var body: some View {"},{"text":" Text(\"View 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct TabItem: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" View1()"},{"text":" .tabItem {"},{"text":" Label(\"Menu\", systemImage: \"list.dash\")"},{"text":" }"},{"text":""},{"text":" View2()"},{"text":" .tabItem {"},{"text":" Label(\"Order\", systemImage: \"square.and.pencil\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a two views configured as tab items in a tab"},{"text":"view.](SwiftUI-View-tabItem.png)"},{"text":""},{"text":"- Parameter label: The tab bar item to associate with this view."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabItem"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","moveDisabled(_:)"],"names":{"title":"moveDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"moveDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition for whether the view's view hierarchy is movable."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"moveDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollContentBackground(_:)"],"names":{"title":"scrollContentBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollContentBackground"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of the background for scrollable views within"},{"text":"this view."},{"text":""},{"text":"The following example hides the standard system background of the List."},{"text":""},{"text":" List {"},{"text":" Text(\"One\")"},{"text":" Text(\"Two\")"},{"text":" Text(\"Three\")"},{"text":" }"},{"text":" .scrollContentBackground(.hidden)"},{"text":""},{"text":"On macOS 15.0 and later, the visibility of the scroll background helps"},{"text":"achieve the seamless window/titlebar appearance for scroll views that"},{"text":"fill the window's content view, or a pane's full width and height."},{"text":"`List` and `Form` have the seamless appearance by default, configurable"},{"text":"by hiding the scroll background. `ScrollView` can become seamless by"},{"text":"making the background visible."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: the visibility to use for the background."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollContentBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationBehavior(_:for:)"],"names":{"title":"toolbarMinimizationBehavior(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the minimize behavior for the specified bars."},{"text":""},{"text":"Use this modifier to enable toolbar minimization in response to"},{"text":"scrolling. The supported placement is"},{"text":"``ToolbarPlacement/navigationBar``."},{"text":"When the navigation bar minimizes, an integrated top tab bar will"},{"text":"also minimize."},{"text":""},{"text":"By default, the safe area adjusts as the navigation bar minimizes."},{"text":"Use ``toolbarMinimizationSafeAreaAdjustment(_:for:)`` to customize"},{"text":"this."},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\").padding()"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"Minimizing Title\")"},{"text":" .toolbarMinimizationBehavior(.onScrollDown, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: The minimize behavior."},{"text":" - bars: The bars to apply the behavior to."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationSafeAreaAdjustment(_:for:)"],"names":{"title":"toolbarMinimizationSafeAreaAdjustment(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationSafeAreaAdjustment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the safe area adjustment for the specified bars during"},{"text":"minimization."},{"text":""},{"text":"By default, the safe area adjusts as bars minimize, allowing"},{"text":"content to reflow into the space vacated by the bar. Use this"},{"text":"modifier to disable that adjustment when content should remain in"},{"text":"place -- for example, when displaying full-bleed media beneath a"},{"text":"minimizing bar."},{"text":""},{"text":"Currently, only ``ToolbarPlacement/navigationBar`` supports"},{"text":"customizing the safe area adjustment."},{"text":""},{"text":"Use this modifier alongside"},{"text":"``toolbarMinimizationBehavior(_:for:)``:"},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .toolbarMinimizationBehavior("},{"text":" .onScrollDown, for: .navigationBar)"},{"text":" .toolbarMinimizationSafeAreaAdjustment("},{"text":" .disabled, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - adjustment: The safe area adjustment."},{"text":" - bars: The bars to apply the adjustment to."}]},"functionSignature":{"parameters":[{"name":"adjustment","declarationFragments":[{"kind":"identifier","spelling":"adjustment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationSafeAreaAdjustment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"adjustment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationRestoration(_:for:)"],"names":{"title":"toolbarMinimizationRestoration(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationRestoration"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the restoration behavior for the specified bars during"},{"text":"minimization."},{"text":""},{"text":"Use this modifier alongside ``toolbarMinimizationBehavior(_:for:)``"},{"text":"to customize when a minimized bar restores. By default, the bar"},{"text":"restores when the user reverses scroll direction. Use"},{"text":"``ToolbarMinimizationRestoration/atScrollEdge`` to restrict"},{"text":"restoration to when the scroll view's content reaches the scroll"},{"text":"edge -- appropriate for screens where the bar is mostly chrome"},{"text":"that doesn't need to follow the user."},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .toolbarMinimizationBehavior("},{"text":" .onScrollDown, for: .navigationBar)"},{"text":" .toolbarMinimizationRestoration("},{"text":" .atScrollEdge, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"Currently, only ``ToolbarPlacement/navigationBar`` supports"},{"text":"customizing the restoration behavior, and only when used in"},{"text":"combination with ``ToolbarMinimizationBehavior/onScrollDown``."},{"text":""},{"text":"- Parameters:"},{"text":" - restoration: The restoration behavior."},{"text":" - bars: The bars to apply the restoration behavior to."}]},"functionSignature":{"parameters":[{"name":"restoration","declarationFragments":[{"kind":"identifier","spelling":"restoration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationRestoration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"restoration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationSizing(_:)"],"names":{"title":"presentationSizing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationSizing"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sizing of the containing presentation."},{"text":""},{"text":"Use this modifier to apply a ``PresentationSizing`` to a"},{"text":"presentation like ``View/sheet(isPresented:onDismiss:content:)``."},{"text":"The `sizing` parameter defines the size proposed to the content, and the"},{"text":"presentation adopts the returned size. The default value is `automatic`."},{"text":""},{"text":"Sizings can be modified to fix their dimensions based on the content,"},{"text":"and optionally be sticky."},{"text":"- Seealso: ``PresentationSizing/fitted(horizontal:vertical:)`` and"},{"text":"``PresentationSizing/sticky(horizontal:vertical:)``."},{"text":""},{"text":"- Note: If the presentation's root container is a `NavigationSplitView`,"},{"text":"the proposed width only applies to the `detail` column. The `sidebar`"},{"text":"and `content` column widths use system-provided values, or those from"},{"text":"``View/navigationSplitViewColumnWidth(_:)`` or"},{"text":"``View/navigationSplitViewColumnWidth(min:ideal:max:)`` modifiers."},{"text":""},{"text":"For example, a presentation with facts about flowers could"},{"text":"prefer `.page` sizing because its content is primarily"},{"text":"informational. Since the user can choose different flowers from the"},{"text":"picker, each with different lengths of information, the size is fitted"},{"text":"vertically to size the sheet to the textual content, and vertically"},{"text":"sticky is specified to prevent the presentation from changing size too"},{"text":"frequently as the user changes selection."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var presentInfo = true"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView.sheet(isPresented: $presentInfo) {"},{"text":" VStack {"},{"text":" Picker(\"Flower Species\", selection: $flower) {"},{"text":" ForEach(Flower.allCases) {"},{"text":" Text($0.rawValue.uppercased()).tag($0)"},{"text":" }"},{"text":" }"},{"text":" Text(flower.emoji).font(.largeTitle)"},{"text":" Text(flower.informationalText)"},{"text":" }"},{"text":" .frame(maxHeight: .infinity, alignment: .top)"},{"text":" .padding()"},{"text":" .presentationSizing("},{"text":" .page"},{"text":" .fitted(horizontal: false, vertical: true)"},{"text":" .sticky(horizontal: false, vertical: true))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - sizing: A value dictating size to propose to presentation content"},{"text":" and how the presentation responds to changes in content size."}]},"functionSignature":{"parameters":[{"name":"sizing","declarationFragments":[{"kind":"identifier","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some PresentationSizing","rhs":"PresentationSizing","rhsPrecise":"s:7SwiftUI18PresentationSizingP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationSizing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspector(isPresented:content:)"],"names":{"title":"inspector(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspector"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Inserts an inspector at the applied position in the view hierarchy."},{"text":""},{"text":"Apply this modifier to declare an inspector with a context-dependent"},{"text":"presentation. For example, an inspector can present as a trailing"},{"text":"column in a horizontally regular size class, but adapt to a sheet in a"},{"text":"horizontally compact size class."},{"text":""},{"text":" struct ShapeEditor: View {"},{"text":" @State var presented: Bool = false"},{"text":" var body: some View {"},{"text":" MyEditorView()"},{"text":" .inspector(isPresented: $presented) {"},{"text":" TextTraitsInspectorView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to `Bool` controlling the presented state."},{"text":" - content: The inspector content."},{"text":""},{"text":"- Note: Trailing column inspectors have their presentation state"},{"text":"restored by the framework."},{"text":"- Seealso: ``InspectorCommands`` for including the default inspector"},{"text":"commands and keyboard shortcuts."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspector"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspectorColumnWidth(min:ideal:max:)"],"names":{"title":"inspectorColumnWidth(min:ideal:max:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a flexible, preferred width for the inspector in a trailing-column"},{"text":"presentation."},{"text":""},{"text":"Apply this modifier on the content of a"},{"text":"``View/inspector(isPresented:content:)`` to specify a preferred flexible"},{"text":"width for the column. Use ``View/inspectorColumnWidth(_:)`` if you need"},{"text":"to specify a fixed width."},{"text":""},{"text":"The following example shows an editor interface with an inspector, which"},{"text":"when presented as a trailing-column, has a preferred width of 225"},{"text":"points, maximum of 400, and a minimum of 150 at which point it will"},{"text":"collapse, if allowed."},{"text":""},{"text":" MyEditorView()"},{"text":" .inspector {"},{"text":" TextTraitsInspectorView()"},{"text":" .inspectorColumnWidth(min: 150, ideal: 225, max: 400)"},{"text":" }"},{"text":""},{"text":"Only some platforms enable flexible inspector columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."},{"text":"- Parameters:"},{"text":" - min: The minimum allowed width for the trailing column inspector"},{"text":" - ideal: The initial width of the inspector in the absence of state"},{"text":" restoration. `ideal` influences the resulting width on macOS when a"},{"text":" user double-clicks the divider on the leading edge of the inspector."},{"text":" clicks a divider to readjust"},{"text":" - max: The maximum allowed width for the trailing column inspector"}]},"functionSignature":{"parameters":[{"name":"min","declarationFragments":[{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"ideal","declarationFragments":[{"kind":"identifier","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"max","declarationFragments":[{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspectorColumnWidth(_:)"],"names":{"title":"inspectorColumnWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed, preferred width for the inspector containing this view"},{"text":"when presented as a trailing column."},{"text":""},{"text":"Apply this modifier on the content of a"},{"text":"``View/inspector(isPresented:content:)`` to specify a fixed preferred"},{"text":"width for the trailing column. Use"},{"text":"``View/inspectorColumnWidth(min:ideal:max:)`` if you need to specify a"},{"text":"flexible width."},{"text":""},{"text":"The following example shows an editor interface with an inspector, which"},{"text":"when presented as a trailing-column, has a fixed width of 225"},{"text":"points. The example also uses ``View/interactiveDismissDisabled(_:)`` to"},{"text":"prevent the inspector from being collapsed by user action like dragging"},{"text":"a divider."},{"text":""},{"text":" MyEditorView()"},{"text":" .inspector {"},{"text":" TextTraitsInspectorView()"},{"text":" .inspectorColumnWidth(225)"},{"text":" .interactiveDismissDisabled()"},{"text":" }"},{"text":""},{"text":"- Parameter width: The preferred fixed width for the inspector if"},{"text":"presented as a trailing column."},{"text":"- Note: A fixed width does not prevent the user collapsing the"},{"text":"inspector on macOS. See ``View/interactiveDismissDisabled(_:)``."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","progressViewStyle(_:)"],"names":{"title":"progressViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"progressViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for progress views in this view."},{"text":""},{"text":"For example, the following code creates a progress view that uses the"},{"text":"\"circular\" style:"},{"text":""},{"text":" ProgressView()"},{"text":" .progressViewStyle(.circular)"},{"text":""},{"text":"- Parameter style: The progress view style to use for this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ProgressViewStyle","rhsPrecise":"s:7SwiftUI17ProgressViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"progressViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ProgressViewStyle","preciseIdentifier":"s:7SwiftUI17ProgressViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewDevice(_:)"],"names":{"title":"previewDevice(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDevice"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the device for a preview."},{"text":""},{"text":"By default, Xcode automatically chooses a preview device based"},{"text":"on your currently selected run destination. If you want to"},{"text":"choose a device that doesn't change based on Xcode settings,"},{"text":"provide a ``PreviewDevice`` instance that you initialize with"},{"text":"the name or model of a specific device:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewDevice(PreviewDevice(rawValue: \"iPad Pro (11-inch)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can get a list of supported preview device names, like \"iPhone 11\","},{"text":"\"iPad Pro (11-inch)\", and \"Apple Watch Series 5 - 44mm\", by using the"},{"text":"`xcrun` command in the Terminal app:"},{"text":""},{"text":" % xcrun simctl list devicetypes"},{"text":""},{"text":"Additionally, you can use the following values for macOS platform"},{"text":"development:"},{"text":"- \"Mac\""},{"text":"- \"Mac Catalyst\""},{"text":""},{"text":"- Parameter value: A device to use for preview, or `nil` to let Xcode"},{"text":" automatically choose a device based on the run destination."},{"text":"- Returns: A preview that uses the given device."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDevice"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewLayout(_:)"],"names":{"title":"previewLayout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewLayout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the size of the container for the preview."},{"text":""},{"text":"By default, previews use the ``PreviewLayout/device`` layout,"},{"text":"which places the view inside a visual representation of the chosen"},{"text":"device. You can instead tell a preview to use a different layout"},{"text":"by choosing one of the ``PreviewLayout`` values, like"},{"text":"``PreviewLayout/sizeThatFits``:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewLayout(.sizeThatFits)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter value: A layout to use for preview."},{"text":"- Returns: A preview that uses the given layout."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewDisplayName(_:)"],"names":{"title":"previewDisplayName(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDisplayName"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a user visible name to show in the canvas for a preview."},{"text":""},{"text":"Apply this modifier to a view inside your ``PreviewProvider``"},{"text":"implementation to associate a display name with that view's preview:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewDisplayName(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of the Xcode preview canvas cropped to just the top of a"},{"text":"preview, highlighting the name in the preview's title bar, which is set"},{"text":"to the word circle.](View-previewDisplayName-1)"},{"text":""},{"text":"Add a name when you have multiple previews together in the canvas that"},{"text":"you need to tell apart. The default value is `nil`, in which case"},{"text":"Xcode displays a default string."},{"text":""},{"text":"- Parameter value: A name for the preview."},{"text":"- Returns: A preview that uses the given name."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDisplayName"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewContext(_:)"],"names":{"title":"previewContext(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewContext"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Declares a context for the preview."},{"text":""},{"text":"- Parameter value: The context for the preview; the default is `nil`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"PreviewContext","rhsPrecise":"s:7SwiftUI14PreviewContextP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewContext"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreviewContext","preciseIdentifier":"s:7SwiftUI14PreviewContextP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewInterfaceOrientation(_:)"],"names":{"title":"previewInterfaceOrientation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewInterfaceOrientation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the orientation of the preview."},{"text":""},{"text":"By default, device previews appear right side up, using orientation"},{"text":"``InterfaceOrientation/portrait``. You can"},{"text":"change the orientation of a preview using one of the values in"},{"text":"the ``InterfaceOrientation`` structure:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewInterfaceOrientation(.landscapeRight)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter value: An orientation to use for preview."},{"text":"- Returns: A preview that uses the given orientation."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewInterfaceOrientation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","popover(item:attachmentAnchor:arrowEdge:content:)"],"names":{"title":"popover(item:attachmentAnchor:arrowEdge:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a popover using the given item as a data source for the"},{"text":"popover's content."},{"text":""},{"text":"Use this method when you need to present a popover with content"},{"text":"from a custom data source. The example below uses data in"},{"text":"the `PopoverModel` structure to populate the view in the `content`"},{"text":"closure that the popover displays to the user:"},{"text":""},{"text":" struct PopoverExample: View {"},{"text":" @State private var popover: PopoverModel?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Popover\") {"},{"text":" popover = PopoverModel(message: \"Custom Message\")"},{"text":" }"},{"text":" .popover(item: $popover, arrowEdge: .bottom) { detail in"},{"text":" Text(\"\\(detail.message)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct PopoverModel: Identifiable {"},{"text":" var id: String { message }"},{"text":" let message: String"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a popover that says Custom Message hovering"},{"text":"over a Show Popover button.](View-popover-2)"},{"text":""},{"text":"- Important: Prior to iOS 18.1, the popover arrow edge was not"},{"text":"respected. Apps that are re-compiled with the iOS 18.1 or later SDK or"},{"text":"visionOS 2.1 or later SDK and run on iOS 18.1 or later or visionOS 2.1"},{"text":"or later have the arrow edge respected. On macOS, arrow edge has always"},{"text":"been respected. Alternatively, to allow the system to choose the"},{"text":"best orientation of the popover's arrow, use the"},{"text":"``View/popover(item:attachmentAnchor:content:)`` variant."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".popover(item: $popover) { detail in"},{"text":" Text(\"\\(detail.message)\")"},{"text":" .padding()"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the popover."},{"text":" When `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You use this content to populate the fields"},{"text":" of a popover that you create that the system displays to the user."},{"text":" If `item` changes, the system dismisses the currently presented"},{"text":" popover and replaces it with a new popover using the same process."},{"text":" - attachmentAnchor: The positioning anchor that defines the"},{"text":" attachment point of the popover. The default is"},{"text":" ``Anchor/Source/bounds``."},{"text":" - arrowEdge: The edge of the `attachmentAnchor` that defines the"},{"text":" location of the popover's arrow. The default is"},{"text":" `nil`, which results in the system allowing any arrow edge."},{"text":" - content: A closure returning the content of the popover."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"attachmentAnchor","declarationFragments":[{"kind":"identifier","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"}]},{"name":"arrowEdge","declarationFragments":[{"kind":"identifier","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":" = .rect(.bounds), "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","popover(isPresented:attachmentAnchor:arrowEdge:content:)"],"names":{"title":"popover(isPresented:attachmentAnchor:arrowEdge:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a popover when a given condition is true."},{"text":""},{"text":"Use this method to show a popover with contents that are a SwiftUI view, which you provide when"},{"text":"a bound Boolean variable is `true`. In the example below, a popover displays whenever the user"},{"text":"toggles the `isShowingPopover` state variable by pressing the \"Show Popover\" button:"},{"text":""},{"text":"```swift"},{"text":"struct PopoverExample: View {"},{"text":" @State private var isShowingPopover = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Popover\") {"},{"text":" self.isShowingPopover = true"},{"text":" }"},{"text":" .popover(isPresented: $isShowingPopover) {"},{"text":" Text(\"Popover Content\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"![A screenshot showing a popover that says Popover Content hovering"},{"text":"over a Show Popover button.](View-popover-1)"},{"text":""},{"text":"- Important: Prior to iOS 18.1, the popover arrow edge was not"},{"text":"respected. Apps that are re-compiled with the iOS 18.1 or later SDK or"},{"text":"visionOS 2.1 or later SDK and run on iOS 18.1 or later or visionOS 2.1"},{"text":"or later have the arrow edge respected. On macOS, arrow edge has always"},{"text":"been respected. Alternatively, to allow the system to choose the"},{"text":"best orientation of the popover's arrow, use the"},{"text":"``View/popover(isPresented:attachmentAnchor:content:)`` variant."},{"text":""},{"text":"On iPhone, popovers adapt into sheets. In vertically compact environments, such as iPhone in"},{"text":"landscape orientation, a popover presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".popover(isPresented: $isShowingPopover) {"},{"text":" Text(\"Popover Content\")"},{"text":" .padding()"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the popover content that you return from the modifier's"},{"text":" `content` closure."},{"text":" - attachmentAnchor: The positioning anchor that defines the"},{"text":" attachment point of the popover. The default is"},{"text":" ``Anchor/Source/bounds``."},{"text":" - arrowEdge: The edge of the `attachmentAnchor` that defines the"},{"text":" location of the popover's arrow. The default is `nil`, which results in the system allowing"},{"text":" any arrow edge."},{"text":" - content: A closure returning the content of the popover."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"attachmentAnchor","declarationFragments":[{"kind":"identifier","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"}]},{"name":"arrowEdge","declarationFragments":[{"kind":"identifier","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":" = .rect(.bounds), "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDirectTouch(_:options:)"],"names":{"title":"accessibilityDirectTouch(_:options:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDirectTouch"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this accessibility element is a direct touch"},{"text":"area. Direct touch areas passthrough touch events to the app rather"},{"text":"than being handled through an assistive technology, such as VoiceOver."},{"text":"The modifier accepts an optional `AccessibilityDirectTouchOptions`"},{"text":"option set to customize the functionality of the direct touch area."},{"text":""},{"text":"For example, this is how a direct touch area would allow a VoiceOver"},{"text":"user to interact with a view with a `rotationEffect` controlled by a"},{"text":"`RotationGesture`. The direct touch area would require a user to"},{"text":"activate the area before using the direct touch area."},{"text":""},{"text":" var body: some View {"},{"text":" Rectangle()"},{"text":" .frame(width: 200, height: 200, alignment: .center)"},{"text":" .rotationEffect(angle)"},{"text":" .gesture(rotation)"},{"text":" .accessibilityDirectTouch(options: .requiresActivation)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"isDirectTouchArea","declarationFragments":[{"kind":"identifier","spelling":"isDirectTouchArea"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDirectTouch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDirectTouchArea"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"},{"kind":"text","spelling":" = []) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listItemTint(_:)"],"names":{"title":"listItemTint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint effect for content in a list."},{"text":""},{"text":"The containing list's style applies the tint as appropriate. For"},{"text":"example, watchOS uses the tint color for its background platter"},{"text":"appearance. Sidebars on iOS and macOS apply the tint color to their"},{"text":"``Label`` icons, which otherwise use the accent color by default."},{"text":""},{"text":"- Parameter tint: The tint effect to use. Use `nil` to avoid"},{"text":" overriding the inherited tint."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listItemTint(_:)"],"names":{"title":"listItemTint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed tint color for content in a list."},{"text":""},{"text":"The containing list's style applies the tint as appropriate. For"},{"text":"example, watchOS uses the tint color for its background platter"},{"text":"appearance. Sidebars on iOS and macOS apply the tint color to their"},{"text":"``Label`` icons, which otherwise use the accent color by default."},{"text":""},{"text":"> Note: This modifier is equivalent to using the version of the modifier"},{"text":" that takes a ``ListItemTint`` value and specifying the `tint` color in"},{"text":" the corresponding ``ListItemTint/fixed(_:)`` input."},{"text":""},{"text":"- Parameter tint: The color to use to tint the content. Use `nil` to"},{"text":" avoid overriding the inherited tint."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelsHidden()"],"names":{"title":"labelsHidden()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsHidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the labels of any controls contained within this view."},{"text":""},{"text":"Use this modifier when you want to omit a label from one or more"},{"text":"controls in your user interface. For example, the first ``Toggle`` in"},{"text":"the following example hides its label:"},{"text":""},{"text":" VStack {"},{"text":" Toggle(isOn: $toggle1) {"},{"text":" Text(\"Toggle 1\")"},{"text":" }"},{"text":" .labelsHidden()"},{"text":""},{"text":" Toggle(isOn: $toggle2) {"},{"text":" Text(\"Toggle 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``VStack`` in the example above centers the first toggle's control"},{"text":"element in the available space, while it centers the second toggle's"},{"text":"combined label and control element:"},{"text":""},{"text":"![A screenshot showing a view with two toggle controls where one label"},{"text":" is visible and the other label is hidden.](View-labelsHidden-1.png)"},{"text":""},{"text":"Always provide a label for controls, even when you hide the label,"},{"text":"because SwiftUI uses labels for other purposes, including accessibility."},{"text":""},{"text":"> Note: This modifier doesn't work for all labels. It applies to"},{"text":" labels that are separate from the rest of the control's interface,"},{"text":" like they are for ``Toggle``, but not to controls like a bordered"},{"text":" button where the label is inside the button's border."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsHidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card."},{"text":""},{"text":"Use this modifier to override the default launch-card title,"},{"text":"which is the application name. Apply the modifier to a"},{"text":"``DocumentLaunchView`` or any of its ancestors."},{"text":""},{"text":"- Parameter title: The title to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a localized string key."},{"text":""},{"text":"- Parameter titleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a localized string resource."},{"text":""},{"text":"- Parameter titleResource: The resource to display."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a string."},{"text":""},{"text":"- Parameter title: The string to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card."},{"text":""},{"text":"Use this modifier to add descriptive text beneath the launch"},{"text":"card title. Apply the modifier to a ``DocumentLaunchView`` or"},{"text":"any of its ancestors."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a localized string key."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a localized string resource."},{"text":""},{"text":"- Parameter subtitleResource: The resource to display."}]},"functionSignature":{"parameters":[{"name":"subtitleResource","declarationFragments":[{"kind":"identifier","spelling":"subtitleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a string."},{"text":""},{"text":"- Parameter subtitle: The string to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","pickerStyle(_:)"],"names":{"title":"pickerStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for pickers within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"PickerStyle","rhsPrecise":"s:7SwiftUI11PickerStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PickerStyle","preciseIdentifier":"s:7SwiftUI11PickerStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSpacing(_:)"],"names":{"title":"listSectionSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spacing between adjacent sections in a ``List``."},{"text":""},{"text":"Pass `.default` for the default spacing, or use `.compact` for"},{"text":"a compact appearance between sections."},{"text":""},{"text":"The following example creates a ``List`` with compact spacing between"},{"text":"sections:"},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":" .listSectionSpacing(.compact)"},{"text":""},{"text":"Spacing can also be specified on an individual ``Section``, as in this"},{"text":"example:"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(.compact)"},{"text":""},{"text":"Spacing applied on sections in the ``List`` overrides spacing applied on"},{"text":"the ``List`` as a whole."},{"text":""},{"text":"- Parameter spacing: the ``ListSectionSpacing`` to apply."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSpacing(_:)"],"names":{"title":"listSectionSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spacing between adjacent sections in a ``List`` to a custom"},{"text":"value."},{"text":""},{"text":"The following example creates a ``List`` with 5 pts of spacing between"},{"text":"sections:"},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":" .listSectionSpacing(5.0)"},{"text":""},{"text":"Spacing can also be specified on an individual ``Section``, as in this"},{"text":"example:"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(10.0)"},{"text":""},{"text":"If adjacent sections have different spacing applied, each section"},{"text":"applies half its spacing above and below. Sections without"},{"text":"explicit spacing apply the spacing of their adjacent sections."},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(10.0)"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" .listSectionSpacing(100.0)"},{"text":" }"},{"text":""},{"text":"In the above example, the \"Colors\" and \"Borders\" section are separated"},{"text":"by 10 pts of spacing, and the \"Borders\" and \"Shapes\" section are"},{"text":"separated by 55 pts of spacing."},{"text":""},{"text":"Spacing applied on sections in the ``List`` overrides spacing applied on"},{"text":"the ``List`` as a whole."},{"text":""},{"text":"- Parameter spacing: the amount of spacing to apply."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHidden(_:isEnabled:)"],"names":{"title":"accessibilityHidden(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."},{"text":""},{"text":"- Parameters:"},{"text":" - hidden: Whether to hide this view from accessibility features."},{"text":" - isEnabled: If true the accessibility hidden state is applied;"},{"text":" otherwise the accessibility hidden state is unchanged."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHidden(_:)"],"names":{"title":"accessibilityHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPencilDoubleTap(perform:)"],"names":{"title":"onPencilDoubleTap(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilDoubleTap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform after the user double-taps their Apple Pencil."},{"text":""},{"text":"You should respect people’s setting for the double-tap gesture by"},{"text":"reading the ``EnvironmentValues/preferredPencilDoubleTapAction``"},{"text":"environment value, if the setting makes sense in your app. If it"},{"text":"doesn’t, consider giving people a way to specify custom behavior in your"},{"text":"app instead."},{"text":""},{"text":"In the example below, double-tapping an Apple Pencil will…"},{"text":""},{"text":"- do nothing if this is what the user selected in the Settings app,"},{"text":"- switch the tool to ”Lasso” if this is the action they have configured"},{"text":" in the app,"},{"text":"- switch the tool to ”Eraser” if they haven’t configured a custom action"},{"text":" in the app and this is what they selected in the Settings app,"},{"text":"- switch the tool to the last used one otherwise."},{"text":""},{"text":"```"},{"text":"enum MyDrawingTool: Equatable {"},{"text":" case brush"},{"text":" case lasso"},{"text":" case eraser"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"enum MyPencilAction: String {"},{"text":" case switchLasso"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"@State private var currentTool = MyDrawingTool.brush"},{"text":"@State private var lastTool: MyDrawingTool?"},{"text":""},{"text":"@Environment(\\.preferredPencilDoubleTapAction) private var globalAction"},{"text":"@AppStorage(\"customPencilDoubleTapAction\") private var customAction: MyPencilAction?"},{"text":""},{"text":"var body: some View {"},{"text":" MyDrawingCanvas()"},{"text":" .onPencilDoubleTap { _ in"},{"text":" guard globalAction != .ignore else {"},{"text":" // Respect the user’s preference to ignore the double-tap gesture."},{"text":" return"},{"text":" }"},{"text":" if let customAction {"},{"text":" // If a custom action is configured, respect it."},{"text":" if customAction == .switchLasso, currentTool != .lasso {"},{"text":" (currentTool, lastTool) = (.lasso, currentTool)"},{"text":" }"},{"text":" } else if globalAction == .switchEraser, currentTool != .eraser {"},{"text":" // Switch to eraser if the user prefers it otherwise."},{"text":" (currentTool, lastTool) = (.eraser, currentTool)"},{"text":" } else if let lastTool {"},{"text":" // Switch to the last used tool by default."},{"text":" (currentTool, self.lastTool) = (lastTool, currentTool)"},{"text":" }"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"For more information about Apple Pencil double-tap gestures, see"},{"text":"[Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/apple-pencil-and-scribble#Double-tap)."},{"text":""},{"text":"> Note: If multiple views with the `onPencilDoubleTap` view modifier"},{"text":"> are visible, all their action closures will be performed after the"},{"text":"> user double-taps their Apple Pencil."},{"text":""},{"text":"- Parameters:"},{"text":" - action: The action to perform after the user double-taps their"},{"text":" Apple Pencil."},{"text":""},{"text":"- Returns: A view that performs `action` after the user double-taps"},{"text":" their Apple Pencil."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilDoubleTap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":5}},{"domain":"macOS","introduced":{"major":14,"minor":5}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":2}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPencilSqueeze(perform:)"],"names":{"title":"onPencilSqueeze(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilSqueeze"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user squeezes their Apple Pencil."},{"text":""},{"text":"You should respect people’s setting for the squeeze gesture by reading"},{"text":"the ``EnvironmentValues/preferredPencilSqueezeAction`` environment"},{"text":"value, if the setting makes sense in your app. If it doesn’t, consider"},{"text":"giving people a way to specify custom behavior in your app instead."},{"text":""},{"text":"In the example below, completing an Apple Pencil squeeze gesture will…"},{"text":""},{"text":"- do nothing if this is what the user selected in the Settings app,"},{"text":"- switch the tool to ”Lasso” if this is the action they have configured"},{"text":" in the app,"},{"text":"- spill the ink if this is the action they have configured in the app,"},{"text":"- present a custom contextual palette if they haven’t configured a"},{"text":" custom action in the app and this is what they selected in the"},{"text":" Settings app."},{"text":""},{"text":"```"},{"text":"enum MyPencilAction: String {"},{"text":" case spillInk"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"@Environment(\\.preferredPencilSqueezeAction) private var preferredAction"},{"text":"@AppStorage(\"customPencilSqueezeAction\") private var customAction: MyPencilAction?"},{"text":""},{"text":"@State private var contextualPaletteAnchor: PopoverAttachmentAnchor?"},{"text":"@State private var contextualPalettePresented = false"},{"text":""},{"text":"var body: some View {"},{"text":" MyDrawingCanvas()"},{"text":" .onPencilSqueeze { phase in"},{"text":" guard preferredAction != .ignore else {"},{"text":" // Skip if this is what the user prefers."},{"text":" return"},{"text":" }"},{"text":" if let customAction {"},{"text":" // If a custom action is configured, respect it."},{"text":" if customAction == .spillInk {"},{"text":" switch phase {"},{"text":" // Spill the ink while the user is squeezing their Apple Pencil."},{"text":" }"},{"text":" }"},{"text":" } else if preferredAction == .showContextualPalette, case let .ended(value) = phase {"},{"text":" // Present a custom contextual palette if the user prefers it."},{"text":" contextualPaletteAnchor = value.hoverPose?.anchor.map { .point($0) }"},{"text":" contextualPalettePresented = true"},{"text":" }"},{"text":" }"},{"text":" .popover("},{"text":" isPresented: $contextualPalettePresented,"},{"text":" attachmentAnchor: contextualPaletteAnchor ?? .point(.center)"},{"text":" ) {"},{"text":" MyContextualPalette()"},{"text":" }"},{"text":"```"},{"text":""},{"text":"> Note: If multiple views with the `onPencilSqueeze` view modifier"},{"text":"> are visible, all their action closures will be performed when the"},{"text":"> user squeezes their Apple Pencil."},{"text":""},{"text":"- Parameters:"},{"text":" - action: The action to perform when the user squeezes their"},{"text":" Apple Pencil."},{"text":""},{"text":"- Returns: A view that performs `action` when the user squeezes"},{"text":" their Apple Pencil."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilSqueeze"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":5}},{"domain":"macOS","introduced":{"major":14,"minor":5}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":2}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarHeader(content:)"],"names":{"title":"tabViewSidebarHeader(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarHeader"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom header to the sidebar of a tab view."},{"text":""},{"text":"The header appears at the top of the sidebar before"},{"text":"any tab labels and can scroll with the content. The header is"},{"text":"only visible when the ``TabView`` is displaying the sidebar."},{"text":""},{"text":"The following example adds a welcome message to"},{"text":"the top of the sidebar:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarHeader {"},{"text":" WelcomeHeaderView()"},{"text":" }"},{"text":""},{"text":"> Note: To have a sidebar, a``TabView`` needs the"},{"text":" ``TabViewStyle/sidebarAdaptable`` style."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarHeader"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarFooter(content:)"],"names":{"title":"tabViewSidebarFooter(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarFooter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom footer to the sidebar of a tab view."},{"text":""},{"text":"The footer appears at the bottom of the sidebar after"},{"text":"any tab labels and can scroll with the content. The footer is"},{"text":"only visible when the ``TabView`` is displaying the sidebar."},{"text":""},{"text":"The following example adds a link to contact support to"},{"text":"the bottom of the sidebar content:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarFooter {"},{"text":" ContactSupportLink()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarFooter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarBottomBar(content:)"],"names":{"title":"tabViewSidebarBottomBar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarBottomBar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom bottom bar to the sidebar of a tab view."},{"text":""},{"text":"The content is pinned at the bottom of the sidebar, so it's"},{"text":"always visible when the sidebar is visible and doesn't"},{"text":"scroll with the content."},{"text":""},{"text":"The following example adds an account button to"},{"text":"the bottom of the sidebar:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarBottomBar {"},{"text":" AccountButton()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarBottomBar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - statusKey: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"statusKey","declarationFragments":[{"kind":"identifier","spelling":"statusKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"statusKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabels: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabelKeys: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabelKeys","declarationFragments":[{"kind":"identifier","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabels: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameter inputLabels: An array of Text elements to use as input labels."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."}]},"functionSignature":{"parameters":[{"name":"inputLabelKeys","declarationFragments":[{"kind":"identifier","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchCompletion(_:)"],"names":{"title":"searchCompletion(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchCompletion"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a fully formed string with the value of this view when used"},{"text":"as a search suggestion."},{"text":""},{"text":"Use this method to associate a fully formed string with a"},{"text":"view that is within a search suggestion list context. The system"},{"text":"uses this value when the view is selected to replace the"},{"text":"partial text being currently edited of the associated search field."},{"text":""},{"text":"On tvOS, the string that you provide to the this modifier is"},{"text":"used when displaying the associated suggestion and when"},{"text":"replacing the partial text of the search field."},{"text":""},{"text":" SearchPlaceholderView()"},{"text":" .searchable(text: $text) {"},{"text":" Text(\"🍎\").searchCompletion(\"apple\")"},{"text":" Text(\"🍐\").searchCompletion(\"pear\")"},{"text":" Text(\"🍌\").searchCompletion(\"banana\")"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - completion: A string to use as the view’s completion."}]},"functionSignature":{"parameters":[{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchCompletion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotorEntry(id:in:)"],"names":{"title":"accessibilityRotorEntry(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotorEntry"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines an explicit identifier tying an Accessibility element for this"},{"text":"view to an entry in an Accessibility Rotor."},{"text":""},{"text":"Use this when creating an AccessibilityRotorEntry without a namespace"},{"text":"does not allow SwiftUI to automatically find and reveal the element,"},{"text":"or when the Rotor entry should be associated with a sub-element of"},{"text":"a complex view generated in a ForEach, for example."},{"text":""},{"text":"- Parameter id: An arbitrary hashable identifier. Pass this same value"},{"text":"when initializing an AccessibilityRotorEntry."},{"text":"- Parameter namespace: A namespace created with `@Namespace()`. Pass this"},{"text":"same namespace when initializing an `AccessibilityRotorEntry`."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotorEntry"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonBorderShape(_:)"],"names":{"title":"buttonBorderShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonBorderShape"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the border shape for buttons in this view."},{"text":""},{"text":"The border shape is used to draw the platter for a bordered button."},{"text":""},{"text":"The border shape affects buttons of the"},{"text":"``PrimitiveButtonStyle/bordered`` and"},{"text":"``PrimitiveButtonStyle/borderedProminent`` styles."},{"text":""},{"text":"- Note: In macOS 15 and earlier, some border shapes are only applicable"},{"text":" to bordered buttons in widgets."},{"text":""},{"text":"- Parameter shape: The shape to use."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonBorderShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sceneAccessory(content:)"],"names":{"title":"sceneAccessory(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sceneAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines any scene accessories associated with `self`."},{"text":""},{"text":"A scene accessory declares supplementary content that the system"},{"text":"presents on the app's behalf when an associated piece of system"},{"text":"functionality becomes available, for example when an external display"},{"text":"is connected. The app declares what content to provide;"},{"text":"the system decides when and where to present it. Scene accessories"},{"text":"enhance the app's experience when available, but the app must remain"},{"text":"fully functional without them."},{"text":""},{"text":"For example, you can define a scene accessory for previewing a"},{"text":"non-interactive presentation, which may be presented when an external"},{"text":"display is connected:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var document: PresentationDocument"},{"text":""},{"text":" var body: some View {"},{"text":" PresentationDocumentView(document: document)"},{"text":" .sceneAccessory {"},{"text":" ExternalNonInteractiveAccessory {"},{"text":" PresentationPreview(document: document)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``SceneAccessoryContent/onAvailabilityChange`` modifier to"},{"text":"observe a scene accessory's system-determined availability. Observe the"},{"text":"lifecycle of the accessory's content using ``View/onAppear``,"},{"text":"``View/onDisappear``, and ``EnvironmentValues/scenePhase``."},{"text":""},{"text":"For example, you can present various controls based on the scene"},{"text":"accessory's current state:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @State private var isEnabled = false"},{"text":" @State private var isAvailable = false"},{"text":" @State private var isPresented = false"},{"text":" var document: PresentationDocument"},{"text":""},{"text":" var body: some View {"},{"text":" PresentationDocumentView(document: document)"},{"text":" .toolbar {"},{"text":" if isAvailable {"},{"text":" // Include a toolbar button to enable the"},{"text":" // scene accessory when a display is available."},{"text":" SecondaryDisplayToggle(isEnabled: $isEnabled)"},{"text":""},{"text":" // Include additional toolbar controls once the"},{"text":" // accessory is presented."},{"text":" if isPresented {"},{"text":" SecondaryDisplayControls()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .sceneAccessory {"},{"text":" ExternalNonInteractiveAccessory("},{"text":" isEnabled: $isEnabled"},{"text":" ) {"},{"text":" PresentationPreview(document: document)"},{"text":" .onAppear { isPresented = true }"},{"text":" .onDisappear { isPresented = false }"},{"text":" }"},{"text":" .onAvailabilityChange { newValue in"},{"text":" isAvailable = newValue"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"SceneAccessoryContent","rhsPrecise":"s:7SwiftUI21SceneAccessoryContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sceneAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SceneAccessoryContent","preciseIdentifier":"s:7SwiftUI21SceneAccessoryContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macCatalyst","isUnconditionallyUnavailable":true},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model knows"},{"text":" // about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":"Replacing system Rotors this way is useful when the System Rotor"},{"text":"does not automatically pick up elements that aren't on-screen,"},{"text":"such as elements far down in a `LazyVStack` or `List`."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"headings."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var contentHeadingRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(.heading) {"},{"text":" ForEach(range in message.contentHeadingRanges) {"},{"text":" AccessibilityRotorEntry(textRange: range)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMessages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" id: \\.uuid, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to the headings in its vertical stack of"},{"text":"messages."},{"text":""},{"text":" // `messageListItems` is a list of `Identifiable` `MessageListItem`s"},{"text":" // that are either a `Message` or a heading, containing a `subject`."},{"text":" // `headingMessageListItems` is a filtered list of"},{"text":" // `messageListItems` containing just the headings."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messageListItems) { messageListItem in"},{"text":" switch messageListItem {"},{"text":" case .heading(let subject):"},{"text":" Text(subject)"},{"text":" case .message(let message):"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor("},{"text":" .heading, entries: headingMessageListItems, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to the headings in its vertical stack of"},{"text":"messages."},{"text":""},{"text":" // `messageListItems` is a list of `MessageListItem`s"},{"text":" // that are either a `Message` or a heading, containing a `subject`"},{"text":" // and a `uuid`."},{"text":" // `headingMessageListItems` is a filtered list of"},{"text":" // `messageListItems` containing just the headings."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messageListItems) { messageListItem in"},{"text":" switch messageListItem {"},{"text":" case .heading(let subject):"},{"text":" Text(subject)"},{"text":" case .message(let message):"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor("},{"text":" .heading, entries: headingMessageListItems,"},{"text":" entryID: \\.uuid, label: \\.subject"},{"text":" )"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor. The Rotor will be attached to the current Accessibility element,"},{"text":"and each entry will go the specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing headings."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated when"},{"text":" // `content` is set and then cached so that we don't have to"},{"text":" // re-compute them."},{"text":" var headingRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor("},{"text":" .heading,"},{"text":" textRanges: message.headingRanges"},{"text":" )"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelKey","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelResource: Localized label identifying this Rotor to the"},{"text":" user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelResource","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMesages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"EntryModel","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires that the Rotor be attached to a"},{"text":"`ScrollView`, or an Accessibility Element directly within a"},{"text":"`ScrollView`, such as a `ForEach`. When the user navigates to entries"},{"text":"from this Rotor, SwiftUI will automatically scroll them into place as"},{"text":"needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMesages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryID: \\.uuid, entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelKey","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires that the Rotor be attached to a"},{"text":"`ScrollView`, or an Accessibility Element directly within a"},{"text":"`ScrollView`, such as a `ForEach`. When the user navigates to entries"},{"text":"from this Rotor, SwiftUI will automatically scroll them into place as"},{"text":"needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMesages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryID: \\.uuid, entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelResource: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelResource","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMessages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" id: \\.uuid, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"EntryModel","index":1,"depth":1},{"name":"ID","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","formStyle(_:)"],"names":{"title":"formStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"formStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for forms in a view hierarchy."},{"text":""},{"text":"- Parameter style: The form style to set."},{"text":"- Returns: A view that uses the specified form style for itself"},{"text":" and its child views."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"FormStyle","rhsPrecise":"s:7SwiftUI9FormStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"formStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FormStyle","preciseIdentifier":"s:7SwiftUI9FormStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActions(edge:allowsFullSwipe:content:)"],"names":{"title":"swipeActions(edge:allowsFullSwipe:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom swipe actions to a row in a list."},{"text":""},{"text":"Use this method to add swipe actions to a view that acts as a row in a"},{"text":"list. Indicate the ``HorizontalEdge`` where the swipe action"},{"text":"originates, and define individual actions with ``Button`` instances."},{"text":"For example, if you have a list of messages,"},{"text":"you can add an action to toggle a message as unread"},{"text":"on a swipe from the leading edge,"},{"text":"and actions to delete or flag messages on a trailing edge swipe:"},{"text":""},{"text":" List {"},{"text":" ForEach(store.messages) { message in"},{"text":" MessageCell(message: message)"},{"text":" .swipeActions(edge: .leading) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) {"},{"text":" store.delete(message)"},{"text":" } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" Button { store.flag(message) } label: {"},{"text":" Label(\"Flag\", systemImage: \"flag\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Actions appear in the order you list them, starting from the swipe's"},{"text":"originating edge. In the example above, the Delete action appears"},{"text":"closest to the screen's trailing edge:"},{"text":""},{"text":"![A screenshot of a list of messages, where one of the messages has been"},{"text":" swiped from the trailing edge, revealing a Flag and Delete button."},{"text":" The Flag button is grey, while the Delete button is"},{"text":" red.](View-swipeActions-1)"},{"text":""},{"text":"For labels or images that appear in swipe actions, SwiftUI automatically"},{"text":"applies the ``SymbolVariants/fill-swift.type.property`` symbol variant,"},{"text":"as shown above."},{"text":""},{"text":"By default, the user can perform the first action for a given swipe"},{"text":"direction with a full swipe. For the example above, the user can perform"},{"text":"both the toggle unread and delete actions with full swipes."},{"text":"You can opt out of this behavior for an edge by setting"},{"text":"the `allowsFullSwipe` parameter to `false`. For example, you can"},{"text":"disable the full swipe on the leading edge:"},{"text":""},{"text":" .swipeActions(edge: .leading, allowsFullSwipe: false) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When you set a role for a button using one of the values from the"},{"text":"``ButtonRole`` enumeration, SwiftUI styles the button according to"},{"text":"its role. In the example above, the delete action appears in"},{"text":"``ShapeStyle/red`` because it has the ``ButtonRole/destructive`` role."},{"text":"If you want to set a different color — for example, to match the"},{"text":"overall theme of your app's UI — add the ``View/tint(_:)``"},{"text":"modifier to the button:"},{"text":""},{"text":" MessageCell(message: message)"},{"text":" .swipeActions(edge: .leading) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" .tint(.blue)"},{"text":" }"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) { store.delete(message) } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" Button { store.flag(message) } label: {"},{"text":" Label(\"Flag\", systemImage: \"flag\")"},{"text":" }"},{"text":" .tint(.orange)"},{"text":" }"},{"text":""},{"text":"The modifications in the code above make the toggle unread action"},{"text":"``ShapeStyle/blue`` and the flag action ``ShapeStyle/orange``:"},{"text":""},{"text":"![A screenshot of a row that the user swiped from the leading edge"},{"text":" to reveal a blue Unread button, and another screenshot of the same"},{"text":" row after the user swiped from the trailing edge to reveal an"},{"text":" orange Flag button and a red Delete button.](View-swipeActions-2)"},{"text":""},{"text":"When you add swipe actions, SwiftUI no longer synthesizes the Delete"},{"text":"actions that otherwise appear when using the"},{"text":"``ForEach/onDelete(perform:)`` method on a ``ForEach`` instance."},{"text":"You become responsible for creating a Delete"},{"text":"action, if appropriate, among your swipe actions."},{"text":""},{"text":"Actions accumulate for a given edge if you call the modifier multiple"},{"text":"times on the same list row view."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The edge of the view to associate the swipe actions with."},{"text":" The default is ``HorizontalEdge/trailing``."},{"text":" - allowsFullSwipe: A Boolean value that indicates whether a full swipe"},{"text":" automatically performs the first action. The default is `true`."},{"text":" - content: The content of the swipe actions."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"allowsFullSwipe","declarationFragments":[{"kind":"identifier","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":" = .trailing, "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)"],"names":{"title":"swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPresentationChanged"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom swipe actions to a row in a list or container,"},{"text":"notifying you when the actions are revealed or dismissed."},{"text":""},{"text":"Use this overload when you need to react to the swipe"},{"text":"actions's visibility — for example, to dim the row or"},{"text":"update surrounding chrome while actions are showing."},{"text":""},{"text":" @State private var isSwiped = false"},{"text":""},{"text":" MessageRow(message)"},{"text":" .opacity(isSwiped ? 0.5 : 1.0)"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) {"},{"text":" store.delete(message)"},{"text":" } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" } onPresentationChanged: {"},{"text":" isSwiped = $0"},{"text":" }"},{"text":""},{"text":"The closure is called with `true` when the row's swipe"},{"text":"actions become visible and `false` when they are"},{"text":"dismissed."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The edge of the view to associate the swipe"},{"text":" actions with."},{"text":" The default is ``HorizontalEdge/trailing``."},{"text":" - allowsFullSwipe: A Boolean value that indicates"},{"text":" whether a full swipe automatically performs the"},{"text":" first action. The default is `true`."},{"text":" - content: The content of the swipe actions."},{"text":" - onPresentationChanged: A closure called when the"},{"text":" swipe actions are revealed or dismissed."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"allowsFullSwipe","declarationFragments":[{"kind":"identifier","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"onPresentationChanged","declarationFragments":[{"kind":"identifier","spelling":"onPresentationChanged"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":" = .trailing, "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPresentationChanged"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActionsContainer()"],"names":{"title":"swipeActionsContainer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActionsContainer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Coordinates swipe action dismissal and mutual"},{"text":"exclusion across rows in a container."},{"text":""},{"text":"Apply this modifier to a `ScrollView` or other"},{"text":"container that holds rows using the"},{"text":"``View/swipeActions(edge:allowsFullSwipe:content:)``"},{"text":"modifier. The container ensures that:"},{"text":""},{"text":"- Only one row's swipe actions are revealed at"},{"text":" a time."},{"text":"- Scrolling the container dismisses any open"},{"text":" actions."},{"text":"- Tapping outside the active row dismisses its"},{"text":" actions."},{"text":""},{"text":"`List` provides this coordination automatically."},{"text":"Use `swipeActionsContainer()` when building custom"},{"text":"row-based layouts that use `ScrollView`,"},{"text":"`LazyVStack`, or similar containers."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemRow(item)"},{"text":" .swipeActions {"},{"text":" Button(\"Delete\", role: .destructive) {"},{"text":" delete(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .swipeActionsContainer()"},{"text":""},{"text":"Applying this modifier to a `List` is a no-op,"},{"text":"since `List` already provides this coordination."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActionsContainer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","deleteDisabled(_:)"],"names":{"title":"deleteDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"deleteDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition for whether the view's view hierarchy is deletable."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"deleteDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIdentifier(_:isEnabled:)"],"names":{"title":"accessibilityIdentifier(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the string you specify to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."},{"text":""},{"text":"- Parameters:"},{"text":" - identifier: The accessibility identifier to apply."},{"text":" - isEnabled: If true the accessibility identifier is applied;"},{"text":" otherwise the accessibility identifier is unchanged."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIdentifier(_:)"],"names":{"title":"accessibilityIdentifier(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the string you specify to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSpacing(_:)"],"names":{"title":"listRowSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the vertical spacing between two adjacent rows in a List."},{"text":""},{"text":"The following example creates a List with 10 pts of spacing between each"},{"text":"row:"},{"text":""},{"text":" List {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":" .listRowSpacing(10.0)"},{"text":""},{"text":"- Parameter spacing: The spacing value to use. A value of `nil` uses"},{"text":" the default spacing."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - maximumDistance: The maximum distance that the fingers or cursor"},{"text":" performing the long press can move before the gesture fails."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - maximumDistance: The maximum distance that the fingers or cursor"},{"text":" performing the long press can move before the gesture fails."},{"text":" - inputKinds: A set of input kinds that this gesture recognizes."},{"text":" If not specified, the gesture will recognize all applicable input"},{"text":" kinds that a person can use to perform it."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"inputKinds","declarationFragments":[{"kind":"identifier","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"pressing","declarationFragments":[{"kind":"identifier","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:pressing:perform:)"],"names":{"title":"onLongPressGesture(minimumDuration:pressing:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes"},{"text":"a long press gesture."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"pressing","declarationFragments":[{"kind":"identifier","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:perform:onPressingChanged:)"},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"localized string key for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are ``Text``. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"localized string resource for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are ``Text``. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"string variable as a title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title,"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"text view for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Permanently erase the items in the trash?\"),"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a localized string key for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a localized string resource for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a string variable for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title,"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a text view for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Permanently erase the items in the trash?\"),"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string key for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string resource for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a string variable for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" var title: String"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title, isPresented: $isConfirming,"},{"text":" presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a text view for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Import New File?\"),"},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string key for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string resource for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a string variable for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a text view for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string key for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string resource for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a string variable for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" var title: String"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title, isPresented: $isConfirming,"},{"text":" presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a text view for the message."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Import New File?\"),"},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string key for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string resource for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a string variable for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a text view for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellColumns(_:)"],"names":{"title":"gridCellColumns(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellColumns"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Tells a view that acts as a cell in a grid to span the specified"},{"text":"number of columns."},{"text":""},{"text":"By default, each view that you put into the content closure of a"},{"text":"``GridRow`` corresponds to exactly one column of the grid. Apply the"},{"text":"`gridCellColumns(_:)` modifier to a view that you want to span more"},{"text":"than one column, as in the following example of a typical macOS"},{"text":"configuration view:"},{"text":""},{"text":" Grid(alignment: .leadingFirstTextBaseline) {"},{"text":" GridRow {"},{"text":" Text(\"Regular font:\")"},{"text":" .gridColumnAlignment(.trailing)"},{"text":" Text(\"Helvetica 12\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Text(\"Fixed-width font:\")"},{"text":" Text(\"Menlo Regular 11\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.clear"},{"text":" .gridCellUnsizedAxes([.vertical, .horizontal])"},{"text":" Toggle(\"Use fixed-width font for new documents\", isOn: $isOn)"},{"text":" .gridCellColumns(2) // Span two columns."},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``Toggle`` in the example above spans the column that contains"},{"text":"the font names and the column that contains the buttons:"},{"text":""},{"text":"![A screenshot of a configuration view, arranged in a grid. The grid"},{"text":"has three colums and three rows. Scanning from top to bottom, the"},{"text":"left-most column contains a cell with the text Regular font, a cell with"},{"text":"the text Fixed-width font, and a blank cell. The middle row contains"},{"text":"a cell with the text Helvetica 12, a cell with the text Menlo Regular"},{"text":"11, and a cell with a labeled checkbox. The label says Use fixed-width"},{"text":"font for new documents. The label spans its own cell and the cell to"},{"text":"its right. The right-most column contains two cells with buttons"},{"text":"labeled Select. The last column's bottom cell is merged with the cell"},{"text":"from the middle columnn that holds the labeled"},{"text":"checkbox.](View-gridCellColumns-1-macOS)"},{"text":""},{"text":"> Important: When you tell a cell to span multiple columns, the grid"},{"text":"changes the merged cell to use anchor alignment, rather than the"},{"text":"usual alignment guides. For information about the behavior of"},{"text":"anchor alignment, see ``View/gridCellAnchor(_:)``."},{"text":""},{"text":"As a convenience you can cause a view to span all of the ``Grid``"},{"text":"columns by placing the view directly in the content closure of the"},{"text":"``Grid``, outside of a ``GridRow``, and omitting the modifier. To do"},{"text":"the opposite and include more than one view in a cell, group the views"},{"text":"using an appropriate layout container, like an ``HStack``, so that"},{"text":"they act as a single view."},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of columns that the view should consume"},{"text":" when placed in a grid row."},{"text":""},{"text":"- Returns: A view that occupies the specified number of columns in a"},{"text":" grid row."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellColumns"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellAnchor(_:)"],"names":{"title":"gridCellAnchor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies a custom alignment anchor for a view that acts as a grid cell."},{"text":""},{"text":"Grids, like stacks and other layout containers, perform most alignment"},{"text":"operations using alignment guides. The grid moves the contents of each"},{"text":"cell in a row in the y direction until the specified"},{"text":"``VerticalAlignment`` guide of each view in the row aligns with the same"},{"text":"guide of all the other views in the row. Similarly, the grid aligns the"},{"text":"``HorizontalAlignment`` guides of views in a column by adjusting views"},{"text":"in the x direction. See the guide types for more information about"},{"text":"typical SwiftUI alignment operations."},{"text":""},{"text":"When you use the `gridCellAnchor(_:)` modifier on a"},{"text":"view in a grid, the grid changes to an anchor-based alignment strategy"},{"text":"for the associated cell. With anchor alignment, the grid projects a"},{"text":"``UnitPoint`` that you specify onto both the view and the cell, and"},{"text":"aligns the two projections. For example, consider the following grid:"},{"text":""},{"text":" Grid(horizontalSpacing: 1, verticalSpacing: 1) {"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellAnchor(UnitPoint(x: 0.25, y: 0.75))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The grid creates red reference squares in the first row and column to"},{"text":"establish row and column sizes. Without the anchor modifier, the blue"},{"text":"marker in the remaining cell would appear at the center of its cell,"},{"text":"because of the grid's default ``Alignment/center`` alignment. With"},{"text":"the anchor modifier shown in the code above, the grid aligns the one"},{"text":"quarter point of the marker with the one quarter point of its cell in"},{"text":"the x direction, as measured from the origin at the top left of the"},{"text":"cell. The grid also aligns the three quarters point of the marker"},{"text":"with the three quarters point of the cell in the y direction:"},{"text":""},{"text":"![A screenshot of a grid with two rows and two columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The lower-right cell contains a small blue square that's"},{"text":"horizontally placed about one quarter of the way from the left to the"},{"text":"right, and about three quarters of the way from the top to the"},{"text":"bottom of the cell it occupies.](View-gridCellAnchor-1-iOS)"},{"text":""},{"text":"``UnitPoint`` defines many convenience points that correspond to the"},{"text":"typical alignment guides, which you can use as well. For example, you"},{"text":"can use ``UnitPoint/topTrailing`` to align the top and trailing edges"},{"text":"of a view in a cell with the top and trailing edges of the cell:"},{"text":""},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellAnchor(.topTrailing)"},{"text":""},{"text":"![A screenshot of a grid with two rows and two columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The lower-right cell contains a small blue square that's"},{"text":"horizontally aligned with the trailing edge, and vertically aligned"},{"text":"with the top edge of the cell.](View-gridCellAnchor-2-iOS)"},{"text":""},{"text":"Applying the anchor-based alignment strategy to a single cell"},{"text":"doesn't affect the alignment strategy that the grid uses on other cells."},{"text":""},{"text":"### Anchor alignment for merged cells"},{"text":""},{"text":"If you use the ``View/gridCellColumns(_:)`` modifier to cause"},{"text":"a cell to span more than one column, or if you place a view in a grid"},{"text":"outside of a row so that the view spans the entire grid, the grid"},{"text":"automatically converts its vertical and horizontal alignment guides"},{"text":"to the unit point equivalent for the merged cell, and uses an"},{"text":"anchor-based approach for that cell. For example, the following grid"},{"text":"places the marker at the center of the merged cell by converting the"},{"text":"grid's default ``Alignment/center`` alignment guide to a"},{"text":"``UnitPoint/center`` anchor for the blue marker in the merged cell:"},{"text":""},{"text":" Grid(alignment: .center, horizontalSpacing: 1, verticalSpacing: 1) {"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellColumns(2)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The grid makes this conversion in part to avoid ambiguity. Each column"},{"text":"has its own horizontal guide, and it isn't clear which of these"},{"text":"a cell that spans multiple columns should align with. Further, in"},{"text":"the example above, neither of the center alignment guides for the"},{"text":"second or third column would provide the expected behavior, which is"},{"text":"to center the marker in the merged cell. Anchor alignment provides"},{"text":"this behavior:"},{"text":""},{"text":"![A screenshot of a grid with two rows and three columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The other two cells are meged into a single cell that"},{"text":"contains a small blue square that's centered in the merged"},{"text":"cell.](View-gridCellAnchor-3-iOS)"},{"text":""},{"text":"- Parameters:"},{"text":" - anchor: The unit point that defines how to align the view"},{"text":" within the bounds of its grid cell."},{"text":""},{"text":"- Returns: A view that uses the specified anchor point to align its"},{"text":" content."}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridColumnAlignment(_:)"],"names":{"title":"gridColumnAlignment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridColumnAlignment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the default horizontal alignment of the grid column that"},{"text":"the view appears in."},{"text":""},{"text":"You set a default alignment for the cells in a grid in both vertical"},{"text":"and horizontal dimensions when you create the grid with the"},{"text":"``Grid/init(alignment:horizontalSpacing:verticalSpacing:content:)``"},{"text":"initializer. However, you can use the `gridColumnAlignment(_:)` modifier"},{"text":"to override the horizontal alignment of a column within the grid. The"},{"text":"following example sets a grid's alignment to"},{"text":"``Alignment/leadingFirstTextBaseline``, and then sets the first column"},{"text":"to use ``HorizontalAlignment/trailing`` alignment:"},{"text":""},{"text":" Grid(alignment: .leadingFirstTextBaseline) {"},{"text":" GridRow {"},{"text":" Text(\"Regular font:\")"},{"text":" .gridColumnAlignment(.trailing) // Align the entire first column."},{"text":" Text(\"Helvetica 12\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Text(\"Fixed-width font:\")"},{"text":" Text(\"Menlo Regular 11\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.clear"},{"text":" .gridCellUnsizedAxes([.vertical, .horizontal])"},{"text":" Toggle(\"Use fixed-width font for new documents\", isOn: $isOn)"},{"text":" .gridCellColumns(2)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This creates the layout of a typical macOS configuration"},{"text":"view, with the trailing edge of the first column flush with the"},{"text":"leading edge of the second column:"},{"text":""},{"text":"![A screenshot of a configuration view, arranged in a grid. The grid"},{"text":"has three colums and three rows. Scanning from top to bottom, the"},{"text":"left-most column contains a cell with the text Regular font, a cell with"},{"text":"the text Fixed-width font, and a blank cell. The middle row contains"},{"text":"a cell with the text Helvetica 12, a cell with the text Menlo Regular"},{"text":"11, and a cell with a labeled checkbox. The label says Use fixed-width"},{"text":"font for new documents. The label spans its own cell and the cell to"},{"text":"its right. The right-most column contains two cells with buttons"},{"text":"labeled Select. The last column's bottom cell is merged with the cell"},{"text":"from the middle columnn that holds the labeled"},{"text":"checkbox.](View-gridColumnAlignment-1-macOS)"},{"text":""},{"text":"Add the modifier to only one cell in a column. The grid"},{"text":"automatically aligns all cells in that column the same way."},{"text":"You get undefined behavior if you apply different alignments to"},{"text":"different cells in the same column."},{"text":""},{"text":"To override row alignment, see ``GridRow/init(alignment:content:)``. To"},{"text":"override alignment for a single cell, see ``View/gridCellAnchor(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - guide: The ``HorizontalAlignment`` guide to use for the grid"},{"text":" column that the view appears in."},{"text":""},{"text":"- Returns: A view that uses the specified horizontal alignment, and"},{"text":" that causes all cells in the same column of a grid to use the"},{"text":" same alignment."}]},"functionSignature":{"parameters":[{"name":"guide","declarationFragments":[{"kind":"identifier","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridColumnAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellUnsizedAxes(_:)"],"names":{"title":"gridCellUnsizedAxes(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellUnsizedAxes"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Asks grid layouts not to offer the view extra size in the specified"},{"text":"axes."},{"text":""},{"text":"Use this modifier to prevent a flexible view from taking more space"},{"text":"on the specified axes than the other cells in a row or column require."},{"text":"For example, consider the following ``Grid`` that places a ``Divider``"},{"text":"between two rows of content:"},{"text":""},{"text":" Grid {"},{"text":" GridRow {"},{"text":" Text(\"Hello\")"},{"text":" Image(systemName: \"globe\")"},{"text":" }"},{"text":" Divider()"},{"text":" GridRow {"},{"text":" Image(systemName: \"hand.wave\")"},{"text":" Text(\"World\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The text and images all have ideal widths for their content. However,"},{"text":"because a divider takes as much space as its parent offers, the grid"},{"text":"fills the width of the display, expanding all the other cells to match:"},{"text":""},{"text":"![A screenshot of items arranged in a grid. The upper-left"},{"text":"cell in the grid contains the word hello. The upper-right contains"},{"text":"an image of a globe. The lower-left contains an image of a waving hand."},{"text":"The lower-right contains the word world. A dividing line that spans"},{"text":"the width of the grid separates the upper and lower elements. The grid's"},{"text":"rows have minimal vertical spacing, but it's columns have a lot of"},{"text":"horizontal spacing, with column content centered"},{"text":"horizontally.](View-gridCellUnsizedAxes-1-iOS)"},{"text":""},{"text":"You can prevent the grid from giving the divider more width than"},{"text":"the other cells require by adding the modifier with the"},{"text":"``Axis/horizontal`` parameter:"},{"text":""},{"text":" Divider()"},{"text":" .gridCellUnsizedAxes(.horizontal)"},{"text":""},{"text":"This restores the grid to the width that it would have without the"},{"text":"divider:"},{"text":""},{"text":"![A screenshot of items arranged in a grid. The upper-left"},{"text":"position in the grid contains the word hello. The upper-right contains"},{"text":"an image of a globe. The lower-left contains an image of a waving hand."},{"text":"The lower-right contains the word world. A dividing line that spans"},{"text":"the width of the grid separates the upper and lower elements. The grid's"},{"text":"rows and columns have minimal vertical or horizontal"},{"text":"spacing.](View-gridCellUnsizedAxes-2-iOS)"},{"text":""},{"text":"- Parameters:"},{"text":" - axes: The dimensions in which the grid shouldn't offer the view a"},{"text":" share of any available space. This prevents a flexible view like a"},{"text":" ``Spacer``, ``Divider``, or ``Color`` from defining the size of"},{"text":" a row or column."},{"text":""},{"text":"- Returns: A view that doesn't ask an enclosing grid for extra size"},{"text":" in one or more axes."}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellUnsizedAxes"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentToolbar(for:content:)"],"names":{"title":"contentToolbar(for:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar of the specified content view type with"},{"text":"the views you provide."},{"text":""},{"text":"Use this modifier to add toolbar content that remains consistent"},{"text":"regardless of the content view."},{"text":""},{"text":"Unlike the toolbar modifier, which configures the toolbar of the"},{"text":"modified view's container, the `contentToolbar` modifier configures the"},{"text":"toolbar within the modified view's content instead. This means that the"},{"text":"`contentToolbar` modifier should generally be applied directly to a"},{"text":"container view, instead of to the content within a container view. For"},{"text":"example, to configure the toolbar of tab view's sidebar, apply the"},{"text":"`contentToolbar` modifier to the `TabView` itself, not to any of the"},{"text":"tabs within the `TabView`."},{"text":""},{"text":"The example below adds a button to the tab view sidebar."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .contentToolbar(for: .tabViewSidebar) {"},{"text":" DisconnectDevicesButton()"},{"text":" }"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentToolbar(for:content:)"],"names":{"title":"contentToolbar(for:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar of the specified content view type with"},{"text":"the views you provide."},{"text":""},{"text":"Use this modifier to add toolbar content that remains consistent"},{"text":"regardless of the content view. Use a `toolbar` modifier within the"},{"text":"content view if the toolbar content is dependent the content view is"},{"text":"showing."},{"text":""},{"text":"Unlike the toolbar modifier, which configures the toolbar of the"},{"text":"modified view's container, the `contentToolbar` modifier configures the"},{"text":"toolbar within the modified view's content instead. This means that the"},{"text":"`contentToolbar` modifier should generally be applied directly to a"},{"text":"container view, instead of to the content within a container view. For"},{"text":"example, to configure the toolbar of tab view's sidebar, apply the"},{"text":"`contentToolbar` modifier to the `TabView` itself, not to any of the"},{"text":"tabs within the `TabView`."},{"text":""},{"text":"The content toolbar modifier expects a collection of toolbar items that"},{"text":"you can provide by either supplying a collection of views with each view"},{"text":"wrapped in a ``ToolbarItem``, or by providing a collection of views as a"},{"text":"``ToolbarItemGroup``. The example below adds an account summary to the"},{"text":"bottom of the tab view sidebar and a button to the tab view sidebar"},{"text":"overflow menu."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .contentToolbar(for: .tabViewSidebar) {"},{"text":" ToolbarItem(placement: .automatic) {"},{"text":" DisconnectDevicesButton()"},{"text":" }"},{"text":" ToolbarItem(placement: .bottomBar) {"},{"text":" AccountSummaryView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ToolbarContentBuilder","preciseIdentifier":"s:7SwiftUI21ToolbarContentBuilderV"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"ToolbarContent","rhsPrecise":"s:7SwiftUI14ToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ToolbarContentBuilder","preciseIdentifier":"s:7SwiftUI21ToolbarContentBuilderV"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToolbarContent","preciseIdentifier":"s:7SwiftUI14ToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(content:)"],"names":{"title":"toolbar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the views you provide."},{"text":""},{"text":"Use this modifier to add content to the toolbar. The toolbar modifier"},{"text":"expects a collection of toolbar items that you can provide either by"},{"text":"supplying a collection of views with each view wrapped in a"},{"text":"``ToolbarItem``, or by providing a collection of views as a"},{"text":"``ToolbarItemGroup``. The example below adds views to using a toolbar"},{"text":"item group to support text editing features:"},{"text":""},{"text":" struct StructToolbarItemGroupView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system(size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar {"},{"text":" ToolbarItemGroup {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing a font size selector, and toggles for bold, italic."},{"text":" and underlined text styling installed in the toolbar to"},{"text":" support text editing in"},{"text":" macOS.](SwiftUI-View-Styling-ToolbarContent.png)"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(content:)"],"names":{"title":"toolbar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the specified items."},{"text":""},{"text":"Use this method to populate a toolbar with a collection of views that"},{"text":"you provide to a toolbar content builder."},{"text":""},{"text":"The toolbar modifier expects a collection of toolbar items which you can"},{"text":"provide either by supplying a collection of views with each view"},{"text":"wrapped in a ``ToolbarItem``, or by providing a collection of views as"},{"text":"a ``ToolbarItemGroup``. The example below uses a collection of"},{"text":"``ToolbarItem`` views to create a macOS toolbar that supports text"},{"text":"editing features:"},{"text":""},{"text":" struct StructToolbarItemGroupView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system(size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar {"},{"text":" ToolbarItemGroup {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing a font size selector, and toggles for bold, italic."},{"text":" and underlined text styling installed in the toolbar to"},{"text":" support text editing in"},{"text":" macOS.](SwiftUI-View-Styling-ToolbarContent.png)"},{"text":""},{"text":"Although it's not mandatory, wrapping a related group of toolbar"},{"text":"items together in a ``ToolbarItemGroup`` provides a one-to-one mapping"},{"text":"between controls and toolbar items which results in the correct layout"},{"text":"and spacing on each platform."},{"text":"For design guidance on toolbars, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":"- Parameter content: The items representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"ToolbarContent","rhsPrecise":"s:7SwiftUI14ToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToolbarContent","preciseIdentifier":"s:7SwiftUI14ToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(id:content:)"],"names":{"title":"toolbar(id:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the specified items,"},{"text":"allowing for user customization."},{"text":""},{"text":"Use this modifier when you want to allow the user to customize the"},{"text":"components and layout of elements in the toolbar. The toolbar modifier"},{"text":"expects a collection of toolbar items which you can provide either by"},{"text":"supplying a collection of views with each view wrapped in a"},{"text":"``ToolbarItem``."},{"text":""},{"text":"> Note: Customizable toolbars will be displayed on both macOS and iOS,"},{"text":" but only apps running on iPadOS 16.0 and later will support"},{"text":" user customization."},{"text":""},{"text":"The example below creates a view that represents each"},{"text":"``ToolbarItem`` along with an ID that uniquely identifies the toolbar"},{"text":"item to the customization editor:"},{"text":""},{"text":" struct ToolsEditorView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system("},{"text":" size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar(id: \"editingtools\") {"},{"text":" ToolbarItem("},{"text":" id: \"sizeSelector\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" }"},{"text":" ToolbarItem("},{"text":" id: \"bold\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" }"},{"text":" ToolbarItem("},{"text":" id: \"italic\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing the macOS toolbar customization"},{"text":" editor.](SwiftUI-View-Styling-ToolbarCustomization.png)"},{"text":""},{"text":"> Note: Only ``ToolbarItemPlacement/secondaryAction`` items support"},{"text":" customization in iPadOS. Other items follow the normal"},{"text":" placement rules and can't be customized by the user."},{"text":""},{"text":"In macOS you can enable menu support for toolbar customization by"},{"text":"adding a ``ToolbarCommands`` instance to a scene using the"},{"text":"``Scene/commands(content:)`` scene modifier:"},{"text":""},{"text":" @main"},{"text":" struct ToolbarContent_macOSApp: App {"},{"text":" var body: some Scene {"},{"text":" WindowGroup {"},{"text":" ToolsEditorView()"},{"text":" .frame(maxWidth: .infinity, maxHeight: .infinity)"},{"text":" }"},{"text":" .commands {"},{"text":" ToolbarCommands()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When you add the toolbar commands, the system adds a menu item to"},{"text":"your app's main menu to provide toolbar customization support."},{"text":"This is in addition to the ability to Control-click on the"},{"text":"toolbar to open the toolbar customization editor."},{"text":""},{"text":"![A screenshot of the toolbar editor support for the macOS view"},{"text":"menu.](SwiftUI-View-Styling-ToolbarCustomizationMenu.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - id: A unique identifier for this toolbar."},{"text":" - content: The content representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"CustomizableToolbarContent","rhsPrecise":"s:7SwiftUI26CustomizableToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"CustomizableToolbarContent","preciseIdentifier":"s:7SwiftUI26CustomizableToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The title to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a localized string."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter titleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a localized string resource."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter titleResource: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation, using a string."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The string to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a custom view."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"- Parameter title: The view to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":11,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","assistiveAccessNavigationIcon(_:)"],"names":{"title":"assistiveAccessNavigationIcon(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's icon for purposes of navigation."},{"text":""},{"text":"In an Assistive Access scene on iOS and iPadOS, the icon is displayed"},{"text":"adjacent to the navigation title. Otherwise, the icon is unused."},{"text":""},{"text":"- Parameters:"},{"text":" - icon: The icon image to display."}]},"functionSignature":{"parameters":[{"name":"icon","declarationFragments":[{"kind":"identifier","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","assistiveAccessNavigationIcon(systemImage:)"],"names":{"title":"assistiveAccessNavigationIcon(systemImage:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's icon for purposes of navigation."},{"text":""},{"text":"In an Assistive Access scene on iOS and iPadOS, the icon is displayed"},{"text":"adjacent to the navigation title. Otherwise, the icon is unused."},{"text":""},{"text":"- Parameters:"},{"text":" - systemImage: The system symbol to display."}]},"functionSignature":{"parameters":[{"name":"systemImage","declarationFragments":[{"kind":"identifier","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitleDisplayMode(_:)"],"names":{"title":"navigationBarTitleDisplayMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the title display mode for this view."},{"text":""},{"text":"- Parameter displayMode: The style to use for displaying the title."}]},"functionSignature":{"parameters":[{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a localized string."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a localized string resource."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a string."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRepresentation(representation:)"],"names":{"title":"accessibilityRepresentation(representation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRepresentation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Replaces one or more accessibility elements for this view with new"},{"text":"accessibility elements."},{"text":""},{"text":"You can make controls accessible by using a custom style. For example, a custom"},{"text":"``ToggleStyle`` that you create inherits the accessibility features of ``Toggle``"},{"text":"automatically. When you can't use the parent view's accessibility elements, use the"},{"text":"`accessibilityRepresentation(representation:)`"},{"text":"modifier instead. This modifier replaces default accessibility elements with different accessibility"},{"text":"elements that you provide. You use synthetic, non-visual accessibility elements to represent"},{"text":"what the view displays."},{"text":""},{"text":"The example below makes a custom adjustable control accessible by explicitly"},{"text":"defining the representation of its step increments using a ``Slider``:"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" SliderTrack(...) // Custom slider implementation."},{"text":" }"},{"text":" .accessibilityRepresentation {"},{"text":" Slider(value: $value, in: 0...100) {"},{"text":" Text(\"Label\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI hides the view that you provide in the `representation` closure"},{"text":"and makes it non-interactive. The framework uses it only to"},{"text":"generate accessibility elements."},{"text":""},{"text":"- Parameter representation: A hidden view that the accessibility"},{"text":" system uses to generate accessibility elements."},{"text":""}]},"functionSignature":{"parameters":[{"name":"representation","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRepresentation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityChildren(children:)"],"names":{"title":"accessibilityChildren(children:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChildren"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Replaces the existing accessibility element's children with one or"},{"text":"more new synthetic accessibility elements."},{"text":""},{"text":"Use this modifier to replace an existing element's children with one"},{"text":"or more new synthetic accessibility elements you provide. This allows"},{"text":"for synthetic, non-visual accessibility elements to be set as children"},{"text":"of a visual accessibility element."},{"text":""},{"text":"SwiftUI creates an accessibility container implicitly when needed."},{"text":"If an accessibility element already exists, the framework converts it"},{"text":"into an accessibility container."},{"text":""},{"text":"In the example below, a ``Canvas`` displays a graph of vertical bars that don't have any"},{"text":"inherent accessibility elements. You make the view accessible by adding"},{"text":"the ``accessibilityChildren(children:)`` modifier with views whose accessibility"},{"text":"elements represent the values of each bar drawn in the canvas:"},{"text":""},{"text":" var body: some View {"},{"text":" Canvas { context, size in"},{"text":" // Draw Graph"},{"text":" for data in dataSet {"},{"text":" let path = Path("},{"text":" roundedRect: CGRect("},{"text":" x: (size.width / CGFloat(dataSet.count))"},{"text":" * CGFloat(data.week),"},{"text":" y: 0,"},{"text":" width: size.width / CGFloat(dataSet.count),"},{"text":" height: CGFloat(data.lines),"},{"text":" cornerRadius: 5)"},{"text":" context.fill(path, with: .color(.blue))"},{"text":" }"},{"text":" // Draw Axis and Labels"},{"text":" ..."},{"text":" }"},{"text":" .accessibilityLabel(\"Lines of Code per Week\")"},{"text":" .accessibilityChildren {"},{"text":" HStack {"},{"text":" ForEach(dataSet) { data in"},{"text":" RoundedRectangle(cornerRadius: 5)"},{"text":" .accessibilityLabel(\"Week \\(data.week)\")"},{"text":" .accessibilityValue(\"\\(data.lines) lines\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI hides any views that you provide with the `children` parameter,"},{"text":"then the framework uses the views to generate the accessibility elements."},{"text":""},{"text":"- Parameter children: A ``ContentBuilder`` that represents the replacement"},{"text":" child views the framework uses to generate accessibility elements."}]},"functionSignature":{"parameters":[{"name":"children","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChildren"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(_:action:)"],"names":{"title":"onKeyPress(_:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses a key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"SwiftUI performs the action for key-down and key-repeat events."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to match against incoming hardware keyboard events."},{"text":" - action: The action to perform. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(_:phases:action:)"],"names":{"title":"onKeyPress(_:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses a key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"SwiftUI performs the action for the specified event phases."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to match against incoming hardware keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.up`,"},{"text":" and `.repeat`)."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(keys:phases:action:)"],"names":{"title":"onKeyPress(keys:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses one or more keys on a hardware"},{"text":"keyboard while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - keys: A set of keys to match against incoming hardware"},{"text":" keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds keyboard input when focused."}]},"functionSignature":{"parameters":[{"name":"keys","declarationFragments":[{"kind":"identifier","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(characters:phases:action:)"],"names":{"title":"onKeyPress(characters:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses one or more keys on a hardware"},{"text":"keyboard while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - characters: The set of characters to match against incoming"},{"text":" hardware keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"characters","declarationFragments":[{"kind":"identifier","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(phases:action:)"],"names":{"title":"onKeyPress(phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses any key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6hiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hidden()"],"names":{"title":"hidden()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides this view unconditionally."},{"text":""},{"text":"Hidden views are invisible and can't receive or respond to interactions."},{"text":"However, they do remain in the view hierarchy and affect layout. Use"},{"text":"this modifier if you want to include a view for layout purposes, but"},{"text":"don't want it to display."},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"a.circle.fill\")"},{"text":" Image(systemName: \"b.circle.fill\")"},{"text":" Image(systemName: \"c.circle.fill\")"},{"text":" .hidden()"},{"text":" Image(systemName: \"d.circle.fill\")"},{"text":" }"},{"text":""},{"text":"The third circle takes up space, because it's still present, but"},{"text":"SwiftUI doesn't draw it onscreen."},{"text":""},{"text":"![A row of circles with the letters A, B, and D, with a gap where"},{"text":" the circle with the letter C should be.](SwiftUI-View-hidden-1.png)"},{"text":""},{"text":"If you want to conditionally include a view in the view hierarchy, use"},{"text":"an `if` statement instead:"},{"text":""},{"text":" VStack {"},{"text":" HStack {"},{"text":" Image(systemName: \"a.circle.fill\")"},{"text":" Image(systemName: \"b.circle.fill\")"},{"text":" if !isHidden {"},{"text":" Image(systemName: \"c.circle.fill\")"},{"text":" }"},{"text":" Image(systemName: \"d.circle.fill\")"},{"text":" }"},{"text":" Toggle(\"Hide\", isOn: $isHidden)"},{"text":" }"},{"text":""},{"text":"Depending on the current value of the `isHidden` state variable in the"},{"text":"example above, controlled by the ``Toggle`` instance, SwiftUI draws"},{"text":"the circle or completely omits it from the layout."},{"text":""},{"text":"![Two side by side groups of items, each composed of a toggle beneath"},{"text":" a row of circles with letters in them. The toggle on the left"},{"text":" is off and has four equally spaced circles above it: A, B, C, and D."},{"text":" The toggle on the right is on and has three equally spaced circles"},{"text":" above it: A, B, and D.](SwiftUI-View-hidden-2.png)"},{"text":""},{"text":"- Returns: A hidden view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVerticalCompressionBehavior(_:)"],"names":{"title":"toolbarVerticalCompressionBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalCompressionBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets how bars should compress when different types of toolbars"},{"text":"are hosted together and space is constrained."},{"text":""},{"text":"For example, a productivity-focused app like Files could ensure its"},{"text":"toolbar items are preferred over the tab bar:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Recents\") {"},{"text":" NavigationStack {"},{"text":" RootView()"},{"text":" .toolbar {"},{"text":" Button(\"Up\", systemImage: \"chevron.up\") {"},{"text":" }"},{"text":" Button(\"Down\", systemImage: \"chevron.down\") {"},{"text":" }"},{"text":" }"},{"text":" .toolbarVerticalCompressionBehavior(.prefersToolbarItems)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalCompressionBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityChartDescriptor(_:)"],"names":{"title":"accessibilityChartDescriptor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChartDescriptor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"R"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a descriptor to a View that represents a chart to make"},{"text":"the chart's contents accessible to all users."},{"text":""},{"text":"Use this method to provide information about your chart view"},{"text":"to allow VoiceOver and other assistive technology users to"},{"text":"perceive and interact with your chart and its data."},{"text":""},{"text":"This may be applied to any View that represents a chart,"},{"text":"including Image and custom-rendered chart views."},{"text":""},{"text":"The `accessibilityChartDescriptor` modifier can be applied to -any-"},{"text":"view representing a chart, the simplest case being just an image of"},{"text":"a chart. The implementation details of the view aren't important,"},{"text":"only the fact that it represents a chart, and that the provided"},{"text":"chart descriptor accurately describes the content of the chart."},{"text":""},{"text":"- Parameter representable: The ``AXChartDescriptorRepresentable``"},{"text":" used to describe your chart and its data."},{"text":""},{"text":"Example usage:"},{"text":""},{"text":"First define your `AXChartDescriptorRepresentable` type."},{"text":""},{"text":" struct MyChartDescriptorRepresentable:"},{"text":" AXChartDescriptorRepresentable {"},{"text":" func makeChartDescriptor() -> AXChartDescriptor {"},{"text":" // Build and return your `AXChartDescriptor` here."},{"text":" }"},{"text":""},{"text":" func updateChartDescriptor(_ descriptor: AXChartDescriptor) {"},{"text":" // Update your chart descriptor with any new values, or"},{"text":" // don't override if your chart doesn't have changing"},{"text":" // values."},{"text":" }"},{"text":" }"},{"text":""},{"text":"Then use the `accessibilityChartDescriptor` modifier to provide an"},{"text":"instance of your `AXChartDescriptorRepresentable` type to the view"},{"text":"representing your chart:"},{"text":""},{"text":" SomeChartView()"},{"text":" .accessibilityChartDescriptor(MyChartDescriptorRepresentable())"}]},"functionSignature":{"parameters":[{"name":"representable","declarationFragments":[{"kind":"identifier","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"R"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"R","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"R","rhs":"AXChartDescriptorRepresentable","rhsPrecise":"s:7SwiftUI30AXChartDescriptorRepresentableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChartDescriptor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"R"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AXChartDescriptorRepresentable","preciseIdentifier":"s:7SwiftUI30AXChartDescriptorRepresentableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter valueKey: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter valueResource: Text resource for the additional"},{"text":" accessibility information. For example: \"landscape.\" A value of `nil`"},{"text":" will remove any entry of additional information added earlier for any"},{"text":" `key` withthe same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter valueKey: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter valueResource: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"*","message":"Using non-localized strings for labels is not directly supported. Instead, wrap both the label and the value in a Text struct.","isUnconditionallyUnavailable":true},{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textSelectionAffinity(_:)"],"names":{"title":"textSelectionAffinity(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelectionAffinity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the direction of a selection or cursor relative to a text character."},{"text":""},{"text":"Use this modifier when you need to handle line breaks in a specific way,"},{"text":"alter cursor movement or deal with bidirectional text (text that"},{"text":"contains both LTR and RTL scripts, like English and Arabic combined)."},{"text":""},{"text":"Selection affinity also determines whether, for example, the insertion"},{"text":"point appears after the last character on a line or before the first"},{"text":"character on the following line in cases where text wraps across line boundaries."},{"text":""},{"text":"Given the scenario `hello|مرحبا`, where `|` represents the cursor & `مرحبا`"},{"text":"represents \"hello\" in Arabic, the ambiguity arises because:"},{"text":""},{"text":"- If the cursor is associated with the end of the English word, it would be"},{"text":" as if you're continuing to type in English (LTR)."},{"text":"- If the cursor is associated with the beginning of the Arabic word, it would"},{"text":" also be as if you're continuing to type in Arabic (RTL)."},{"text":""},{"text":"This modifier helps resolve this ambiguity by determining the"},{"text":"direction or association of the cursor relative to the surrounding text."},{"text":""},{"text":"The following example shows how you would specify a specific selection"},{"text":"affinity on the given hierarchy:"},{"text":""},{"text":" struct SuggestionTextEditor: View {"},{"text":" @State var text: String = \"\""},{"text":" @State var selection: TextSelection? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextEditor(text: $text, selection: $selection)"},{"text":" // A helper view that offers live suggestions based on selection."},{"text":" SuggestionsView("},{"text":" substrings: getSubstrings(text: text, indices: selection?.indices))"},{"text":" }"},{"text":" .textSelectionAffinity(.upstream)"},{"text":" }"},{"text":""},{"text":" private func getSubstrings("},{"text":" text: String, indices: TextSelection.Indices?"},{"text":" ) -> [Substring] {"},{"text":" // Resolve substrings representing the current selection..."},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct SuggestionsView: View { ... }"},{"text":""},{"text":"- Parameter affinity: The text selection affinity strategy to apply."},{"text":""},{"text":"- Returns: A view that uses the specified selection affinity strategy."}]},"functionSignature":{"parameters":[{"name":"affinity","declarationFragments":[{"kind":"identifier","spelling":"affinity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelectionAffinity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"affinity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuIndicator(_:)"],"names":{"title":"menuIndicator(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuIndicator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the menu indicator visibility for controls within this view."},{"text":""},{"text":"Use this modifier to override the default menu indicator"},{"text":"visibility for controls in this view. For example, the code below"},{"text":"creates a menu without an indicator:"},{"text":""},{"text":" Menu {"},{"text":" ForEach(history , id: \\.self) { historyItem in"},{"text":" Button(historyItem.title) {"},{"text":" self.openURL(historyItem.url)"},{"text":" }"},{"text":" }"},{"text":" } label: {"},{"text":" Label(\"Back\", systemImage: \"chevron.backward\")"},{"text":" .labelStyle(.iconOnly)"},{"text":" } primaryAction: {"},{"text":" if let last = history.last {"},{"text":" self.openURL(last.url)"},{"text":" }"},{"text":" }"},{"text":" .menuIndicator(.hidden)"},{"text":""},{"text":"- Note: On tvOS, the standard button styles do not include a menu"},{"text":" indicator, so this modifier will have no effect when using a"},{"text":" built-in button style. You can implement an indicator in your"},{"text":" own ``ButtonStyle`` implementation by checking the value of the"},{"text":" `menuIndicatorVisibility` environment value."},{"text":""},{"text":"- Parameter visibility: The menu indicator visibility to apply."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuIndicator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tableStyle(_:)"],"names":{"title":"tableStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for tables within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TableStyle","rhsPrecise":"s:7SwiftUI10TableStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TableStyle","preciseIdentifier":"s:7SwiftUI10TableStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gaugeStyle(_:)"],"names":{"title":"gaugeStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gaugeStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for gauges within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"GaugeStyle","rhsPrecise":"s:7SwiftUI10GaugeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gaugeStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"GaugeStyle","preciseIdentifier":"s:7SwiftUI10GaugeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tableColumnHeaders(_:)"],"names":{"title":"tableColumnHeaders(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableColumnHeaders"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls the visibility of a `Table`'s column header views."},{"text":""},{"text":"By default, `Table` will display a global header view with the labels"},{"text":"of each table column. This area is also where users can sort, resize,"},{"text":"and rearrange the columns. For simple cases that don't require those"},{"text":"features, this header can be hidden."},{"text":""},{"text":"This will not affect the header of any `Section`s in a table."},{"text":""},{"text":" Table(article.authors) {"},{"text":" TableColumn(\"Name\", value: \\.name)"},{"text":" TableColumn(\"Title\", value: \\.title)"},{"text":" }"},{"text":" .tableColumnHeaders(.hidden)"},{"text":""},{"text":"- Parameter visibility: A value of `visible` will show table columns,"},{"text":" `hidden` will remove them, and `automatic` will defer to default"},{"text":" behavior."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableColumnHeaders"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from an integer value."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"The following example shows a ``List`` with the value of `recentItems.count`"},{"text":"represented by a badge on one of the rows:"},{"text":""},{"text":" List {"},{"text":" Text(\"Recents\")"},{"text":" .badge(recentItems.count)"},{"text":" Text(\"Favorites\")"},{"text":" }"},{"text":""},{"text":"![A table with two rows, titled Recents and Favorites. The first row"},{"text":"shows the number 10 at the trailing side of the row"},{"text":" cell.](View-badge-1)"},{"text":""},{"text":"- Parameter count: An integer value to display in the badge."},{"text":" Set the value to zero to hide the badge."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a text view."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"Use this initializer when you want to style a ``Text`` view for use as a"},{"text":"badge. The following example customizes the badge with the"},{"text":"``Text/monospacedDigit()``, ``Text/foregroundColor(_:)``, and"},{"text":"``Text/bold()`` modifiers."},{"text":""},{"text":" var body: some View {"},{"text":" let badgeView = Text(\"\\(recentItems.count)\")"},{"text":" .monospacedDigit()"},{"text":" .foregroundColor(.red)"},{"text":" .bold()"},{"text":""},{"text":" List {"},{"text":" Text(\"Recents\")"},{"text":" .badge(badgeView)"},{"text":" Text(\"Favorites\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A table with two rows, titled Recents and Favorites. The first row"},{"text":"shows the number 21 at the side of the row cell. The number badge"},{"text":"appears in bold red text with monospaced digits.](View-badge-2)"},{"text":""},{"text":"Styling the text view has no effect when the badge appears in"},{"text":"a ``TabView``."},{"text":""},{"text":"- Parameter label: An optional ``Text`` view to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a localized string key."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf, and treats the"},{"text":"localized key similar to ``Text/init(_:tableName:bundle:comment:)``. For"},{"text":"more information about localizing strings, see ``Text``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.isDefault ? \"Default\" : nil)"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter key: An optional string key to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a localized string resource."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf. For"},{"text":"more information about localizing strings, see ``Text``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.isDefault ? \"Default\" : nil)"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter resource: An optional string resource to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"resource","declarationFragments":[{"kind":"identifier","spelling":"resource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"resource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a string."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf, and treats the"},{"text":"localized key similar to ``Text/init(_:)-9d1g4``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.defaultString())"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter label: An optional string to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","controlGroupStyle(_:)"],"names":{"title":"controlGroupStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for control groups within this view."},{"text":""},{"text":"- Parameter style: The style to apply to controls within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ControlGroupStyle","rhsPrecise":"s:7SwiftUI17ControlGroupStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ControlGroupStyle","preciseIdentifier":"s:7SwiftUI17ControlGroupStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:modifiers:)"],"names":{"title":"keyboardShortcut(_:modifiers:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a keyboard shortcut and assigns it to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing,"},{"text":"depth-first traversal of one or more view hierarchies. On macOS, the"},{"text":"system looks in the key window first, then the main window, and then the"},{"text":"command groups; on other platforms, the system looks in the active"},{"text":"scene, and then the command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."},{"text":""},{"text":"The default localization configuration is set to ``KeyboardShortcut/Localization-swift.struct/automatic``."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"modifiers","declarationFragments":[{"kind":"identifier","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":" = .command) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:)"],"names":{"title":"keyboardShortcut(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Assigns a keyboard shortcut to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing"},{"text":"traversal of one or more view hierarchies. On macOS, the system looks in"},{"text":"the key window first, then the main window, and then the command groups;"},{"text":"on other platforms, the system looks in the active scene, and then the"},{"text":"command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."}]},"functionSignature":{"parameters":[{"name":"shortcut","declarationFragments":[{"kind":"identifier","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:modifiers:localization:)"],"names":{"title":"keyboardShortcut(_:modifiers:localization:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a keyboard shortcut and assigns it to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing,"},{"text":"depth-first traversal of one or more view hierarchies. On macOS, the"},{"text":"system looks in the key window first, then the main window, and then the"},{"text":"command groups; on other platforms, the system looks in the active"},{"text":"scene, and then the command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."},{"text":""},{"text":"### Localization"},{"text":""},{"text":"Provide a `localization` value to specify how this shortcut"},{"text":"should be localized."},{"text":"Given that `key` is always defined in relation to the US-English"},{"text":"keyboard layout, it might be hard to reach on different international"},{"text":"layouts. For example the shortcut `⌘[` works well for the"},{"text":"US layout but is hard to reach for German users, where"},{"text":"`[` is available by pressing `⌥5`, making users type `⌥⌘5`."},{"text":"The automatic keyboard shortcut remapping re-assigns the shortcut to"},{"text":"an appropriate replacement, `⌘Ö` in this case."},{"text":""},{"text":"Certain shortcuts carry information about directionality. For instance,"},{"text":"`⌘[` can reveal a previous view. Following the layout direction of"},{"text":"the UI, this shortcut will be automatically mirrored to `⌘]`."},{"text":"However, this does not apply to items such as \"Align Left `⌘{`\","},{"text":"which will be \"left\" independently of the layout direction."},{"text":"When the shortcut shouldn't follow the directionality of the UI, but rather"},{"text":"be the same in both right-to-left and left-to-right directions, using"},{"text":"``KeyboardShortcut/Localization-swift.struct/withoutMirroring``"},{"text":"will prevent the system from flipping it."},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Card\") {"},{"text":" Button(\"Align Left\") { ... }"},{"text":" .keyboardShortcut(\"{\","},{"text":" modifiers: .option,"},{"text":" localization: .withoutMirroring)"},{"text":" Button(\"Align Right\") { ... }"},{"text":" .keyboardShortcut(\"}\","},{"text":" modifiers: .option,"},{"text":" localization: .withoutMirroring)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Lastly, providing the option"},{"text":"``KeyboardShortcut/Localization-swift.struct/custom``"},{"text":"disables"},{"text":"the automatic localization for this shortcut to tell the system that"},{"text":"internationalization is taken care of in a different way."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"modifiers","declarationFragments":[{"kind":"identifier","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"}]},{"name":"localization","declarationFragments":[{"kind":"identifier","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":" = .command, "},{"kind":"externalParam","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDefaultFocus(_:_:)"],"names":{"title":"accessibilityDefaultFocus(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDefaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a region in which default accessibility focus is evaluated by"},{"text":"assigning a value to a given accessibility focus state binding."},{"text":""},{"text":"Accessibility default focus is evaluated when a scene appears and an"},{"text":"accessibility technology like VoiceOver focuses on its content,"},{"text":"when an accessibility focus state binding update moves focus"},{"text":"automatically, and when the layout of a scene changes and the"},{"text":"accessibility technology must refocus on new content."},{"text":""},{"text":"In the following example, an accessibility technology, like VoiceOver,"},{"text":"automatically lands on the title of the playlist as the most important"},{"text":"view to initially have focus on, rather than navigating through"},{"text":"all controls to understand what the primary content of the view is."},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" PlayerControls(currentSong: $currentSong)"},{"text":" Text(playlist.title)"},{"text":" .font(.title)"},{"text":" .accessibilityFocused($focusedField, equals: .title)"},{"text":" PlaylistEntries(entries: playlist.entries)"},{"text":" }"},{"text":" .accessibilityDefaultFocus($focusedField, .title)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - binding: An accessibility focus state binding to update when"},{"text":" evaluating default accessibility focus."},{"text":" - value: The value to set the binding to during evaluation."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDefaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityFocused(_:equals:)"],"names":{"title":"accessibilityFocused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its accessibility element's focus state to"},{"text":"the given state value."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When accessibility focus moves to the"},{"text":" accessibility element of the modified view, SwiftUI sets the bound value to the corresponding"},{"text":" match value. If you set the state value programmatically to the matching value, then"},{"text":" accessibility focus moves to the accessibility element of the modified view. SwiftUI sets"},{"text":" the value to `nil` if accessibility focus leaves the accessibility element associated with the"},{"text":" modified view, and programmatically setting the value to `nil` dismisses focus automatically."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityFocused(_:)"],"names":{"title":"accessibilityFocused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its accessibility element's focus state"},{"text":"to the given boolean state value."},{"text":""},{"text":"- Parameter condition: The accessibility focus state to bind. When"},{"text":" accessibility focus moves to the accessibility element of the"},{"text":" modified view, the focus value is set to `true`."},{"text":" If the value is set to `true` programmatically, then accessibility"},{"text":" focus will move to accessibility element of the modified view."},{"text":" The value will be set to `false` if accessibility focus leaves"},{"text":" the accessibility element of the modified view,"},{"text":" and accessibility focus will be dismissed automatically if the"},{"text":" value is set to `false` programmatically."},{"text":""},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","groupBoxStyle(_:)"],"names":{"title":"groupBoxStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"groupBoxStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for group boxes within this view."},{"text":""},{"text":"- Parameter style: The style to apply to boxes within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"GroupBoxStyle","rhsPrecise":"s:7SwiftUI13GroupBoxStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"groupBoxStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"GroupBoxStyle","preciseIdentifier":"s:7SwiftUI13GroupBoxStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionActions(content:)"],"names":{"title":"sectionActions(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom actions to a section."},{"text":""},{"text":"On iOS, the actions are displayed as items after the content"},{"text":"of the section. On macOS, the actions are displayed"},{"text":"when a user hovers over the section."},{"text":""},{"text":"The following example adds an 'Add' button to"},{"text":"the 'Categories' section."},{"text":""},{"text":" List {"},{"text":" Label(\"Home\", systemImage: \"house\")"},{"text":" Label(\"Alerts\", systemImage: \"bell\")"},{"text":""},{"text":" Section(\"Categories\") {"},{"text":" Label(\"Climate\", systemImage: \"fan\")"},{"text":" Label(\"Lights\", systemImage: \"lightbulb\")"},{"text":" }"},{"text":" .sectionActions {"},{"text":" Button(\"Add Category\", systemImage: \"plus\") { }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionMargins(_:_:)"],"names":{"title":"listSectionMargins(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the section margins for the specific edges."},{"text":""},{"text":"Use this modifier on a list section to set customize its margins."},{"text":"Indicate the edges to set the margin of by naming either a single value"},{"text":"from ``Edge/Set``, or by specifying an"},{"text":" that"},{"text":"contains edge values. Margins for the other edges remain unchanged."},{"text":""},{"text":"The default section margins are based on the list style, list section"},{"text":"spacing and content margins of the list. Using this modifier overrides"},{"text":"these default values completely."},{"text":""},{"text":"For sections that have headers or footers, the section margins are"},{"text":"applied around these."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges to pad for sections in this view. The"},{"text":" default is ``Edge/Set/all``."},{"text":" - length: An amount, given in points, to pad section on the"},{"text":" specified edges."},{"text":""},{"text":"- Returns: A view in which the margins of list sections are set to the"},{"text":" specified amount on the specified edges."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDetents(_:)"],"names":{"title":"presentationDetents(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the available detents for the enclosing sheet."},{"text":""},{"text":"By default, sheets support the ``PresentationDetent/large`` detent."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter detents: A set of supported detents for the sheet."},{"text":" If you provide more that one detent, people can drag the sheet"},{"text":" to resize it."}]},"functionSignature":{"parameters":[{"name":"detents","declarationFragments":[{"kind":"identifier","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDetents(_:selection:)"],"names":{"title":"presentationDetents(_:selection:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the available detents for the enclosing sheet, giving you"},{"text":"programmatic control of the currently selected detent."},{"text":""},{"text":"By default, sheets support the ``PresentationDetent/large`` detent."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":" @State private var settingsDetent = PresentationDetent.medium"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents("},{"text":" [.medium, .large],"},{"text":" selection: $settingsDetent"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - detents: A set of supported detents for the sheet."},{"text":" If you provide more that one detent, people can drag the sheet"},{"text":" to resize it."},{"text":" - selection: A ``Binding`` to the currently selected detent."},{"text":" Ensure that the value matches one of the detents that you"},{"text":" provide for the `detents` parameter."}]},"functionSignature":{"parameters":[{"name":"detents","declarationFragments":[{"kind":"identifier","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]},{"name":"selection","declarationFragments":[{"kind":"identifier","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDragIndicator(_:)"],"names":{"title":"presentationDragIndicator(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDragIndicator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the drag indicator on top of a sheet."},{"text":""},{"text":"You can show a drag indicator when it isn't apparent that a"},{"text":"sheet can resize or when the sheet can't dismiss interactively."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationDragIndicator(.visible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter visibility: The preferred visibility of the drag indicator."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDragIndicator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackgroundInteraction(_:)"],"names":{"title":"presentationBackgroundInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackgroundInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls whether people can interact with the view behind a"},{"text":"presentation."},{"text":""},{"text":"On many platforms, SwiftUI automatically disables the view behind a"},{"text":"sheet that you present, so that people can't interact with the backing"},{"text":"view until they dismiss the sheet. Use this modifier if you want to"},{"text":"enable interaction."},{"text":""},{"text":"The following example enables people to interact with the view behind"},{"text":"the sheet when the sheet is at the smallest detent, but not at the other"},{"text":"detents:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents("},{"text":" [.height(120), .medium, .large])"},{"text":" .presentationBackgroundInteraction("},{"text":" .enabled(upThrough: .height(120)))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - interaction: A specification of how people can interact with the"},{"text":" view behind a presentation."}]},"functionSignature":{"parameters":[{"name":"interaction","declarationFragments":[{"kind":"identifier","spelling":"interaction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackgroundInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"interaction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCompactAdaptation(_:)"],"names":{"title":"presentationCompactAdaptation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies how to adapt a presentation to compact size classes."},{"text":""},{"text":"Some presentations adapt their appearance depending on the context. For"},{"text":"example, a sheet presentation over a vertically-compact view uses a"},{"text":"full-screen-cover appearance by default. Use this modifier to indicate"},{"text":"a custom adaptation preference. For example, the following code"},{"text":"uses a presentation adaptation value of ``PresentationAdaptation/none``"},{"text":"to request that the system not adapt the sheet in compact size classes:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationCompactAdaptation(.none)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you want to specify different adaptations for each dimension,"},{"text":"use the ``View/presentationCompactAdaptation(horizontal:vertical:)``"},{"text":"method instead."},{"text":""},{"text":"- Parameter adaptation: The adaptation to use in either a horizontally"},{"text":" or vertically compact size class."}]},"functionSignature":{"parameters":[{"name":"adaptation","declarationFragments":[{"kind":"identifier","spelling":"adaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"adaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCompactAdaptation(horizontal:vertical:)"],"names":{"title":"presentationCompactAdaptation(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies how to adapt a presentation to horizontally and vertically"},{"text":"compact size classes."},{"text":""},{"text":"Some presentations adapt their appearance depending on the context. For"},{"text":"example, a popover presentation over a horizontally-compact view uses a"},{"text":"sheet appearance by default. Use this modifier to indicate a custom"},{"text":"adaptation preference."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showInfo = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Info\") {"},{"text":" showInfo = true"},{"text":" }"},{"text":" .popover(isPresented: $showInfo) {"},{"text":" InfoView()"},{"text":" .presentationCompactAdaptation("},{"text":" horizontal: .popover,"},{"text":" vertical: .sheet)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you want to specify the same adaptation for both dimensions,"},{"text":"use the ``View/presentationCompactAdaptation(_:)`` method instead."},{"text":""},{"text":"- Parameters:"},{"text":" - horizontalAdaptation: The adaptation to use in a horizontally"},{"text":" compact size class."},{"text":" - verticalAdaptation: The adaptation to use in a vertically compact"},{"text":" size class. In a size class that is both horizontally and vertically"},{"text":" compact, SwiftUI uses the `verticalAdaptation` value."}]},"functionSignature":{"parameters":[{"name":"horizontal","internalName":"horizontalAdaptation","declarationFragments":[{"kind":"identifier","spelling":"horizontalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]},{"name":"vertical","internalName":"verticalAdaptation","declarationFragments":[{"kind":"identifier","spelling":"verticalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"horizontalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"verticalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCornerRadius(_:)"],"names":{"title":"presentationCornerRadius(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCornerRadius"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Requests that the presentation have a specific corner radius."},{"text":""},{"text":"Use this modifier to change the corner radius of a presentation."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationCornerRadius(21)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter cornerRadius: The corner radius, or `nil` to use the system"},{"text":" default."},{"text":""},{"text":"- Note: Configuring a corner radius is not supported on watchOS, tvOS,"},{"text":"or macOS."}]},"functionSignature":{"parameters":[{"name":"cornerRadius","declarationFragments":[{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCornerRadius"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"cornerRadius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationContentInteraction(_:)"],"names":{"title":"presentationContentInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationContentInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior of swipe gestures on a presentation."},{"text":""},{"text":"By default, when a person swipes up on a scroll view in a resizable"},{"text":"presentation, the presentation grows to the next detent. A scroll view"},{"text":"embedded in the presentation only scrolls after the presentation"},{"text":"reaches its largest size. Use this modifier to control which action"},{"text":"takes precedence."},{"text":""},{"text":"For example, you can request that swipe gestures scroll content first,"},{"text":"resizing the sheet only after hitting the end of the scroll view, by"},{"text":"passing the ``PresentationContentInteraction/scrolls`` value to this"},{"text":"modifier:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationContentInteraction(.scrolls)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"People can always resize your presentation using the drag indicator."},{"text":""},{"text":"- Parameter behavior: The requested behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationContentInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationPlacement(_:)"],"names":{"title":"presentationPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the placement of a presentation within the presenting view."},{"text":""},{"text":"By default, a presentation uses ``PresentationPlacement/automatic``"},{"text":"placement. Use this modifier to place it on the leading or trailing"},{"text":"edge. For example, to maximize the visibility of the primary content"},{"text":"behind a presented sheet:"},{"text":""},{"text":" Map()"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" PlaceDetailView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationPlacement(.leading)"},{"text":" }"},{"text":""},{"text":"Only sheet presentations respect this placement."},{"text":""},{"text":"- Parameter placement: The placement of the presentation within"},{"text":" the presenting view."}]},"functionSignature":{"parameters":[{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonRepeatBehavior(_:)"],"names":{"title":"buttonRepeatBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonRepeatBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether buttons in this view should repeatedly trigger their"},{"text":"actions on prolonged interactions."},{"text":""},{"text":"Apply this to buttons that increment or decrement a value or perform"},{"text":"some other inherently iterative operation. Interactions such as"},{"text":"pressing-and-holding on the button, holding the button's keyboard"},{"text":"shortcut, or holding down the space key while the button is focused will"},{"text":"trigger this repeat behavior."},{"text":""},{"text":" Button {"},{"text":" playbackSpeed.advance(by: 1)"},{"text":" } label: {"},{"text":" Label(\"Speed up\", systemImage: \"hare\")"},{"text":" }"},{"text":" .buttonRepeatBehavior(.enabled)"},{"text":""},{"text":"This affects all system button styles, as well as automatically"},{"text":"affects custom `ButtonStyle` conforming types. This does not"},{"text":"automatically apply to custom `PrimitiveButtonStyle` conforming types,"},{"text":"and the ``EnvironmentValues.buttonRepeatBehavior`` value should be used"},{"text":"to adjust their custom gestures as appropriate."},{"text":""},{"text":"- Parameter behavior: A value of `enabled` means that buttons should"},{"text":" enable repeating behavior and a value of `disabled` means that buttons"},{"text":" should disallow repeating behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonRepeatBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(forSelectionType:menu:primaryAction:)"],"names":{"title":"contextMenu(forSelectionType:menu:primaryAction:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"forSelectionType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"menu"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an item-based context menu to a view."},{"text":""},{"text":"You can add an item-based context menu to a container that supports"},{"text":"selection, like a ``List`` or a ``Table``. In the closure that you"},{"text":"use to define the menu, you receive a collection of items that"},{"text":"depends on the selection state of the container and the location where"},{"text":"the person clicks or taps to activate the menu. The collection contains:"},{"text":""},{"text":"* The selected item or items, when people initiate the context menu"},{"text":" from any selected item."},{"text":"* Nothing, if people tap or click to activate the context menu from"},{"text":" an empty part of the container. This is true even when one or more"},{"text":" items is currently selected."},{"text":""},{"text":"You can vary the menu contents according to the number of selected"},{"text":"items. For example, the following code has a list that defines an"},{"text":"empty area menu, a single item menu, and a multi-item menu:"},{"text":""},{"text":" struct ContextMenuItemExample: View {"},{"text":" var items: [Item]"},{"text":" @State private var selection = Set()"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(items) { item in"},{"text":" Text(item.name)"},{"text":" }"},{"text":" }"},{"text":" .contextMenu(forSelectionType: Item.ID.self) { items in"},{"text":" if items.isEmpty { // Empty area menu."},{"text":" Button(\"New Item\") { }"},{"text":""},{"text":" } else if items.count == 1 { // Single item menu."},{"text":" Button(\"Copy\") { }"},{"text":" Button(\"Delete\", role: .destructive) { }"},{"text":""},{"text":" } else { // Multi-item menu."},{"text":" Button(\"Copy\") { }"},{"text":" Button(\"New Folder With Selection\") { }"},{"text":" Button(\"Delete Selected\", role: .destructive) { }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The above example assumes that the `Item` type conforms to the"},{"text":""},{"text":"protocol, and relies on the associated `ID` type for both selection"},{"text":"and context menu presentation."},{"text":""},{"text":"If you add the modifier to a view hierarchy that doesn't have a"},{"text":"container that supports selection, the context menu never activates."},{"text":"To add a context menu that doesn't depend on selection behavior, use"},{"text":"``View/contextMenu(menuItems:)``. To add a context menu to a specific"},{"text":"row in a table, use ``TableRowContent/contextMenu(menuItems:)``."},{"text":""},{"text":"### Add a primary action"},{"text":""},{"text":"Optionally, you can add a custom primary action to the context menu. In"},{"text":"macOS, a single click on a row in a selectable container selects that"},{"text":"row, and a double click performs the primary action. In iOS and iPadOS,"},{"text":"tapping on the row activates the primary action. To select a row"},{"text":"without performing an action, either enter edit mode or hold"},{"text":"shift or command on a keyboard while tapping the row."},{"text":""},{"text":"For example, you can modify the context menu from the previous example"},{"text":"so that double clicking the row on macOS opens a new window for"},{"text":"selected items. Get the ``OpenWindowAction`` from the environment:"},{"text":""},{"text":" @Environment(\\.openWindow) private var openWindow"},{"text":""},{"text":"Then call ``EnvironmentValues/openWindow`` from inside the"},{"text":"`primaryAction` closure for each item:"},{"text":""},{"text":" .contextMenu(forSelectionType: Item.ID.self) { items in"},{"text":" // ..."},{"text":" } primaryAction: { items in"},{"text":" for item in items {"},{"text":" openWindow(value: item)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The open window action depends on the declaration of a ``WindowGroup``"},{"text":"scene in your ``App`` that responds to the `Item` type:"},{"text":""},{"text":" WindowGroup(\"Item Detail\", for: Item.self) { $item in"},{"text":" // ..."},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - itemType: The identifier type of the items. Ensure that this"},{"text":" matches the container's selection type."},{"text":" - menu: A closure that produces the menu. A single parameter to the"},{"text":" closure contains the set of items to act on. An empty set indicates"},{"text":" menu activation over the empty area of the selectable container,"},{"text":" while a non-empty set indicates menu activation over selected items."},{"text":" Use controls like ``Button``, ``Picker``, and ``Toggle`` to define"},{"text":" the menu items. You can also create submenus using ``Menu``, or"},{"text":" group items with ``Section``. You can deactivate the context menu"},{"text":" by returning nothing from the closure."},{"text":" - primaryAction: A closure that defines the action to perform in"},{"text":" response to the primary interaction. A single parameter to the"},{"text":" closure contains the set of items to act on."},{"text":""},{"text":"- Returns: A view that can display an item-based context menu."}]},"functionSignature":{"parameters":[{"name":"forSelectionType","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type"}]},{"name":"menu","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menu"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"}]},{"name":"primaryAction","declarationFragments":[{"kind":"identifier","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"I","index":0,"depth":1},{"name":"M","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"I","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"forSelectionType"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type = I.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menu"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:)"],"names":{"title":"gesture(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Attaches a ``UIGestureRecognizerRepresentable`` to the view."},{"text":""},{"text":"- Parameter representable: The ``UIGestureRecognizerRepresentable``"},{"text":" that creates and manages a gesture recognizer."},{"text":""},{"text":"- Returns: A view with a ``UIGestureRecognizerRepresentable`` attached."}]},"functionSignature":{"parameters":[{"name":"representable","declarationFragments":[{"kind":"identifier","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some UIGestureRecognizerRepresentable","rhs":"UIGestureRecognizerRepresentable","rhsPrecise":"s:7SwiftUI32UIGestureRecognizerRepresentableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:file:onCompletion:)"],"names":{"title":"fileMover(isPresented:file:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move an existing"},{"text":"file to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `file` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - file: The `URL` of the file to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" has succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:files:onCompletion:)"],"names":{"title":"fileMover(isPresented:files:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move a collection"},{"text":"of existing files to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `files` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - files: A collection of `URL`s for the files to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" has succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"files","declarationFragments":[{"kind":"identifier","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"sameType","lhs":"C.Element","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:file:onCompletion:onCancellation:)"],"names":{"title":"fileMover(isPresented:file:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move"},{"text":"an existing file to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to move a file might look like this:"},{"text":""},{"text":" struct MoveFileButton: View {"},{"text":" @State private var showFileMover = false"},{"text":" var file: URL"},{"text":" var onCompletion: (URL) -> Void"},{"text":" var onCancellation: (() -> Void)?"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileMover = true"},{"text":" } label: {"},{"text":" Label(\"Choose destination\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileMover(isPresented: $showFileMover, file: file) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" guard url.startAccessingSecurityScopedResource() else {"},{"text":" return"},{"text":" }"},{"text":" onCompletion(url)"},{"text":" url.stopAccessingSecurityScopedResource()"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" // handle error"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" onCancellation?()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - file: The URL of the file to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed. To access the received URLs, call"},{"text":" `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:files:onCompletion:onCancellation:)"],"names":{"title":"fileMover(isPresented:files:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move"},{"text":"a collection of existing files to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to move files might look like this:"},{"text":""},{"text":" struct MoveFilesButton: View {"},{"text":" @Binding var files: [URL]"},{"text":" @State private var showFileMover = false"},{"text":" var onCompletion: (URL) -> Void"},{"text":" var onCancellation: (() -> Void)?"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileMover = true"},{"text":" } label: {"},{"text":" Label(\"Choose destination\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileMover(isPresented: $showFileMover, files: files) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { url in"},{"text":" guard url.startAccessingSecurityScopedResource() else {"},{"text":" return"},{"text":" }"},{"text":" onCompletion(url)"},{"text":" url.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" // handle error"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" onCancellation?()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - files: A collection of URLs for the files to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"files","declarationFragments":[{"kind":"identifier","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"sameType","lhs":"C.Element","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewCustomization(_:)"],"names":{"title":"tabViewCustomization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewCustomization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the customizations to apply to the sidebar representation"},{"text":"of the tab view."},{"text":""},{"text":"Only the ``TabViewStyle/sidebarAdaptable`` style supports"},{"text":"supports customization. Specifying a non-nil ``TabViewCustomization``"},{"text":"object using this modifier enables customization."},{"text":""},{"text":"By default, if a person hasn't made customizations, tabs appear"},{"text":"according to the default builder visibilities and sections appear in"},{"text":"the order you declare in the tab view's tab builder."},{"text":""},{"text":"You can change the default visibility by using the"},{"text":"``TabContent/defaultVisibility(_:for:)`` with a"},{"text":"``AdaptableTabBarPlacement/sidebar`` placement."},{"text":""},{"text":"You can change the default section order by changing the order"},{"text":"in the builder. If there's an existing persisted customization,"},{"text":"reset the order by calling"},{"text":"``TabViewCustomization/SectionCustomization/resetTabOrder()``"},{"text":"when you change the order."},{"text":""},{"text":"All tabs and tab sections that support customization need to have"},{"text":"a customization ID. You can mark a tab as being non-customizable"},{"text":"by specifying a ``TabCustomizationBehavior/disabled`` behavior"},{"text":"in all adaptable tab bar placements"},{"text":"using ``TabContent/customizationBehavior(_:for:)-2u727``."},{"text":""},{"text":"On macOS, a default interaction is provided for reordering sections but"},{"text":"not for controlling the visibility of individual tabs. A custom"},{"text":"experience should be provided if desired by setting the visibility of"},{"text":"the tab on the customization."},{"text":""},{"text":"The following code example uses `@AppStorage` to automatically persist"},{"text":"any visibility or section order customizations a person makes."},{"text":""},{"text":" @AppStorage"},{"text":" private var customization: TabViewCustomization"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" MyHomeView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.home\")"},{"text":""},{"text":" Tab(\"Reports\", systemImage: \"chart.bar\") {"},{"text":" MyReportsView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.reports\")"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.climate\")"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.lights\")"},{"text":" }"},{"text":" .customizationID(\"com.myApp.browse\")"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewCustomization($customization)"},{"text":""},{"text":"- Parameters:"},{"text":" - customization: The customization object to store"},{"text":" user customization in."}]},"functionSignature":{"parameters":[{"name":"customization","declarationFragments":[{"kind":"identifier","spelling":"customization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewCustomization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"customization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a document that's stored in"},{"text":"a value type, like a structure, to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `document` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"For example, a button that exports a text document might look like this:"},{"text":""},{"text":" struct ExportButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var document: TextFile?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" document: document,"},{"text":" contentType: .utf8PlainText,"},{"text":" defaultFilename: \"Exported Document\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentType:onCompletion:)"],"names":{"title":"fileExporter(isPresented:documents:contentType:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a collection of value type"},{"text":"documents to files on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `documents` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"For example, a button that exports a collection of text documents might"},{"text":"look like this:"},{"text":""},{"text":" struct ExportAllButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var documents: [TextFile]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export All\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" documents: documents,"},{"text":" contentType: .utf8PlainText"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The collection of in-memory documents to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a document that's stored in"},{"text":"a reference type, like a class, to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `document` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentType:onCompletion:)"],"names":{"title":"fileExporter(isPresented:documents:contentType:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a collection of reference type"},{"text":"documents to files on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `documents` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"This overload works the same way as the batch ``FileDocument`` overload,"},{"text":"but accepts a collection of ``ReferenceFileDocument`` values instead."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The collection of in-memory documents to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog allowing the user to export"},{"text":"a `Transferable` item to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be set to `true`."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a photo might look like this:"},{"text":""},{"text":" struct ExportPhotoButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var photo: Photo"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export Photo\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" item: photo,"},{"text":" defaultFilename: \"exported photo\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Photo: Transferable { ... }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - item: The item to be saved on disk."},{"text":" - contentTypes: The optional content types to use for the exported"},{"text":" file. If empty, SwiftUI uses the content types from the"},{"text":" `transferRepresentation` property provided for `Transferable`"},{"text":" conformance."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog allowing the user to export"},{"text":"a collection of `Transferable` items to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be set to `true`."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a collection of photos might look"},{"text":"like this:"},{"text":""},{"text":" struct ExportPhotosButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var photos: [Photo]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export Photos\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" items: photos"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Photo: Transferable { ... }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - items: Collection of values to be saved on disk."},{"text":" - contentTypes: The content types to use for the exported files."},{"text":" If empty, SwiftUI uses the content types from the"},{"text":" `transferRepresentation` property provided for `Transferable`"},{"text":" conformance."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"items","declarationFragments":[{"kind":"identifier","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"T","rhs":"C.Element"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`FileDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a document and handles cancellation"},{"text":"might look like this:"},{"text":""},{"text":" struct ExportButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var document: TextFile?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" document: document,"},{"text":" contentTypes: [.utf8PlainText],"},{"text":" defaultFilename: \"Exported Document\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `FileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`ReferenceFileDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `ReferenceFileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which will the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of documents that conform to `FileDocument`"},{"text":"to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"For example, a button that exports a collection of documents and handles"},{"text":"cancellation might look like this:"},{"text":""},{"text":" struct ExportAllButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var documents: [TextFile]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export All\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" documents: documents,"},{"text":" contentTypes: [.utf8PlainText]"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `FileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of documents that conform to `ReferenceFileDocument`"},{"text":"to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `ReferenceFileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`WritableDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `document` must be non-nil. When"},{"text":"the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"Below is an example of a simple implementation of `WritableDocument`."},{"text":"Instead of `String`, you can use `Data` or any other type as the"},{"text":"snapshot."},{"text":""},{"text":" @MainActor"},{"text":" final class TextDocument: WritableDocument {"},{"text":" static let writableContentTypes: [UTType] = [.utf8PlainText]"},{"text":""},{"text":" var text: String = \"\""},{"text":""},{"text":" nonisolated func writer("},{"text":" configuration: sending WriteConfiguration"},{"text":" ) -> sending FileWrapperDocumentWriter {"},{"text":" FileWrapperDocumentWriter(configuration) { snapshot, _ in"},{"text":" FileWrapper(regularFileWithContents: Data(snapshot.utf8))"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func snapshot(contentType: UTType) async throws -> String {"},{"text":" text"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ExportView: View {"},{"text":" @State private var document = TextDocument()"},{"text":" @State private var isExporting = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export…\") { isExporting = true }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporting,"},{"text":" document: document,"},{"text":" defaultFilename: \"Untitled\""},{"text":" ) { _ in }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to export to. If not provided,"},{"text":" `WritableDocument.writableContentTypes` are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"?"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"WritableDocument","rhsPrecise":"s:7SwiftUI16WritableDocumentP"},{"kind":"sameType","lhs":"D.Writer.Destination","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"WritableDocument","preciseIdentifier":"s:7SwiftUI16WritableDocumentP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Writer","preciseIdentifier":"s:7SwiftUI16WritableDocumentP6WriterQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Destination","preciseIdentifier":"s:7SwiftUI14DocumentWriterP11DestinationQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of objects conforming to `WritableDocument` to files"},{"text":"on disk."},{"text":""},{"text":"In order for the dialog to appear, `documents` must be non-empty."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":" @MainActor"},{"text":" final class TextDocument: WritableDocument {"},{"text":" static let writableContentTypes: [UTType] = [.utf8PlainText]"},{"text":""},{"text":" var text: String = \"\""},{"text":""},{"text":" nonisolated func writer("},{"text":" configuration: sending WriteConfiguration"},{"text":" ) -> sending FileWrapperDocumentWriter {"},{"text":" FileWrapperDocumentWriter(configuration) { snapshot, _ in"},{"text":" FileWrapper(regularFileWithContents: Data(snapshot.utf8))"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func snapshot(contentType: UTType) async throws -> String {"},{"text":" text"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ExportView: View {"},{"text":" @Binding var documents: [TextDocument]"},{"text":" @State private var isExporting = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export…\") { isExporting = true }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporting,"},{"text":" documents: documents"},{"text":" ) { _ in }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The content types to export to. If not provided,"},{"text":" `WritableDocument.writableContentTypes` are used."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"WritableDocument","rhsPrecise":"s:7SwiftUI16WritableDocumentP"},{"kind":"sameType","lhs":"C.Element.Writer.Destination","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"WritableDocument","preciseIdentifier":"s:7SwiftUI16WritableDocumentP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Writer","preciseIdentifier":"s:7SwiftUI16WritableDocumentP6WriterQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Destination","preciseIdentifier":"s:7SwiftUI14DocumentWriterP11DestinationQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAddTraits(_:)"],"names":{"title":"accessibilityAddTraits(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAddTraits"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the given traits to the view."}]},"functionSignature":{"parameters":[{"name":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAddTraits"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRemoveTraits(_:)"],"names":{"title":"accessibilityRemoveTraits(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRemoveTraits"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Removes the given traits from this view."}]},"functionSignature":{"parameters":[{"name":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRemoveTraits"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","interactiveDismissDisabled(_:)"],"names":{"title":"interactiveDismissDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactiveDismissDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Conditionally prevents interactive dismissal of presentations like"},{"text":"popovers, sheets, and inspectors."},{"text":""},{"text":"Users can dismiss certain kinds of presentations using built-in"},{"text":"gestures. In particular, a user can dismiss a sheet by dragging it down,"},{"text":"or a popover by clicking or tapping outside of the presented view. Use"},{"text":"the `interactiveDismissDisabled(_:)` modifier to conditionally prevent"},{"text":"this kind of dismissal. You typically do this to prevent the user from"},{"text":"dismissing a presentation before providing needed data or completing"},{"text":"a required action."},{"text":""},{"text":"For instance, suppose you have a view that displays a licensing"},{"text":"agreement that the user must acknowledge before continuing:"},{"text":""},{"text":" struct TermsOfService: View {"},{"text":" @Binding var areTermsAccepted: Bool"},{"text":" @Environment(\\.dismiss) private var dismiss"},{"text":""},{"text":" var body: some View {"},{"text":" Form {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" Text(\"Terms and conditions go here.\")"},{"text":" Button(\"Accept\") {"},{"text":" areTermsAccepted = true"},{"text":" dismiss()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you present this view in a sheet, the user can dismiss it by either"},{"text":"tapping the button --- which calls ``EnvironmentValues/dismiss``"},{"text":"from its `action` closure --- or by dragging the sheet down. To"},{"text":"ensure that the user accepts the terms by tapping the button,"},{"text":"disable interactive dismissal, conditioned on the `areTermsAccepted`"},{"text":"property:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var isSheetPresented = false"},{"text":" @State private var areTermsAccepted = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Use Service\") {"},{"text":" isSheetPresented = true"},{"text":" }"},{"text":" .sheet(isPresented: $isSheetPresented) {"},{"text":" TermsOfService(areTermsAccepted: $areTermsAccepted)"},{"text":" .interactiveDismissDisabled(!areTermsAccepted)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can apply the modifier to any view in the sheet's view hierarchy,"},{"text":"including to the sheet's top level view, as the example demonstrates,"},{"text":"or to any child view, like the ``Form`` or the Accept ``Button``."},{"text":""},{"text":"The modifier has no effect on programmatic dismissal, which you can"},{"text":"invoke by updating the ``Binding`` that controls the presentation, or"},{"text":"by calling the environment's ``EnvironmentValues/dismiss`` action."},{"text":"On macOS, disabling interactive dismissal in a popover makes the popover"},{"text":"nontransient."},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether to"},{"text":" prevent nonprogrammatic dismissal of the containing view hierarchy"},{"text":" when presented in a sheet or popover."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactiveDismissDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityElement(children:)"],"names":{"title":"accessibilityElement(children:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityElement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new accessibility element, or modifies the"},{"text":"``AccessibilityChildBehavior`` of the existing accessibility element."},{"text":""},{"text":"See also:"},{"text":"- ``AccessibilityChildBehavior/ignore``"},{"text":"- ``AccessibilityChildBehavior/combine``"},{"text":"- ``AccessibilityChildBehavior/contain``"},{"text":""},{"text":"- Parameters:"},{"text":" - children: The behavior to use when creating or"},{"text":" transforming an accessibility element."},{"text":" The default is ``AccessibilityChildBehavior/ignore``"}]},"functionSignature":{"parameters":[{"name":"children","declarationFragments":[{"kind":"identifier","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityElement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"},{"kind":"text","spelling":" = .ignore) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labeledContentStyle(_:)"],"names":{"title":"labeledContentStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labeledContentStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a style for labeled content."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"LabeledContentStyle","rhsPrecise":"s:7SwiftUI19LabeledContentStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labeledContentStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LabeledContentStyle","preciseIdentifier":"s:7SwiftUI19LabeledContentStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:inputKinds:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:inputKinds:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the"},{"text":" action closure provided in `action`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values."},{"text":" - inputKinds: A set of input kinds that this gesture recognizes."},{"text":" If not specified, the gesture will recognize all applicable input"},{"text":" kinds that a person can use to perform it."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"inputKinds","declarationFragments":[{"kind":"identifier","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackground(_:)"],"names":{"title":"presentationBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the presentation background of the enclosing sheet using a shape"},{"text":"style."},{"text":""},{"text":"The following example uses the ``Material/thick`` material as the sheet"},{"text":"background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationBackground(.thickMaterial)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `presentationBackground(_:)` modifier differs from the"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` modifier in several key"},{"text":"ways. A presentation background:"},{"text":""},{"text":"* Automatically fills the entire presentation."},{"text":"* Allows views behind the presentation to show through translucent"},{"text":" styles on supported platforms."},{"text":""},{"text":"- Parameter style: The shape style to use as the presentation"},{"text":" background."},{"text":""},{"text":"- Note: Sheet presentations on macOS do not support translucency"},{"text":"or transparency — the background is always opaque."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackground(alignment:content:)"],"names":{"title":"presentationBackground(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the presentation background of the enclosing sheet to a custom"},{"text":"view."},{"text":""},{"text":"The following example uses a yellow view as the sheet background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationBackground {"},{"text":" Color.yellow"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `presentationBackground(alignment:content:)` modifier differs from"},{"text":"the ``View/background(alignment:content:)`` modifier in several key"},{"text":"ways. A presentation background:"},{"text":""},{"text":"* Automatically fills the entire presentation."},{"text":"* Allows views behind the presentation to show through translucent"},{"text":" areas of the `content` on supported platforms."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default is"},{"text":" ``Alignment/center``."},{"text":" - content: The view to use as the background of the presentation."},{"text":""},{"text":"- Note: Sheet presentations on macOS do not support translucency"},{"text":"or transparency — the background is always opaque."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelReservedIconWidth(_:)"],"names":{"title":"labelReservedIconWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelReservedIconWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the width reserved for icons in labels."},{"text":""},{"text":"Use this modifier to set the value that should be used for the reserved"},{"text":"icon width in labels. This applies to label styles and in contexts where"},{"text":"the label displays its icon and title stacked horizontally."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelReservedIconWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelIconToTitleSpacing(_:)"],"names":{"title":"labelIconToTitleSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelIconToTitleSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the spacing between the icon and title in labels."},{"text":""},{"text":"Use this modifier to set the value that should be used for the"},{"text":"icon-to-title spacing in labels. This applies to label styles and in"},{"text":"contexts where the label displays its icon and title stacked"},{"text":"horizontally."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelIconToTitleSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badgeProminence(_:)"],"names":{"title":"badgeProminence(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badgeProminence"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the prominence of badges created by this view."},{"text":""},{"text":"Badges can be used for different kinds of information, from the"},{"text":"passive number of items in a container to the number of required"},{"text":"actions. The prominence of badges in Lists can be adjusted to reflect"},{"text":"this and be made to draw more or less attention to themselves."},{"text":""},{"text":"Badges will default to `standard` prominence unless specified."},{"text":""},{"text":"The following example shows a ``List`` displaying a list of folders"},{"text":"with an informational badge with lower prominence, showing the number"},{"text":"of items in the folder."},{"text":""},{"text":" List(folders) { folder in"},{"text":" Text(folder.name)"},{"text":" .badge(folder.numberOfItems)"},{"text":" }"},{"text":" .badgeProminence(.decreased)"},{"text":""},{"text":"- Parameter prominence: The prominence to apply to badges."}]},"functionSignature":{"parameters":[{"name":"prominence","declarationFragments":[{"kind":"identifier","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badgeProminence"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityZoomAction(_:)"],"names":{"title":"accessibilityZoomAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityZoomAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility zoom action to the view. Actions allow"},{"text":"assistive technologies, such as VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how a zoom action is used to transform the scale"},{"text":"of a shape which has a `MagnificationGesture`."},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .scaleEffect(magnifyBy)"},{"text":" .gesture(magnification)"},{"text":" .accessibilityLabel(\"Circle Magnifier\")"},{"text":" .accessibilityZoomAction { action in"},{"text":" switch action.direction {"},{"text":" case .zoomIn:"},{"text":" magnifyBy += 0.5"},{"text":" case .zoomOut:"},{"text":" magnifyBy -= 0.5"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityZoomAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:isEnabled:)"],"names":{"title":"accessibilityActivationPoint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derived from one of the accessibility elements"},{"text":"decedents or from the center of the accessibility frame."},{"text":""},{"text":"- Parameters:"},{"text":" - activationPoint: The accessibility activation point to apply."},{"text":" - isEnabled: If true the accessibility activation point is applied;"},{"text":" otherwise the accessibility activation point is unchanged."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:isEnabled:)"],"names":{"title":"accessibilityActivationPoint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derived from one of the accessibility elements"},{"text":"decedents or from the center of the accessibility frame."},{"text":""},{"text":"- Parameters:"},{"text":" - activationPoint: The accessibility activation point to apply."},{"text":" - isEnabled: If true the accessibility activation point is applied;"},{"text":" otherwise the accessibility activation point is unchanged."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:)"],"names":{"title":"accessibilityActivationPoint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derrived from one of the accessibility elements"},{"text":"decendents or from the center of the accessibility frame."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:)"],"names":{"title":"accessibilityActivationPoint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derrived from one of the accessibility elements"},{"text":"decendents or from the center of the accessibility frame."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction,"},{"text":"each drag or drop should have a description to disambiguate it and give"},{"text":"a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultAdaptableTabBarPlacement(_:)"],"names":{"title":"defaultAdaptableTabBarPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAdaptableTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the default placement for the tabs in a tab view using the"},{"text":"adaptable sidebar style."},{"text":""},{"text":"This modifier is only effective on iPadOS in the"},{"text":"``TabViewStyle/sidebarAdaptable`` style. In any other configuration,"},{"text":"the system ignores it."},{"text":""},{"text":"The following example shows a ``TabView`` with three tabs, where"},{"text":"the tab view displays the sidebar representation when the app"},{"text":"initially launches."},{"text":""},{"text":" TabView(selection: $selection) {"},{"text":" Tab(\"Home\", systemImage: \"house\", value: MyTab.home) {"},{"text":" MyHomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Downloads\", systemImage: \"square.and.arrow.down.fill\","},{"text":" value: MyTab.downloads"},{"text":" ) {"},{"text":" MyDownloadsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\", value: MyTab.browse) {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .defaultAdaptableTabBarPlacement(.sidebar)"},{"text":""},{"text":"- Parameters:"},{"text":" - defaultPlacement: The default arrangement for the tab view."}]},"functionSignature":{"parameters":[{"name":"defaultPlacement","declarationFragments":[{"kind":"identifier","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAdaptableTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultTabBarPlacement(_:)"],"names":{"title":"defaultTabBarPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred placement for the tabs of a ``TabView``"},{"text":"in the ``TabViewStyle/sidebarAdaptable`` style on platforms where"},{"text":"the tab bar cannot adapt between different representations, and"},{"text":"only one representation can be shown."},{"text":""},{"text":"On platforms that support adapting between a sidebar and tab bar"},{"text":"(currently iPadOS), use"},{"text":"``View/defaultAdaptableTabBarPlacement(_:)`` to configure the"},{"text":"adaptable tab bar."},{"text":""},{"text":"This modifier is effective on platforms where the"},{"text":"``TabViewStyle/sidebarAdaptable`` style statically resolves to"},{"text":"either a sidebar or tab bar, such as iPhone, macOS, tvOS, and"},{"text":"visionOS. On iPadOS (where the bar is adaptable), this modifier"},{"text":"has no effect."},{"text":""},{"text":"The following example shows a `TabView` that prefers to display"},{"text":"a sidebar on platforms where the bar cannot morph:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Favorites\", systemImage: \"star\") {"},{"text":" FavoritesView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .defaultTabBarPlacement(.sidebar)"},{"text":""},{"text":"- Parameter placement: The preferred placement for the tab bar."},{"text":" The default is ``AdaptableTabBarPlacement/automatic``, which"},{"text":" resolves to ``AdaptableTabBarPlacement/tabBar``."}]},"functionSignature":{"parameters":[{"name":"defaultPlacement","declarationFragments":[{"kind":"identifier","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedObject(_:)"],"names":{"title":"focusedObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneObject(_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated data,"},{"text":"and you need an app- or scene-scoped element like a command or toolbar"},{"text":"item that operates on the data associated with whichever view currently"},{"text":"has focus. Each focusable view can supply its own object:"},{"text":""},{"text":" struct MessageView: View {"},{"text":" @StateObject private var message = Message(...)"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(...)"},{"text":" .focusedObject(message)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the focused view's object. In this example, an app"},{"text":"command updates the focused view's data, and is automatically disabled"},{"text":"when focus is in an unrelated part of the scene:"},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var message: Message?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .pasteboard) {"},{"text":" Button(\"Add Duck to Message\") {"},{"text":" message?.text.append(\" 🦆\")"},{"text":" }"},{"text":" .keyboardShortcut(\"d\")"},{"text":" .disabled(message == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with focus."},{"text":"- Returns: A view that supplies an observable object when in focus."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedObject(_:)"],"names":{"title":"focusedObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneObject(_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated data,"},{"text":"and you need an app- or scene-scoped element like a command or toolbar"},{"text":"item that operates on the data associated with whichever view currently"},{"text":"has focus. Each focusable view can supply its own object:"},{"text":""},{"text":" struct MessageView: View {"},{"text":" @StateObject private var message = Message(...)"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(...)"},{"text":" .focusedObject(message)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the focused view's object. In this example, an app"},{"text":"command updates the focused view's data, and is automatically disabled"},{"text":"when focus is in an unrelated part of the scene:"},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var message: Message?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .pasteboard) {"},{"text":" Button(\"Add Duck to Message\") {"},{"text":" message?.text.append(\" 🦆\")"},{"text":" }"},{"text":" .keyboardShortcut(\"d\")"},{"text":" .disabled(message == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with focus, or `nil` if"},{"text":" no object is currently available."},{"text":"- Returns: A view that supplies an observable object when in focus."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneObject(_:)"],"names":{"title":"focusedSceneObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedObject(_:)`` for observable"},{"text":"objects that must be visible regardless of where focus is located in the"},{"text":"active scene. This is sometimes needed for things like main menu and"},{"text":"discoverability HUD commands that observe and update data from the"},{"text":"active scene but aren't concerned with what the user is actually focused"},{"text":"on. The scene's root view can supply the scene's state object:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @StateObject private var sceneData = SceneData()"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" ..."},{"text":" }"},{"text":" .focusedSceneObject(sceneData)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the active scene's state object. In this example, an"},{"text":"app command updates the active scene's data, and is enabled as long as"},{"text":"any scene is active."},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var sceneData: SceneData?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .newItem) {"},{"text":" Button(\"New Message\") {"},{"text":" sceneData?.addMessage()"},{"text":" }"},{"text":" .keyboardShortcut(\"n\", modifiers: [.option, .command])"},{"text":" .disabled(sceneData == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with the scene."},{"text":"- Returns: A view that supplies an observable object while the scene"},{"text":" is active."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneObject(_:)"],"names":{"title":"focusedSceneObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedObject(_:)`` for observable"},{"text":"objects that must be visible regardless of where focus is located in the"},{"text":"active scene. This is sometimes needed for things like main menu and"},{"text":"discoverability HUD commands that observe and update data from the"},{"text":"active scene but aren't concerned with what the user is actually focused"},{"text":"on. The scene's root view can supply the scene's state object:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @StateObject private var sceneData = SceneData()"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" ..."},{"text":" }"},{"text":" .focusedSceneObject(sceneData)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the active scene's state object. In this example, an"},{"text":"app command updates the active scene's data, and is enabled as long as"},{"text":"any scene is active."},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var sceneData: SceneData?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .newItem) {"},{"text":" Button(\"New Message\") {"},{"text":" sceneData?.addMessage()"},{"text":" }"},{"text":" .keyboardShortcut(\"n\", modifiers: [.option, .command])"},{"text":" .disabled(sceneData == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with the scene, or `nil`"},{"text":" if no object is currently available."},{"text":"- Returns: A view that supplies an observable object while the scene"},{"text":" is active."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(_:_:)"],"names":{"title":"accessibilityAction(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a `.default` action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"actionKind","declarationFragments":[{"kind":"identifier","spelling":"actionKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"actionKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: Text(\"New Message\")) {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(action:label:)"],"names":{"title":"accessibilityAction(action:label:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Label"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction {"},{"text":" // Handle action"},{"text":" } label: {"},{"text":" Label(\"New Message\", systemImage: \"plus\")"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"label","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Label","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Label"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActions(_:)"],"names":{"title":"accessibilityActions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds multiple accessibility actions to the view."},{"text":""},{"text":"Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":"For example, this is how a dynamic number of custom action could"},{"text":"be added to a view."},{"text":""},{"text":" var isDraft: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityActions {"},{"text":" ForEach(actions) { action in"},{"text":" Button {"},{"text":" action()"},{"text":" } label: {"},{"text":" Text(action.title)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" if isDraft {"},{"text":" Button {"},{"text":" // Handle Delete"},{"text":" } label: {"},{"text":" Text(\"Delete\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"nameKey","declarationFragments":[{"kind":"identifier","spelling":"nameKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nameKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive"},{"text":"technologies, such as the VoiceOver, to interact with the view by"},{"text":"invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"nameResource","declarationFragments":[{"kind":"identifier","spelling":"nameResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nameResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a localized string that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Button(action: composeMessage) {"},{"text":" Image(systemName: \"square.and.pencil\")"},{"text":" }"},{"text":" .help(\"Compose a new message\")"},{"text":""},{"text":"- Parameter textKey: The key for the localized text to use as help."}]},"functionSignature":{"parameters":[{"name":"textKey","declarationFragments":[{"kind":"identifier","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a localized string resource that you"},{"text":"provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Button(action: composeMessage) {"},{"text":" Image(systemName: \"square.and.pencil\")"},{"text":" }"},{"text":" .help(\"Compose a new message\")"},{"text":""},{"text":"- Parameter textKey: Text resource for the localized text to use as help."}]},"functionSignature":{"parameters":[{"name":"textKey","declarationFragments":[{"kind":"identifier","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a text view that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Slider(\"Opacity\", value: $selectedShape.opacity)"},{"text":" .help(Text(\"Adjust the opacity of the selected \\(selectedShape.name)\"))"},{"text":""},{"text":"- Parameter text: The ``Text`` view to use as help."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a string that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Image(systemName: \"pin.circle\")"},{"text":" .foregroundColor(pointOfInterest.tintColor)"},{"text":" .help(pointOfInterest.name)"},{"text":""},{"text":"- Parameter text: The text to use as help."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowBackground(_:)"],"names":{"title":"listRowBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a custom background view behind a list row item."},{"text":""},{"text":"Use `listRowBackground(_:)` to place a custom background view behind a"},{"text":"list row item."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowBackground(_:)` modifier then places the view you supply behind"},{"text":"each of the list row items:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowBackground(Ellipse()"},{"text":" .background(Color.clear)"},{"text":" .foregroundColor(.purple)"},{"text":" .opacity(0.3)"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the placement of an image as the background to"},{"text":" each row in a list.](SwiftUI-View-listRowBackground.png)"},{"text":""},{"text":"- Parameter view: The ``View`` to use as the background behind the list"},{"text":" row view."},{"text":""},{"text":"- Returns: A list row view with `view` as its background view."}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelStyle(_:)"],"names":{"title":"labelStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for labels within this view."},{"text":""},{"text":"Use this modifier to set a specific style for all labels within a view:"},{"text":""},{"text":" VStack {"},{"text":" Label(\"Fire\", systemImage: \"flame.fill\")"},{"text":" Label(\"Lightning\", systemImage: \"bolt.fill\")"},{"text":" }"},{"text":" .labelStyle(MyCustomLabelStyle())"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"LabelStyle","rhsPrecise":"s:7SwiftUI10LabelStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LabelStyle","preciseIdentifier":"s:7SwiftUI10LabelStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrag(_:)"],"names":{"title":"onDrag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `onDrag(_:)` modifier adds the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"If you want to show a different preview, you can use"},{"text":"``View/onDrag(_:preview:)``."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including multi-item drag via"},{"text":"``View/dragContainer(for:in:_:)`` — use ``View/draggable(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter data: A closure that returns a single"},{"text":" that"},{"text":"represents the draggable data from this view."},{"text":""},{"text":"- Important: Don't dispatch work to the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. If you register"},{"text":" data representations on the item provider yourself, make sure"},{"text":" their completion handlers don't dispatch to the main thread."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrag(_:preview:)"],"names":{"title":"onDrag(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `onDrag(_:preview:)` modifier adds the appropriate gestures"},{"text":"for drag and drop to this view. When a drag operation begins,"},{"text":"a rendering of `preview` is generated and used as the preview image."},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/dragPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including multi-item drag via"},{"text":"``View/dragContainer(for:in:_:)`` — use ``View/draggable(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter data: A closure that returns a single"},{"text":""},{"text":"that represents the draggable data from this view."},{"text":"- Parameter preview: A ``View`` to use as the source for the dragging"},{"text":" preview, once the drag operation has begun. The preview is centered over"},{"text":" the source view."},{"text":""},{"text":"- Important: Don't dispatch work to the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. If you register"},{"text":" data representations on the item provider yourself, make sure"},{"text":" their completion handlers don't dispatch to the main thread."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag-and-"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(containerItemID:containerNamespace:)"],"names":{"title":"draggable(containerItemID:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Inside a drag container, activates this view as the source"},{"text":"of a drag and drop operation. Supports lazy drag containers."},{"text":""},{"text":"This modifier marks the view as a draggable element"},{"text":"of an enclosing `dragContainer(_:containerNamespace:_:)`. Since this modifier does not"},{"text":"require to provide the payload, only its identifier, it works lazily (the framework"},{"text":"asks to provide the actual dragged items only when drag starts;"},{"text":"also, the framework doesn't have to render a view in order to access its"},{"text":"payload)."},{"text":""},{"text":"Applying the `draggable(containerItemID:containerNamespace:)` modifier"},{"text":"to a view inside a drag container adds the appropriate gestures"},{"text":"for drag and drop to this view. SwiftUI generates a default"},{"text":"drag preview for drag."},{"text":""},{"text":"Below, each `FruitView` is assigned an identifier: a code of a fruit"},{"text":"it represents. When dragging begins, the `dragContainer` closure"},{"text":"is called with the codes of the selected fruit, or, if a user drags"},{"text":"a view that is not selected, the closure receives"},{"text":"the identifier of that view as a parameter."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruitCodes: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.code)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { codes in"},{"text":" fruits(with: codes)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruitCodes)"},{"text":" }"},{"text":""},{"text":" func fruits(with codes: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var code: UUID"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"- Parameter containerItemID: An identifier of the associated drag payload."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"containerItemID","declarationFragments":[{"kind":"identifier","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:item:containerNamespace:)"],"names":{"title":"draggable(_:item:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation, allowing"},{"text":"to provide optional identifiable payload and specify the namespace"},{"text":"of the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:_:containerNamespace:)` modifier adds"},{"text":"the appropriate gestures for drag and drop to this view."},{"text":"When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"If the view is enclosed in a `dragContainer(for:in:_)`, the"},{"text":"view becomes its draggable element, and the item's identifier"},{"text":"is used as drag payload identifier."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func fruits(with: [Fruit.ID]) -> [Fruit] { ... }"},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:containerNamespace:_:)"],"names":{"title":"draggable(_:containerNamespace:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation,"},{"text":"allowing to provide optional identifiable"},{"text":"payload and specify the namespace of the drag container this view"},{"text":"belongs to."},{"text":""},{"text":"Applying the `draggable(_:containerNamespace_:)` modifier adds the"},{"text":"appropriate gestures for drag and drop to this view."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":""},{"text":"If the draggable view is enclosed in a container, it participates"},{"text":"in container drag-and-drop sessions:"},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruits)"},{"text":" }"},{"text":""},{"text":" func fruits(with: [Fruit.ID]) -> [Fruit] { ... }"},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":"When a drag operation begins, a rendering of this view is"},{"text":"generated and used as the preview image."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainerSelection(_:containerNamespace:)"],"names":{"title":"dragContainerSelection(_:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainerSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Provides multiple item selection support for drag containers."},{"text":""},{"text":"A drag container finds the nearest enclosing `dragContainerSelection(_:containerNamespace:)`"},{"text":"with the same item identifier type and same namespace, if specified."},{"text":"Drag container uses the provided selected item identifiers to determine what"},{"text":"the drag payload should be."},{"text":""},{"text":"If the dragged view is associated with a selected identifier, the payload should contain"},{"text":"all the selected items. If the dragged view is not selected, the payload should"},{"text":"not contain the whole selection, just the dragged item."},{"text":"With `dragContainerSelection(_:containerNamespace:)`, you get fine-grained control"},{"text":"over what items are included in the drag payload."},{"text":""},{"text":" struct FruitContainer: View {"},{"text":" @State private var fruits: [Fruit]"},{"text":" @State private var selection: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.id)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" .dragContainerSelection(selection)"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [Fruit.ID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable, Identifiable {"},{"text":" let id: String"},{"text":" ..."},{"text":" }"},{"text":""},{"text":" struct FruitView: View {"},{"text":" init(_ fruit: Fruit) { ... }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - selection: A closure that provides identifiers of selected items."},{"text":" - containerNamespace: An optional namespace of the drag container."}]},"functionSignature":{"parameters":[{"name":"selection","declarationFragments":[{"kind":"identifier","spelling":"selection"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainerSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:id:item:containerNamespace:)"],"names":{"title":"draggable(_:id:item:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation,"},{"text":"allowing to provide optional payload and specify the namespace of"},{"text":"the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:containerNamespace_:)` modifier adds"},{"text":"the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter id: An identifier of an item."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to"},{"text":" "},{"text":"that represents the draggable data from this view."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:id:containerNamespace:_:)"],"names":{"title":"draggable(_:id:containerNamespace:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation, allowing"},{"text":"to provide optional payload and specify the namespace"},{"text":"of the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:id:containerNamespace:_:)` modifier adds"},{"text":"the appropriate gestures for drag and drop to this view."},{"text":"When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(Fruit.self, id: \\.dragID) {"},{"text":" fruit.supportsDrag ? fruit : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var supportsDrag: Bool"},{"text":" var dragID: UUID"},{"text":" }"},{"text":""},{"text":"If the draggable view is enclosed in a container, it participates"},{"text":"in container drag-and-drop sessions:"},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(Fruit.self, id: \\.dragID) {"},{"text":" fruit.supportsDrag ? fruit : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruits)"},{"text":" }"},{"text":""},{"text":" func fruits(with: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter id: An key path of the identifier of an item."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Parameter payload: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:itemID:in:_:)"],"names":{"title":"dragContainer(for:itemID:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views. The drag payload is based on"},{"text":"the current selection."},{"text":""},{"text":"Below is an example of a container view with three sections."},{"text":"Each section is draggable. Also, each section is selectable, and each"},{"text":"view in a section is selectable as well."},{"text":"When a section drag starts, the app wants to use its custom logic to decide"},{"text":"what the payload should be."},{"text":"If an unselected section is dragged, it should be the only one on the drag payload."},{"text":"If a selected section is dragged, the payload should contain other"},{"text":"selected sections, and also the sections that have at least one fruit selected."},{"text":""},{"text":" var berries: [Fruit]"},{"text":" var citruses: [Fruit]"},{"text":" var tropical: [Fruit]"},{"text":""},{"text":" @State private var selectedSections: [UUID]"},{"text":" @State private var selectedFruits: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" BerriesSectionView(FruitSection(berries))"},{"text":" .draggable(containerItemID: FruitSection.berries)"},{"text":" CitrusSectionView(FruitSection(citruses))"},{"text":" .draggable(containerItemID: FruitSection.citruses)"},{"text":" TropicalSectionView(FruitSection(tropical))"},{"text":" .draggable(containerItemID: FruitSection.tropical)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { draggedSectionID in"},{"text":" let identifiers = sectionIDsToDrag(for: draggedSectionID)"},{"text":" return sections(identifiers: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func sectionIDsToDrag(for draggedID: UUID) -> [UUID] {"},{"text":" // an unselected section is dragged"},{"text":" if !selectedSections.contains(draggedID) { return [draggedID] }"},{"text":""},{"text":" // a selected section is dragged"},{"text":" let payloadIDs = selectedSections + sectionIdentifiersOfSelectedFruits()"},{"text":" return uniqueSections(from: payloadIDs)"},{"text":" }"},{"text":""},{"text":" func sections(identifiers: [UUID]) -> [FruitSection] { ... }"},{"text":" func uniqueSections(from: [UUID]) -> [UUID] { ... }"},{"text":" func sectionIdentifiersOfSelectedFruits() -> [UUID] { ... }"},{"text":""},{"text":" struct Fruit {"},{"text":" let id: UUID"},{"text":" }"},{"text":""},{"text":" struct FruitSection: Transferable {"},{"text":" static let berries: UUID"},{"text":" static let citruses: UUID"},{"text":" static let tropical: UUID"},{"text":""},{"text":" let id: UUID"},{"text":" var fruits: [Fruit]"},{"text":" }"},{"text":""},{"text":" struct BerriesSectionView: View {"},{"text":" var section: FruitSection"},{"text":""},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(section.fruit) { berry in"},{"text":" BerryView(berry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter itemID: A closure that provides the item's identifier."},{"text":"- Parameter namespace: An optional namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives the identifier"},{"text":"of the dragged view under the finger or cursor. Using"},{"text":"the passed identifier, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1},{"name":"Item","index":1,"depth":1},{"name":"Data","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:in:_:)"],"names":{"title":"dragContainer(for:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views where the drag payload is based"},{"text":"on multiple identifiers of dragged items."},{"text":""},{"text":"Provide the selected identifiers list to SwiftUI using"},{"text":"`dragContainerSelection(_:containerNamespace)` modifier."},{"text":"In a case when there's no selection information available,"},{"text":"SwiftUI passes the dragged item identifier to the `payload` closure."},{"text":""},{"text":"In an example below, an app presents a view with `Fruit` values."},{"text":"When a user starts drag, SwiftUI uses the selection to put together"},{"text":"the list of item identifiers to drag."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" @State private var selection: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.id)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" .dragContainerSelection(selection)"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable, Identifiable { ... }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives either the identifiers"},{"text":"of all the selected items, if the dragged item is a part of selection"},{"text":"or only the identifier of the dragged item, if it is"},{"text":"not part of the selection. With the passed identifiers, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":""},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Data","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:in:_:)"],"names":{"title":"dragContainer(for:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views. The drag payload is identifiable."},{"text":"To form the payload, use the identifier of the dragged view"},{"text":"inside the container."},{"text":""},{"text":"Below is an example of a container view with three sections."},{"text":"Each section is draggable. Also, each section is selectable, and each"},{"text":"view in a section is selectable as well."},{"text":"When a section drag starts, the app wants to use its custom logic to"},{"text":"decide what the payload should be."},{"text":""},{"text":"If an unselected section is dragged, it should be the only one on"},{"text":"the drag payload. If a selected section is dragged, the payload should"},{"text":"contain other selected sections, and also the sections that have"},{"text":"at least one fruit selected."},{"text":""},{"text":" var berries: [Fruit]"},{"text":" var citruses: [Fruit]"},{"text":" var tropical: [Fruit]"},{"text":""},{"text":" @State private var selectedSections: [FruitSection.ID]"},{"text":" @State private var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" BerriesSectionView(FruitSection(berries))"},{"text":" .draggable(containerItemID: FruitSection.berries)"},{"text":" CitrusSectionView(FruitSection(citruses))"},{"text":" .draggable(containerItemID: FruitSection.citruses)"},{"text":" TropicalSectionView(FruitSection(tropical))"},{"text":" .draggable(containerItemID: FruitSection.tropical)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { (draggedSectionID: FruitSection.ID) in"},{"text":" let identifiers = sectionIDsToDrag(for: draggedSectionID)"},{"text":" return sections(identifiers: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func sectionIDsToDrag(for draggedID: FruitSection.ID) -> [FruitSection.ID] {"},{"text":" // an unselected section is dragged"},{"text":" if !selectedSections.contains(draggedID) { return [draggedID] }"},{"text":""},{"text":" // a selected section is dragged"},{"text":" let payloadIDs = selectedSections + sectionIdentifiersOfSelectedFruits()"},{"text":" return uniqueSections(from: payloadIDs)"},{"text":" }"},{"text":""},{"text":" func sections(identifiers: [FruitSection.ID]) -> [FruitSection] { ... }"},{"text":" func sectionIdentifiersOfSelectedFruits() -> [FruitSection.ID] { ... }"},{"text":" func uniqueSections(from: [FruitSection.ID]) -> [FruitSection.ID] { ... }"},{"text":""},{"text":" struct Fruit: Identifiable { ... }"},{"text":""},{"text":" struct FruitSection: Transferable, Identifiable {"},{"text":" static let berries: UUID"},{"text":" static let citruses: UUID"},{"text":" static let tropical: UUID"},{"text":""},{"text":" let id: UUID"},{"text":" var fruits: [Fruit]"},{"text":" }"},{"text":""},{"text":" struct BerriesSectionView: View {"},{"text":" var section: FruitSection"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(section.fruit) { berry in"},{"text":" BerryView(berry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives the identifier"},{"text":"of the dragged view under the finger or cursor. Using"},{"text":"the passed identifier, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Data","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:itemID:in:_:)"],"names":{"title":"dragContainer(for:itemID:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views."},{"text":""},{"text":"In an example below, an app presents a view with `Fruit` values."},{"text":"`Fruit` does not conform to `Identifiable` but uses its name"},{"text":"as its identifier."},{"text":""},{"text":" @State private var fruits: [Fruit]"},{"text":" @State private var selection: [String]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.name)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(itemID: \\Fruit.name) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [String]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var name: String"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter itemID: A closure that provides an item's identifier."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives either the identifiers"},{"text":"of all the selected items, if the dragged item is a part of selection"},{"text":"or only the identifier of the dragged item, if it is"},{"text":"not part of the selection. Using the passed identifiers, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":""},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1},{"name":"Item","index":1,"depth":1},{"name":"Data","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:)"],"names":{"title":"draggable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `draggable(_:)` modifier adds the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter payload: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":""},{"text":"- Important: Don't perform work on the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. Make sure"},{"text":" `T`'s exporting closure doesn't dispatch to the main actor."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:preview:)"],"names":{"title":"draggable(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `draggable(_:preview:)` modifier adds the appropriate gestures"},{"text":"for drag and drop to this view. When a drag operation begins,"},{"text":"a rendering of `preview` is generated and used as the preview image."},{"text":""},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .draggable(title) {"},{"text":" Text(\"Drop me\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/dragPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter payload: A closure that returns a single"},{"text":"class instance or a value conforming to `Transferable` that"},{"text":"represents the draggable data from this view."},{"text":"- Parameter preview: A ``View`` to use as the source for the dragging"},{"text":"preview, once the drag operation has begun. The preview is centered over"},{"text":"the source view."},{"text":""},{"text":"- Important: Don't perform work on the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. Make sure"},{"text":" `T`'s exporting closure doesn't dispatch to the main actor."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVerticalBehavior(_:)"],"names":{"title":"toolbarVerticalBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the behavior for the vertical bar."},{"text":""},{"text":"By default, the system determines whether a vertical bar is rendered"},{"text":"based on the device and application state. Use"},{"text":"``ToolbarVerticalBehavior/disabled`` to opt out of the vertical bar,"},{"text":"causing bar content to fall back to the standard horizontal top and"},{"text":"bottom toolbars."},{"text":""},{"text":"Disable the vertical bar only for UIs that are better served by"},{"text":"horizontal bars — such as a fullscreen video player with toolbar"},{"text":"controls, or a non-scrolling layout like a calculator where horizontal"},{"text":"space is at a premium. Treat it as a stable choice: avoid changing it"},{"text":"frequently as the user navigates, and don't toggle it for a single view"},{"text":"as a function of that view's state. To hide the bars on a given screen"},{"text":"rather than change the layout, use ``View/toolbarVisibility(_:for:)``"},{"text":"instead."},{"text":""},{"text":"The behavior is resolved by the window or presentation if placed within"},{"text":"a sheet or form. Different containers resolve their overall preferred"},{"text":"behavior in different ways:"},{"text":" - A ``NavigationStack`` uses the top most view of its stack of views."},{"text":" - A ``TabView`` uses the selected view."},{"text":" - A ``NavigationSplitView`` uses the view in the trailing-most column."},{"text":""},{"text":"When the value changes, the system animates the transition: content reflows"},{"text":"to or from the horizontal bars while the status bar changes axis and"},{"text":"the leading or trailing safe area inset for the vertical bar is added"},{"text":"or removed."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":" }"},{"text":" .toolbarVerticalBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: The desired behavior for the vertical bar."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","datePickerStyle(_:)"],"names":{"title":"datePickerStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"datePickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for date pickers within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"DatePickerStyle","rhsPrecise":"s:7SwiftUI15DatePickerStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"datePickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DatePickerStyle","preciseIdentifier":"s:7SwiftUI15DatePickerStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5titleSSvp","interfaceLanguage":"swift"},"pathComponents":["Badge","title"],"names":{"title":"title","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":5,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5countSivp","interfaceLanguage":"swift"},"pathComponents":["Badge","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":6,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc","interfaceLanguage":"swift"},"pathComponents":["Badge","init(title:count:)"],"names":{"title":"init(title:count:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":8,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV4bodyQrvp","interfaceLanguage":"swift"},"pathComponents":["Badge","body"],"names":{"title":"body","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":13,"character":15}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo7GreeterP","interfaceLanguage":"swift"},"pathComponents":["Greeter"],"names":{"title":"Greeter","navigator":[{"kind":"identifier","spelling":"Greeter"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeter"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeter"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":0,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Greeter","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":1,"character":9}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo0B0C","interfaceLanguage":"swift"},"pathComponents":["Demo"],"names":{"title":"Demo","navigator":[{"kind":"identifier","spelling":"Demo"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Demo"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Demo"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":4,"character":13}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo0B0CACycfc","interfaceLanguage":"swift"},"pathComponents":["Demo","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":5,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo0B0C5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Demo","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":6,"character":16}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo5PointV","interfaceLanguage":"swift"},"pathComponents":["Point"],"names":{"title":"Point","navigator":[{"kind":"identifier","spelling":"Point"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Point"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Point"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":9,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV1xSdvp","interfaceLanguage":"swift"},"pathComponents":["Point","x"],"names":{"title":"x","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":10,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV1ySdvp","interfaceLanguage":"swift"},"pathComponents":["Point","y"],"names":{"title":"y","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":11,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5PointV1x1yACSd_Sdtcfc","interfaceLanguage":"swift"},"pathComponents":["Point","init(x:y:)"],"names":{"title":"init(x:y:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":12,"character":11}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor"],"names":{"title":"Flavor","navigator":[{"kind":"identifier","spelling":"Flavor"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Flavor"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Flavor"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo6FlavorO7vanillayA2CmF","interfaceLanguage":"swift"},"pathComponents":["Flavor","vanilla"],"names":{"title":"Flavor.vanilla","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vanilla"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vanilla"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":31}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo6FlavorO9chocolateyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Flavor","chocolate"],"names":{"title":"Flavor.chocolate","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"chocolate"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"chocolate"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":44}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Flavor","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo0B0C5greet4name5timesS2S_SitF","interfaceLanguage":"swift"},"pathComponents":["Demo","greet(name:times:)"],"names":{"title":"greet(name:times:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"times","declarationFragments":[{"kind":"identifier","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":1,"character":16}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo0B0C7versionSSvpZ","interfaceLanguage":"swift"},"pathComponents":["Demo","version"],"names":{"title":"version","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"version"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"version"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":5,"character":22}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["Point","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.struct"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":9,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV6lengthSdvp","interfaceLanguage":"swift"},"pathComponents":["Point","length"],"names":{"title":"length","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.struct"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":10,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6FlavorO11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["Flavor","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.enum"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":14,"character":15}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style"],"names":{"title":"Polygon.Style","navigator":[{"kind":"identifier","spelling":"Style"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Style"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Style"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO5solidyA2EmF","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","solid"],"names":{"title":"Polygon.Style.solid","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"solid"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"solid"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":37}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO6dashedyA2EmF","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","dashed"],"names":{"title":"Polygon.Style.dashed","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dashed"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dashed"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":44}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics"],"names":{"title":"Polygon.Metrics","navigator":[{"kind":"identifier","spelling":"Metrics"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Metrics"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Metrics"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":33,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics","perimeter"],"names":{"title":"perimeter","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":34,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics","init(perimeter:)"],"names":{"title":"init(perimeter:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"perimeter","declarationFragments":[{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":35,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5styleAC5StyleOvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","style"],"names":{"title":"style","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Style","preciseIdentifier":"s:9SwiftDemo7PolygonC5StyleO"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Style","preciseIdentifier":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":38,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","metrics(side:)"],"names":{"title":"metrics(side:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"metrics"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"metrics"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":39,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC","interfaceLanguage":"swift"},"pathComponents":["Thermostat"],"names":{"title":"Thermostat","navigator":[{"kind":"identifier","spelling":"Thermostat"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermostat"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermostat"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":6,"character":31}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC7celsiusSdvp","interfaceLanguage":"swift"},"pathComponents":["Thermostat","celsius"],"names":{"title":"celsius","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"celsius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"celsius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":7,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC5labelSSvp","interfaceLanguage":"swift"},"pathComponents":["Thermostat","label"],"names":{"title":"label","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":8,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo10ThermostatCACycfc","interfaceLanguage":"swift"},"pathComponents":["Thermostat","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":10,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC4warm2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Thermostat","warm(by:)"],"names":{"title":"warm(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warm"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warm"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":12,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC9warmLater2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Thermostat","warmLater(by:)"],"names":{"title":"warmLater(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warmLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warmLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":14,"character":16}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo8GreetingP","interfaceLanguage":"swift"},"pathComponents":["Greeting"],"names":{"title":"Greeting","navigator":[{"kind":"identifier","spelling":"Greeting"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeting"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeting"},{"kind":"text","spelling":" : AnyObject"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":2,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8GreetingP4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["Greeting","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":3,"character":8}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8GreetingP11punctuationSSvp","interfaceLanguage":"swift"},"pathComponents":["Greeting","punctuation"],"names":{"title":"punctuation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":4,"character":8}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingP5greetyS2SF","interfaceLanguage":"swift"},"pathComponents":["Greeting","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":5,"character":9}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingP5resetyyF","interfaceLanguage":"swift"},"pathComponents":["Greeting","reset()"],"names":{"title":"reset()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":6,"character":9}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo6ScorerP","interfaceLanguage":"swift"},"pathComponents":["Scorer"],"names":{"title":"Scorer","navigator":[{"kind":"identifier","spelling":"Scorer"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Scorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Scorer"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":9,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6ScorerP5scoreyS2iKF","interfaceLanguage":"swift"},"pathComponents":["Scorer","score(_:)"],"names":{"title":"score(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":10,"character":9}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo12RankedScorerP","interfaceLanguage":"swift"},"pathComponents":["RankedScorer"],"names":{"title":"RankedScorer","navigator":[{"kind":"identifier","spelling":"RankedScorer"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"RankedScorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"RankedScorer"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":14,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12RankedScorerP4rankSiSgvp","interfaceLanguage":"swift"},"pathComponents":["RankedScorer","rank"],"names":{"title":"rank","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rank"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rank"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"? { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":15,"character":8}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","interfaceLanguage":"swift"},"pathComponents":["Greeting","shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":19,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting"],"names":{"title":"FormalGreeting","navigator":[{"kind":"identifier","spelling":"FormalGreeting"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"FormalGreeting"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"FormalGreeting"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":22,"character":19}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":19,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":23,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC11punctuationSSvp","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","punctuation"],"names":{"title":"punctuation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":24,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","init(name:)"],"names":{"title":"init(name:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":25,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC5greetyS2SF","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":26,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC5resetyyF","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","reset()"],"names":{"title":"reset()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":27,"character":16}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerV","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer"],"names":{"title":"DoublingScorer","navigator":[{"kind":"identifier","spelling":"DoublingScorer"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"DoublingScorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"DoublingScorer"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":30,"character":14}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerVACycfc","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":31,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerV5scoreyS2iF","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer","score(_:)"],"names":{"title":"score(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":32,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9introduce_2toSSAA8Greeting_p_SStF","interfaceLanguage":"swift"},"pathComponents":["introduce(_:to:)"],"names":{"title":"introduce(_:to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"introduce"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},{"name":"to","internalName":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"introduce"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12makeGreetingyAA0D0_pSSF","interfaceLanguage":"swift"},"pathComponents":["makeGreeting(_:)"],"names":{"title":"makeGreeting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeGreeting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeGreeting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":39,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4sameyAA8Greeting_pAaC_pF","interfaceLanguage":"swift"},"pathComponents":["same(_:)"],"names":{"title":"same(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":40,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6exciteyyAA8Greeting_pF","interfaceLanguage":"swift"},"pathComponents":["excite(_:)"],"names":{"title":"excite(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"excite"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"excite"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":41,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8scoreAllySaySiGAA6Scorer_p_ACtKF","interfaceLanguage":"swift"},"pathComponents":["scoreAll(_:_:)"],"names":{"title":"scoreAll(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scoreAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"},{"kind":"text","spelling":", ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"scorer","declarationFragments":[{"kind":"identifier","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scoreAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":42,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10makeScorerAA0D0_pyF","interfaceLanguage":"swift"},"pathComponents":["makeScorer()"],"names":{"title":"makeScorer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScorer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScorer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":45,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7topRankySSAA12RankedScorer_pKF","interfaceLanguage":"swift"},"pathComponents":["topRank(_:)"],"names":{"title":"topRank(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"topRank"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"scorer","declarationFragments":[{"kind":"identifier","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"topRank"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":46,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo17greetInBackgroundySSAA8Greeting_pYaF","interfaceLanguage":"swift"},"pathComponents":["greetInBackground(_:)"],"names":{"title":"greetInBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetInBackground"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetInBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":55,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder"],"names":{"title":"GreetingHolder","navigator":[{"kind":"identifier","spelling":"GreetingHolder"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingHolder"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingHolder"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":60,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","greeting"],"names":{"title":"greeting","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":61,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderCACycfc","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":62,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC5greetySSSgSSF","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":63,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13starterWallet3for0aB3Kit0D0CSS_tF","interfaceLanguage":"swift"},"pathComponents":["starterWallet(for:)"],"names":{"title":"starterWallet(for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"starterWallet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"owner","declarationFragments":[{"kind":"identifier","spelling":"owner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"starterWallet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"owner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":4,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo3sum2of0aB3Kit5MoneyVSayAFG_tF","interfaceLanguage":"swift"},"pathComponents":["sum(of:)"],"names":{"title":"sum(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"amounts","declarationFragments":[{"kind":"identifier","spelling":"amounts"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amounts"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":10,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4flipy0aB3Kit4CoinOAEF","interfaceLanguage":"swift"},"pathComponents":["flip(_:)"],"names":{"title":"flip(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flip"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]},"functionSignature":{"parameters":[{"name":"coin","declarationFragments":[{"kind":"identifier","spelling":"coin"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flip"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"coin"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":14,"character":12}}},{"kind":{"identifier":"swift.typealias","displayName":"Type Alias"},"identifier":{"precise":"s:9SwiftDemo5Scorea","interfaceLanguage":"swift"},"pathComponents":["Score"],"names":{"title":"Score","navigator":[{"kind":"identifier","spelling":"Score"}],"subHeading":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Score"}]},"declarationFragments":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Score"},{"kind":"text","spelling":" = "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":25,"character":17}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9makeScorey0aB3Kit4PairVySSSiGSS_SitF","interfaceLanguage":"swift"},"pathComponents":["makeScore(_:_:)"],"names":{"title":"makeScore(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScore"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"points","declarationFragments":[{"kind":"identifier","spelling":"points"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScore"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"points"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":27,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8describeySS0aB3Kit4PairVySiSSGF","interfaceLanguage":"swift"},"pathComponents":["describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":28,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF","interfaceLanguage":"swift"},"pathComponents":["boxed(_:)"],"names":{"title":"boxed(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"boxed"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"money","declarationFragments":[{"kind":"identifier","spelling":"money"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"boxed"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"money"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":29,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8countBoxy0aB3Kit0D0CySiGSiF","interfaceLanguage":"swift"},"pathComponents":["countBox(_:)"],"names":{"title":"countBox(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countBox"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countBox"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":30,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6settley0aB3Kit7OutcomeOySiGSiF","interfaceLanguage":"swift"},"pathComponents":["settle(_:)"],"names":{"title":"settle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"settle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"settle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":31,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF","interfaceLanguage":"swift"},"pathComponents":["unbox(_:)"],"names":{"title":"unbox(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unbox"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"}]},"functionSignature":{"parameters":[{"name":"box","declarationFragments":[{"kind":"identifier","spelling":"box"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unbox"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"box"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF","interfaceLanguage":"swift"},"pathComponents":["firstOf(_:)"],"names":{"title":"firstOf(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstOf"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"A"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":0},{"name":"B","index":1,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstOf"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":36,"character":12}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo5ShapeP","interfaceLanguage":"swift"},"pathComponents":["Shape"],"names":{"title":"Shape","navigator":[{"kind":"identifier","spelling":"Shape"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shape"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shape"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Greeter","preciseIdentifier":"s:9SwiftDemo7GreeterP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":2,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5ShapeP4areaSdvp","interfaceLanguage":"swift"},"pathComponents":["Shape","area"],"names":{"title":"area","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":3,"character":8}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo5ShapeP5sidesSivpZ","interfaceLanguage":"swift"},"pathComponents":["Shape","sides"],"names":{"title":"sides","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":4,"character":15}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7PolygonC","interfaceLanguage":"swift"},"pathComponents":["Polygon"],"names":{"title":"Polygon","navigator":[{"kind":"identifier","spelling":"Polygon"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Polygon"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Polygon"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":7,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":8,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC11vertexCountSivp","interfaceLanguage":"swift"},"pathComponents":["Polygon","vertexCount"],"names":{"title":"vertexCount","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":9,"character":28}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC6sharedACvpZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","shared"],"names":{"title":"shared","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shared"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shared"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":10,"character":22}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","init(name:vertexCount:)"],"names":{"title":"init(name:vertexCount:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"vertexCount","declarationFragments":[{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":12,"character":11}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4nameACSgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","init(name:)"],"names":{"title":"init(name:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"convenience"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":17,"character":23}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":22,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale2byySi_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":23,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(x:y:)"],"names":{"title":"scale(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":24,"character":16}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4makeACyFZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","make()"],"names":{"title":"make()","subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"make"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"make"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":26,"character":22}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC8describeySSACSgFZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"polygon","declarationFragments":[{"kind":"identifier","spelling":"polygon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"polygon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":27,"character":23}}},{"kind":{"identifier":"swift.subscript","displayName":"Instance Subscript"},"identifier":{"precise":"s:9SwiftDemo7PolygonCyAA5PointVSicip","interfaceLanguage":"swift"},"pathComponents":["Polygon","subscript(_:)"],"names":{"title":"subscript(_:)","subHeading":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"parameters":[{"name":"index","declarationFragments":[{"kind":"identifier","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":29,"character":11}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6SquareC","interfaceLanguage":"swift"},"pathComponents":["Square"],"names":{"title":"Square","navigator":[{"kind":"identifier","spelling":"Square"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Square"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Square"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":34,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC4sideSdvp","interfaceLanguage":"swift"},"pathComponents":["Square","side"],"names":{"title":"side","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":35,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6SquareC4sideACSd_tcfc","interfaceLanguage":"swift"},"pathComponents":["Square","init(side:)"],"names":{"title":"init(side:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":37,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC4areaSdvp","interfaceLanguage":"swift"},"pathComponents":["Square","area"],"names":{"title":"area","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":42,"character":15}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC5sidesSivpZ","interfaceLanguage":"swift"},"pathComponents":["Square","sides"],"names":{"title":"sides","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":43,"character":22}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6SquareC5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Square","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":44,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6SquareC5scale2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Square","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"override"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":46,"character":25}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation"],"names":{"title":"Precipitation","navigator":[{"kind":"identifier","spelling":"Precipitation"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Precipitation"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Precipitation"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":50,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4rainyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","rain"],"names":{"title":"Precipitation.rain","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rain"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rain"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4snowyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","snow"],"names":{"title":"Precipitation.snow","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"snow"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"snow"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":15}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4noneyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","none"],"names":{"title":"Precipitation.none","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":21}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Precipitation","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO","interfaceLanguage":"swift"},"pathComponents":["ShapeError"],"names":{"title":"ShapeError","navigator":[{"kind":"identifier","spelling":"ShapeError"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ShapeError"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ShapeError"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO","interfaceLanguage":"swift"},"pathComponents":["ShapeError","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO11invalidSideyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","invalidSide(_:)"],"names":{"title":"ShapeError.invalidSide(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":55,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO12tooManySidesyACSi_SitcACmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","tooManySides(count:limit:)"],"names":{"title":"ShapeError.tooManySides(count:limit:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tooManySides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tooManySides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":56,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO7unknownyA2CmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","unknown"],"names":{"title":"ShapeError.unknown","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unknown"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unknown"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":57,"character":9}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO","interfaceLanguage":"swift"},"pathComponents":["Measurement"],"names":{"title":"Measurement","navigator":[{"kind":"identifier","spelling":"Measurement"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Measurement"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Measurement"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":60,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO6lengthyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","length(_:)"],"names":{"title":"Measurement.length(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":61,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4areayACSd_SdtcACmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","area(width:height:)"],"names":{"title":"Measurement.area(width:height:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":62,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4noneyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","none"],"names":{"title":"Measurement.none","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":63,"character":9}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit"],"names":{"title":"Measurement.Unit","navigator":[{"kind":"identifier","spelling":"Unit"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Unit"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Unit"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":65,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit","symbol"],"names":{"title":"symbol","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":66,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit","init(symbol:)"],"names":{"title":"init(symbol:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"symbol","declarationFragments":[{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":67,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO6isNoneSbvp","interfaceLanguage":"swift"},"pathComponents":["Measurement","isNone"],"names":{"title":"isNone","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"isNone"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"isNone"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":70,"character":15}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo4RingV","interfaceLanguage":"swift"},"pathComponents":["Ring"],"names":{"title":"Ring","navigator":[{"kind":"identifier","spelling":"Ring"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ring"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ring"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":76,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4RingV5innerAA5PointVvp","interfaceLanguage":"swift"},"pathComponents":["Ring","inner"],"names":{"title":"inner","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":77,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4RingV5outerAA5PointVvp","interfaceLanguage":"swift"},"pathComponents":["Ring","outer"],"names":{"title":"outer","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":78,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc","interfaceLanguage":"swift"},"pathComponents":["Ring","init(inner:outer:)"],"names":{"title":"init(inner:outer:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"inner","declarationFragments":[{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},{"name":"outer","declarationFragments":[{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":80,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4RingV6expand2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Ring","expand(by:)"],"names":{"title":"expand(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"expand"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"expand"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":85,"character":25}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo4RingV1poiyA2C_ACtFZ","interfaceLanguage":"swift"},"pathComponents":["Ring","+(_:_:)"],"names":{"title":"+(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":90,"character":23}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter"],"names":{"title":"Counter","navigator":[{"kind":"identifier","spelling":"Counter"}],"subHeading":[{"kind":"keyword","spelling":"actor"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Counter"}]},"declarationFragments":[{"kind":"keyword","spelling":"actor"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Counter"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":95,"character":13}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","withSerialExecutor(_:)"],"names":{"title":"withSerialExecutor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">((any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Perform an operation with the actor's ``SerialExecutor``."},{"text":""},{"text":"This converts the actor's ``Actor/unownedExecutor`` to a ``SerialExecutor`` while"},{"text":"retaining the actor for the duration of the operation. This is to ensure the lifetime"},{"text":"of the executor while performing the operation."}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"E","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : ~Copyable"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","withSerialExecutor(_:)"],"names":{"title":"withSerialExecutor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"nonisolated(nonsending)"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Perform an operation with the actor's ``SerialExecutor``."},{"text":""},{"text":"This converts the actor's ``Actor/unownedExecutor`` to a ``SerialExecutor`` while"},{"text":"retaining the actor for the duration of the operation. This is to ensure the lifetime"},{"text":"of the executor while performing the operation."}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"E","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"nonisolated(nonsending)"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : ~Copyable"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","preconditionIsolated(_:file:line:)"],"names":{"title":"preconditionIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preconditionIsolated"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":")"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Stops program execution if the current task is not executing on this"},{"text":"actor's serial executor."},{"text":""},{"text":"This function's effect varies depending on the build flag used:"},{"text":""},{"text":"* In playgrounds and `-Onone` builds (the default for Xcode's Debug"},{"text":" configuration), stops program execution in a debuggable state after"},{"text":" printing `message`."},{"text":""},{"text":"* In `-O` builds (the default for Xcode's Release configuration), stops"},{"text":" program execution."},{"text":""},{"text":"- Note: Because this check is performed against the actor's serial executor,"},{"text":" if another actor uses the same serial executor--by using"},{"text":" that actor's serial executor as its own ``Actor/unownedExecutor``--this"},{"text":" check will succeed. From a concurrency safety perspective, the"},{"text":" serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - message: The message to print if the assertion fails."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"text","spelling":"@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)\n"},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preconditionIsolated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = String(), "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","assertIsolated(_:file:line:)"],"names":{"title":"assertIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assertIsolated"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":")"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Stops program execution if the current task is not executing on this"},{"text":"actor's serial executor."},{"text":""},{"text":"This function's effect varies depending on the build flag used:"},{"text":""},{"text":"* In playgrounds and `-Onone` builds (the default for Xcode's Debug"},{"text":" configuration), stops program execution in a debuggable state after"},{"text":" printing `message`."},{"text":""},{"text":"* In `-O` builds (the default for Xcode's Release configuration),"},{"text":" the isolation check is not performed and there are no effects."},{"text":""},{"text":"- Note: This check is performed against the actor's serial executor,"},{"text":" meaning that / if another actor uses the same serial executor--by using"},{"text":" that actor's serial executor as its own ``Actor/unownedExecutor``--this"},{"text":" check will succeed , as from a concurrency safety perspective, the"},{"text":" serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - message: The message to print if the assertion fails."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"text","spelling":"@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)\n"},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assertIsolated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = String(), "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","assumeIsolated(_:file:line:)"],"names":{"title":"assumeIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assumeIsolated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">(("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Assume that the current task is executing on this actor's serial executor,"},{"text":"or stop program execution otherwise."},{"text":""},{"text":"You call this method to *assume and verify* that the currently"},{"text":"executing synchronous function is actually executing on the serial"},{"text":"executor of this actor."},{"text":""},{"text":"If that is the case, the operation is invoked with an `isolated` version"},{"text":"of the actor, allowing synchronous access to actor local state without"},{"text":"hopping through asynchronous boundaries."},{"text":""},{"text":"If the current context is not running on the actor's serial executor, or"},{"text":"if the actor is a reference to a remote actor, this method will crash"},{"text":"with a fatal error (similar to ``preconditionIsolated(_:file:line:)``)."},{"text":""},{"text":"Note that this check is performed against the passed in actor's serial"},{"text":"executor, meaning that if another actor uses the same serial executor--by"},{"text":"using that actor's ``Actor/unownedExecutor`` as its own"},{"text":"``Actor/unownedExecutor``--this check will succeed, as from a concurrency"},{"text":"safety perspective, the serial executor guarantees mutual exclusion of"},{"text":"those two actors."},{"text":""},{"text":"This method can only be used from synchronous functions, as asynchronous"},{"text":"functions should instead perform a normal method call to the actor, which"},{"text":"will hop task execution to the target actor if necessary."},{"text":""},{"text":"- Note: This check is performed against the actor's serial executor,"},{"text":" meaning that / if another actor uses the same serial executor--by using"},{"text":" another actor's executor as its own ``Actor/unownedExecutor``"},{"text":" --this check will succeed , as from a concurrency safety perspective,"},{"text":" the serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - operation: the operation that will be executed if the current context"},{"text":" is executing on the actors serial executor."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."},{"text":"- Returns: the return value of the `operation`"},{"text":"- Throws: rethrows the `Error` thrown by the operation if it threw"}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assumeIsolated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7CounterC5valueSivp","interfaceLanguage":"swift"},"pathComponents":["Counter","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":96,"character":28}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7CounterC4stepSivp","interfaceLanguage":"swift"},"pathComponents":["Counter","step"],"names":{"title":"step","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":97,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7CounterCACycfc","interfaceLanguage":"swift"},"pathComponents":["Counter","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":98,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7CounterC9incrementSiyF","interfaceLanguage":"swift"},"pathComponents":["Counter","increment()"],"names":{"title":"increment()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"increment"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"increment"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":99,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7CounterC5labelSSyF","interfaceLanguage":"swift"},"pathComponents":["Counter","label()"],"names":{"title":"label()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":103,"character":28}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6CanvasC","interfaceLanguage":"swift"},"pathComponents":["Canvas"],"names":{"title":"Canvas","navigator":[{"kind":"identifier","spelling":"Canvas"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Canvas"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Canvas"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":107,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6CanvasCACycfc","interfaceLanguage":"swift"},"pathComponents":["Canvas","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":108,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6CanvasC4drawyyAA5Shape_pF","interfaceLanguage":"swift"},"pathComponents":["Canvas","draw(_:)"],"names":{"title":"draw(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draw"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draw"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":109,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6LoaderC","interfaceLanguage":"swift"},"pathComponents":["Loader"],"names":{"title":"Loader","navigator":[{"kind":"identifier","spelling":"Loader"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Loader"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Loader"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":112,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6LoaderCACycfc","interfaceLanguage":"swift"},"pathComponents":["Loader","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":113,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF","interfaceLanguage":"swift"},"pathComponents":["Loader","load(path:)"],"names":{"title":"load(path:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"load"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"load"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":115,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF","interfaceLanguage":"swift"},"pathComponents":["Loader","fetch(url:)"],"names":{"title":"fetch(url:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":116,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF","interfaceLanguage":"swift"},"pathComponents":["Loader","wait(seconds:)"],"names":{"title":"wait(seconds:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wait"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"}]},"functionSignature":{"parameters":[{"name":"seconds","declarationFragments":[{"kind":"identifier","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wait"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":117,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF","interfaceLanguage":"swift"},"pathComponents":["Loader","transform(_:)"],"names":{"title":"transform(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:9SwiftDemo5ShapeP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":119,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF","interfaceLanguage":"swift"},"pathComponents":["Loader","first(of:)"],"names":{"title":"first(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Element"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"items","declarationFragments":[{"kind":"identifier","spelling":"items"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Element"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"Element","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Element"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"items"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":120,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF","interfaceLanguage":"swift"},"pathComponents":["Loader","withCompletion(_:)"],"names":{"title":"withCompletion(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withCompletion"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withCompletion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":122,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4eachyyySiXEF","interfaceLanguage":"swift"},"pathComponents":["Loader","each(_:)"],"names":{"title":"each(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"each"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"each"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":123,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF","interfaceLanguage":"swift"},"pathComponents":["Loader","lookup(table:key:)"],"names":{"title":"lookup(table:key:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"table","declarationFragments":[{"kind":"identifier","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":125,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC6updateyyAA5PointVzF","interfaceLanguage":"swift"},"pathComponents":["Loader","update(_:)"],"names":{"title":"update(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":127,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC10modernOnlyyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","modernOnly()"],"names":{"title":"modernOnly()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modernOnly"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modernOnly"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":130,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC11legacyFetchyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","legacyFetch()"],"names":{"title":"legacyFetch()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"legacyFetch"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"legacyFetch"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"*","message":"Use fetch(url:) instead","isUnconditionallyDeprecated":true}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":133,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC8oldFetchyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","oldFetch()"],"names":{"title":"oldFetch()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"oldFetch"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"oldFetch"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":17,"minor":0},"renamed":"fetch(url:)"}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":136,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo16makeDefaultPointAA0E0VyF","interfaceLanguage":"swift"},"pathComponents":["makeDefaultPoint()"],"names":{"title":"makeDefaultPoint()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeDefaultPoint"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeDefaultPoint"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":139,"character":12}}},{"kind":{"identifier":"swift.var","displayName":"Global Variable"},"identifier":{"precise":"s:9SwiftDemo13defaultFlavorAA0D0Ovp","interfaceLanguage":"swift"},"pathComponents":["defaultFlavor"],"names":{"title":"defaultFlavor","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFlavor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFlavor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":140,"character":11}}},{"kind":{"identifier":"swift.var","displayName":"Global Variable"},"identifier":{"precise":"s:9SwiftDemo13globalCounterSivp","interfaceLanguage":"swift"},"pathComponents":["globalCounter"],"names":{"title":"globalCounter","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"globalCounter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"globalCounter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":141,"character":11}}},{"kind":{"identifier":"swift.typealias","displayName":"Type Alias"},"identifier":{"precise":"s:9SwiftDemo11Coordinatesa","interfaceLanguage":"swift"},"pathComponents":["Coordinates"],"names":{"title":"Coordinates","navigator":[{"kind":"identifier","spelling":"Coordinates"}],"subHeading":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Coordinates"}]},"declarationFragments":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Coordinates"},{"kind":"text","spelling":" = (latitude"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", longitude"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":142,"character":17}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7countUp2toScSySiGSi_tF","interfaceLanguage":"swift"},"pathComponents":["countUp(to:)"],"names":{"title":"countUp(to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"to","internalName":"limit","declarationFragments":[{"kind":"identifier","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":4,"character":12}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo14CountdownErrorV","interfaceLanguage":"swift"},"pathComponents":["CountdownError"],"names":{"title":"CountdownError","navigator":[{"kind":"identifier","spelling":"CountdownError"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CountdownError"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CountdownError"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":13,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV","interfaceLanguage":"swift"},"pathComponents":["CountdownError","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF","interfaceLanguage":"swift"},"pathComponents":["countDown(from:failingAt:)"],"names":{"title":"countDown(from:failingAt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countDown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"failingAt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"from","internalName":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"failingAt","internalName":"failure","declarationFragments":[{"kind":"identifier","spelling":"failure"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countDown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"failingAt"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"failure"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":15,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7letters2ofQrSS_tF","interfaceLanguage":"swift"},"pathComponents":["letters(of:)"],"names":{"title":"letters(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"letters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">\n"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"word","declarationFragments":[{"kind":"identifier","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"letters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":32,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5pagesyScSySaySSGGSiF","interfaceLanguage":"swift"},"pathComponents":["pages(_:)"],"names":{"title":"pages(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pages"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pages"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":41,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11checkedSideyS2dKF","interfaceLanguage":"swift"},"pathComponents":["checkedSide(_:)"],"names":{"title":"checkedSide(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkedSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkedSide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":5,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8echoInt8ys0D0VADF","interfaceLanguage":"swift"},"pathComponents":["echoInt8(_:)"],"names":{"title":"echoInt8(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt8"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt8"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":10,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10echoUInt64ys0D0VADF","interfaceLanguage":"swift"},"pathComponents":["echoUInt64(_:)"],"names":{"title":"echoUInt64(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoUInt64"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoUInt64"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":11,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10largestIntSiyF","interfaceLanguage":"swift"},"pathComponents":["largestInt()"],"names":{"title":"largestInt()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largestInt"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largestInt"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":12,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5shoutySSSgACF","interfaceLanguage":"swift"},"pathComponents":["shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":13,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7TrackerC","interfaceLanguage":"swift"},"pathComponents":["Tracker"],"names":{"title":"Tracker","navigator":[{"kind":"identifier","spelling":"Tracker"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Tracker"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Tracker"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":15,"character":19}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo7TrackerC9liveCountSivpZ","interfaceLanguage":"swift"},"pathComponents":["Tracker","liveCount"],"names":{"title":"liveCount","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"liveCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"liveCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":16,"character":35}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7TrackerC2idSivp","interfaceLanguage":"swift"},"pathComponents":["Tracker","id"],"names":{"title":"id","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":17,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7TrackerC2idACSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Tracker","init(id:)"],"names":{"title":"init(id:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":19,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7TrackerC4sameACyF","interfaceLanguage":"swift"},"pathComponents":["Tracker","same()"],"names":{"title":"same()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":26,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11delayedEcho_5afterS2S_SdtYaKF","interfaceLanguage":"swift"},"pathComponents":["delayedEcho(_:after:)"],"names":{"title":"delayedEcho(_:after:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"delayedEcho"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"after","internalName":"seconds","declarationFragments":[{"kind":"identifier","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"delayedEcho"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":29,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo16makeTrackerLater2idAA0D0CSi_tYaF","interfaceLanguage":"swift"},"pathComponents":["makeTrackerLater(id:)"],"names":{"title":"makeTrackerLater(id:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeTrackerLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeTrackerLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7PaletteC","interfaceLanguage":"swift"},"pathComponents":["Palette"],"names":{"title":"Palette","navigator":[{"kind":"identifier","spelling":"Palette"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Palette"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Palette"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":41,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PaletteC7strokesSivp","interfaceLanguage":"swift"},"pathComponents":["Palette","strokes"],"names":{"title":"strokes","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":42,"character":28}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PaletteCACycfc","interfaceLanguage":"swift"},"pathComponents":["Palette","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":43,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PaletteC6strokeSiyF","interfaceLanguage":"swift"},"pathComponents":["Palette","stroke()"],"names":{"title":"stroke()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"stroke"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"stroke"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":44,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PaletteC11strokeLaterSiyYaF","interfaceLanguage":"swift"},"pathComponents":["Palette","strokeLater()"],"names":{"title":"strokeLater()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokeLater"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokeLater"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":48,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5namesySaySSGSiF","interfaceLanguage":"swift"},"pathComponents":["names(_:)"],"names":{"title":"names(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5totalySdSaySdGF","interfaceLanguage":"swift"},"pathComponents":["total(_:)"],"names":{"title":"total(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"total"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"total"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":55,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8centroid2ofAA5PointVSayAEG_tF","interfaceLanguage":"swift"},"pathComponents":["centroid(of:)"],"names":{"title":"centroid(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"centroid"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"points","declarationFragments":[{"kind":"identifier","spelling":"points"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"centroid"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"points"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":56,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8mirroredySaySaySiGGADF","interfaceLanguage":"swift"},"pathComponents":["mirrored(_:)"],"names":{"title":"mirrored(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mirrored"},{"kind":"text","spelling":"([["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]) -> [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]},"functionSignature":{"parameters":[{"name":"grid","declarationFragments":[{"kind":"identifier","spelling":"grid"},{"kind":"text","spelling":": [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]}],"returns":[{"kind":"text","spelling":"[["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mirrored"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"grid"},{"kind":"text","spelling":": [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]) -> [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":57,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10wordCountsySDySSSiGSaySSGF","interfaceLanguage":"swift"},"pathComponents":["wordCounts(_:)"],"names":{"title":"wordCounts(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wordCounts"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wordCounts"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":58,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7lengthsySDySSSiGSDyS2SGF","interfaceLanguage":"swift"},"pathComponents":["lengths(_:)"],"names":{"title":"lengths(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lengths"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"table","declarationFragments":[{"kind":"identifier","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lengths"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":61,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8trackersySayAA7TrackerCGSaySiGF","interfaceLanguage":"swift"},"pathComponents":["trackers(_:)"],"names":{"title":"trackers(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"trackers"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"ids","declarationFragments":[{"kind":"identifier","spelling":"ids"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"trackers"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"ids"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":62,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF","interfaceLanguage":"swift"},"pathComponents":["allFlavors()"],"names":{"title":"allFlavors()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allFlavors"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allFlavors"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":63,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7nextDay5after10Foundation4DateVAF_tF","interfaceLanguage":"swift"},"pathComponents":["nextDay(after:)"],"names":{"title":"nextDay(after:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"nextDay"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]},"functionSignature":{"parameters":[{"name":"after","internalName":"date","declarationFragments":[{"kind":"identifier","spelling":"date"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"nextDay"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"date"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":64,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4host2ofSSSg10Foundation3URLV_tF","interfaceLanguage":"swift"},"pathComponents":["host(of:)"],"names":{"title":"host(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"host"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"host"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":65,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7resolve_7against10Foundation3URLVSS_AFtF","interfaceLanguage":"swift"},"pathComponents":["resolve(_:against:)"],"names":{"title":"resolve(_:against:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"against"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"against","internalName":"base","declarationFragments":[{"kind":"identifier","spelling":"base"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"against"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"base"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":66,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8checksumySi10Foundation4DataVF","interfaceLanguage":"swift"},"pathComponents":["checksum(_:)"],"names":{"title":"checksum(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checksum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checksum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":67,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4rampy10Foundation4DataVSiF","interfaceLanguage":"swift"},"pathComponents":["ramp(_:)"],"names":{"title":"ramp(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ramp"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ramp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":68,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10namesLaterySaySSGSiYaF","interfaceLanguage":"swift"},"pathComponents":["namesLater(_:)"],"names":{"title":"namesLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"namesLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"namesLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":69,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9countdown4from_ySi_ySi_SbtXEtF","interfaceLanguage":"swift"},"pathComponents":["countdown(from:_:)"],"names":{"title":"countdown(from:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countdown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"from","internalName":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"tick","declarationFragments":[{"kind":"identifier","spelling":"tick"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countdown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tick"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":74,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10greetLater_10completionySSSg_yADYbctF","interfaceLanguage":"swift"},"pathComponents":["greetLater(_:completion:)"],"names":{"title":"greetLater(_:completion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":80,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo8NotifierC","interfaceLanguage":"swift"},"pathComponents":["Notifier"],"names":{"title":"Notifier","navigator":[{"kind":"identifier","spelling":"Notifier"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Notifier"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Notifier"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":86,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo8NotifierCACycfc","interfaceLanguage":"swift"},"pathComponents":["Notifier","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":88,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8NotifierC5countSivp","interfaceLanguage":"swift"},"pathComponents":["Notifier","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":89,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC9subscribeyyySSYbcF","interfaceLanguage":"swift"},"pathComponents":["Notifier","subscribe(_:)"],"names":{"title":"subscribe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"subscribe"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"subscribe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":90,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC7publishyySSF","interfaceLanguage":"swift"},"pathComponents":["Notifier","publish(_:)"],"names":{"title":"publish(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publish"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publish"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":91,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC12publishLateryySSF","interfaceLanguage":"swift"},"pathComponents":["Notifier","publishLater(_:)"],"names":{"title":"publishLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publishLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publishLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":92,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC5clearyyF","interfaceLanguage":"swift"},"pathComponents":["Notifier","clear()"],"names":{"title":"clear()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":96,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4area2ofSdAA11MeasurementO_tF","interfaceLanguage":"swift"},"pathComponents":["area(of:)"],"names":{"title":"area(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"measurement","declarationFragments":[{"kind":"identifier","spelling":"measurement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"measurement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":99,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7measure_2byAA11MeasurementOSd_SdSgtF","interfaceLanguage":"swift"},"pathComponents":["measure(_:by:)"],"names":{"title":"measure(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measure"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"by","internalName":"height","declarationFragments":[{"kind":"identifier","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":106,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12measurementsSayAA11MeasurementOGyF","interfaceLanguage":"swift"},"pathComponents":["measurements()"],"names":{"title":"measurements()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measurements"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measurements"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":111,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12measureLateryAA11MeasurementOSdYaF","interfaceLanguage":"swift"},"pathComponents":["measureLater(_:)"],"names":{"title":"measureLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measureLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measureLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":113,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9onMeasureyyyAA11MeasurementOXEF","interfaceLanguage":"swift"},"pathComponents":["onMeasure(_:)"],"names":{"title":"onMeasure(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onMeasure"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onMeasure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":118,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7explainySSAA10ShapeErrorOF","interfaceLanguage":"swift"},"pathComponents":["explain(_:)"],"names":{"title":"explain(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"explain"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"explain"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":120,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7FormulaO","interfaceLanguage":"swift"},"pathComponents":["Formula"],"names":{"title":"Formula","navigator":[{"kind":"identifier","spelling":"Formula"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Formula"}]},"declarationFragments":[{"kind":"keyword","spelling":"indirect"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Formula"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":128,"character":21}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO6numberyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","number(_:)"],"names":{"title":"Formula.number(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":129,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO3sumyA2C_ACtcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","sum(_:_:)"],"names":{"title":"Formula.sum(_:_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":130,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO6negateyA2CcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","negate(_:)"],"names":{"title":"Formula.negate(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"negate"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"negate"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":131,"character":9}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7FormulaO5valueSdvp","interfaceLanguage":"swift"},"pathComponents":["Formula","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":133,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8simplifyyAA7FormulaOADF","interfaceLanguage":"swift"},"pathComponents":["simplify(_:)"],"names":{"title":"simplify(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simplify"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]},"functionSignature":{"parameters":[{"name":"formula","declarationFragments":[{"kind":"identifier","spelling":"formula"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simplify"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"formula"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":142,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7PayloadO","interfaceLanguage":"swift"},"pathComponents":["Payload"],"names":{"title":"Payload","navigator":[{"kind":"identifier","spelling":"Payload"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Payload"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Payload"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":144,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO7trackeryAcA7TrackerCcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","tracker(_:)"],"names":{"title":"Payload.tracker(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracker"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracker"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":145,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5pointyAcA5PointVcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","point(_:)"],"names":{"title":"Payload.point(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":146,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO6flavoryAcA6FlavorOcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","flavor(_:)"],"names":{"title":"Payload.flavor(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flavor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flavor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":147,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5maybeyACSiSgcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","maybe(_:)"],"names":{"title":"Payload.maybe(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"maybe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"maybe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":148,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5namesyACSaySSGcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","names(_:)"],"names":{"title":"Payload.names(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":149,"character":9}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4echoyAA7PayloadOADF","interfaceLanguage":"swift"},"pathComponents":["echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":152,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo3JobO","interfaceLanguage":"swift"},"pathComponents":["Job"],"names":{"title":"Job","navigator":[{"kind":"identifier","spelling":"Job"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Job"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Job"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":155,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo3JobO3runyACyyccACmF","interfaceLanguage":"swift"},"pathComponents":["Job","run(_:)"],"names":{"title":"Job.run(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"run"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"run"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":156,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo3JobO4idleyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Job","idle"],"names":{"title":"Job.idle","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"idle"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"idle"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":157,"character":9}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket"],"names":{"title":"Job.Ticket","navigator":[{"kind":"identifier","spelling":"Ticket"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ticket"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ticket"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":159,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV2idSivp","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket","id"],"names":{"title":"id","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":160,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV2idAESi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket","init(id:)"],"names":{"title":"init(id:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":161,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4bumpyySizF","interfaceLanguage":"swift"},"pathComponents":["bump(_:)"],"names":{"title":"bump(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bump"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bump"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":165,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6append_2toySS_SaySSGztF","interfaceLanguage":"swift"},"pathComponents":["append(_:to:)"],"names":{"title":"append(_:to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"append"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}]},"functionSignature":{"parameters":[{"name":"word","declarationFragments":[{"kind":"identifier","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"to","internalName":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"append"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":166,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5halveyySizKF","interfaceLanguage":"swift"},"pathComponents":["halve(_:)"],"names":{"title":"halve(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"halve"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"halve"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":167,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5clearyySSSgzF","interfaceLanguage":"swift"},"pathComponents":["clear(_:)"],"names":{"title":"clear(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?)"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?)"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":171,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12swapTrackersyyAA7TrackerCz_ADztF","interfaceLanguage":"swift"},"pathComponents":["swapTrackers(_:_:)"],"names":{"title":"swapTrackers(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapTrackers"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapTrackers"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":172,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7echoIntyS2iF","interfaceLanguage":"swift"},"pathComponents":["echoInt(_:)"],"names":{"title":"echoInt(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":175,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10echoStringyS2SF","interfaceLanguage":"swift"},"pathComponents":["echoString(_:)"],"names":{"title":"echoString(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoString"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoString"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":176,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo5BenchC","interfaceLanguage":"swift"},"pathComponents":["Bench"],"names":{"title":"Bench","navigator":[{"kind":"identifier","spelling":"Bench"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Bench"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Bench"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":178,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BenchC5valueSivp","interfaceLanguage":"swift"},"pathComponents":["Bench","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":179,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5BenchCACycfc","interfaceLanguage":"swift"},"pathComponents":["Bench","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":180,"character":11}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo5BenchC4echoyS2iFZ","interfaceLanguage":"swift"},"pathComponents":["Bench","echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":181,"character":23}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo5BenchC4echoyS2iF","interfaceLanguage":"swift"},"pathComponents":["Bench","echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":182,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9transformySaySSGSaySiG_SSSiXEtF","interfaceLanguage":"swift"},"pathComponents":["transform(_:_:)"],"names":{"title":"transform(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":186,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11sortedNames_2bySaySSGAD_SbSS_SStXEtF","interfaceLanguage":"swift"},"pathComponents":["sortedNames(_:by:)"],"names":{"title":"sortedNames(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sortedNames"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"names","declarationFragments":[{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"by","internalName":"less","declarationFragments":[{"kind":"identifier","spelling":"less"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sortedNames"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"names"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"less"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":187,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10firstMatch_5whereSiSgSaySiG_SbSiKXEtKF","interfaceLanguage":"swift"},"pathComponents":["firstMatch(_:where:)"],"names":{"title":"firstMatch(_:where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstMatch"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstMatch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":190,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6lookupySiSS_SiSgSSXEtF","interfaceLanguage":"swift"},"pathComponents":["lookup(_:_:)"],"names":{"title":"lookup(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"resolve","declarationFragments":[{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"resolve"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":193,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF","interfaceLanguage":"swift"},"pathComponents":["computeInBackground(_:)"],"names":{"title":"computeInBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"computeInBackground"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"provider","declarationFragments":[{"kind":"identifier","spelling":"provider"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"computeInBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"provider"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":194,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7largestyxSgSayxGSLRzlF","interfaceLanguage":"swift"},"pathComponents":["largest(_:)"],"names":{"title":"largest(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largest"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largest"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Comparable","preciseIdentifier":"s:SL"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":199,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF","interfaceLanguage":"swift"},"pathComponents":["repeated(_:times:)"],"names":{"title":"repeated(_:times:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"repeated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"}]},{"name":"times","declarationFragments":[{"kind":"identifier","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"repeated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":200,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF","interfaceLanguage":"swift"},"pathComponents":["popCount(_:)"],"names":{"title":"popCount(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popCount"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"parameters":[{"name":"I","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"I","rhs":"FixedWidthInteger","rhsPrecise":"s:s17FixedWidthIntegerP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popCount"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FixedWidthInteger","preciseIdentifier":"s:s17FixedWidthIntegerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":201,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4zeroxySjRzlF","interfaceLanguage":"swift"},"pathComponents":["zero()"],"names":{"title":"zero()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zero"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"N"},{"kind":"text","spelling":">() -> "},{"kind":"typeIdentifier","spelling":"N","preciseIdentifier":"s:9SwiftDemo4zeroxySjRzlF1NL_xmfp"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"N"}]},"swiftGenerics":{"parameters":[{"name":"N","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"N","rhs":"Numeric","rhsPrecise":"s:Sj"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zero"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"N"},{"kind":"text","spelling":">() -> "},{"kind":"typeIdentifier","spelling":"N","preciseIdentifier":"s:9SwiftDemo4zeroxySjRzlF1NL_xmfp"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"N"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Numeric","preciseIdentifier":"s:Sj"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":202,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF","interfaceLanguage":"swift"},"pathComponents":["greetTwice(_:_:)"],"names":{"title":"greetTwice(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetTwice"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"G"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"}]},{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"parameters":[{"name":"G","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"G","rhs":"Greeting","rhsPrecise":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetTwice"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"G"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"G"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":203,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF","interfaceLanguage":"swift"},"pathComponents":["decodeJSON(_:from:)"],"names":{"title":"decodeJSON(_:from:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"decodeJSON"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type"}]},{"name":"from","internalName":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Decodable","rhsPrecise":"s:Se"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"decodeJSON"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Decodable","preciseIdentifier":"s:Se"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":208,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF","interfaceLanguage":"swift"},"pathComponents":["firstElement(_:)"],"names":{"title":"firstElement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstElement"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstElement"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":211,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6joinedySSx_q_tr0_lF","interfaceLanguage":"swift"},"pathComponents":["joined(_:_:)"],"names":{"title":"joined(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joined"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"first","declarationFragments":[{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"}]},{"name":"second","declarationFragments":[{"kind":"identifier","spelling":"second"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":0},{"name":"B","index":1,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joined"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"first"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"second"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":212,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7compactySaySiGSaySiSgGF","interfaceLanguage":"swift"},"pathComponents":["compact(_:)"],"names":{"title":"compact(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compact"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compact"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":215,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5holesySaySSSgGSiF","interfaceLanguage":"swift"},"pathComponents":["holes(_:)"],"names":{"title":"holes(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"holes"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"holes"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":216,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11knownScoresySDySSSiSgGADF","interfaceLanguage":"swift"},"pathComponents":["knownScores(_:)"],"names":{"title":"knownScores(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"knownScores"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]},"functionSignature":{"parameters":[{"name":"scores","declarationFragments":[{"kind":"identifier","spelling":"scores"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"knownScores"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scores"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":217,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6divide_2bySi8quotient_Si9remaindertSi_SitF","interfaceLanguage":"swift"},"pathComponents":["divide(_:by:)"],"names":{"title":"divide(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"divide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> (quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"by","internalName":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"(quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"divide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> (quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":220,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8swapPairySS_SitSi_SSt_tF","interfaceLanguage":"swift"},"pathComponents":["swapPair(_:)"],"names":{"title":"swapPair(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapPair"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")) -> ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]}],"returns":[{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapPair"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")) -> ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":221,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4plotySSSgSd1x_Sd1ytSgF","interfaceLanguage":"swift"},"pathComponents":["plot(_:)"],"names":{"title":"plot(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"plot"},{"kind":"text","spelling":"((x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"plot"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":222,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5spansSaySS_SiSgtGyF","interfaceLanguage":"swift"},"pathComponents":["spans()"],"names":{"title":"spans()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"spans"},{"kind":"text","spelling":"() -> [("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"[("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"spans"},{"kind":"text","spelling":"() -> [("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":223,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10uniqueTagsyShySSGSaySSGF","interfaceLanguage":"swift"},"pathComponents":["uniqueTags(_:)"],"names":{"title":"uniqueTags(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"uniqueTags"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"tags","declarationFragments":[{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"uniqueTags"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tags"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":224,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11countUniqueySiShySiGF","interfaceLanguage":"swift"},"pathComponents":["countUnique(_:)"],"names":{"title":"countUnique(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUnique"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUnique"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":225,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10tallyLateryShySSG6unique_Si5counttSaySSGYaF","interfaceLanguage":"swift"},"pathComponents":["tallyLater(_:)"],"names":{"title":"tallyLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tallyLater"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> (unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"(unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tallyLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> (unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":226,"character":12}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV","interfaceLanguage":"swift"},"pathComponents":["ParseFailure"],"names":{"title":"ParseFailure","navigator":[{"kind":"identifier","spelling":"ParseFailure"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ParseFailure"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ParseFailure"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":231,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV4textSSvp","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","text"],"names":{"title":"text","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":232,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":233,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF","interfaceLanguage":"swift"},"pathComponents":["parseNumber(_:)"],"names":{"title":"parseNumber(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseNumber"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseNumber"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":235,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10checkSidesys6ResultOyytAA10ShapeErrorOGSiF","interfaceLanguage":"swift"},"pathComponents":["checkSides(_:)"],"names":{"title":"checkSides(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkSides"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"sides","declarationFragments":[{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkSides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":239,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF","interfaceLanguage":"swift"},"pathComponents":["unwrap(_:)"],"names":{"title":"unwrap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unwrap"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"result","declarationFragments":[{"kind":"identifier","spelling":"result"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unwrap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"result"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":242,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10parseLaterys6ResultOySis5Error_pGSSYaF","interfaceLanguage":"swift"},"pathComponents":["parseLater(_:)"],"names":{"title":"parseLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":243,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9fetchItemyySi_ys6ResultOySSs5Error_pGYbctF","interfaceLanguage":"swift"},"pathComponents":["fetchItem(_:_:)"],"names":{"title":"fetchItem(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetchItem"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetchItem"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":244,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13describeErrorySSs0D0_pSgF","interfaceLanguage":"swift"},"pathComponents":["describeError(_:)"],"names":{"title":"describeError(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeError"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeError"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"error"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":249,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8shoutAllySSxSyRzlF","interfaceLanguage":"swift"},"pathComponents":["shoutAll(_:)"],"names":{"title":"shoutAll(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shoutAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shoutAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":252,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF","interfaceLanguage":"swift"},"pathComponents":["describeValue(_:)"],"names":{"title":"describeValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeValue"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomStringConvertible","rhs":"CustomStringConvertible","rhsPrecise":"s:s23CustomStringConvertibleP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":253,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF","interfaceLanguage":"swift"},"pathComponents":["greetOnce(_:_:)"],"names":{"title":"greetOnce(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetOnce"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Greeting","rhs":"Greeting","rhsPrecise":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetOnce"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":254,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8describeySSSo6UIViewCF","interfaceLanguage":"swift"},"pathComponents":["describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":6,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9makeLabelySo7UILabelCSSF","interfaceLanguage":"swift"},"pathComponents":["makeLabel(_:)"],"names":{"title":"makeLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":8,"character":23}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4tagsySaySiGSaySo6UIViewCGF","interfaceLanguage":"swift"},"pathComponents":["tags(_:)"],"names":{"title":"tags(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"views","declarationFragments":[{"kind":"identifier","spelling":"views"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"views"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":14,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12firstSubview2ofSo6UIViewCSgAE_tF","interfaceLanguage":"swift"},"pathComponents":["firstSubview(of:)"],"names":{"title":"firstSubview(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstSubview"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstSubview"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":16,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)Note","interfaceLanguage":"swift"},"pathComponents":["Note"],"names":{"title":"Note","navigator":[{"kind":"identifier","spelling":"Note"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":18,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4NoteC4textSSvp","interfaceLanguage":"swift"},"pathComponents":["Note","text"],"names":{"title":"text","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":19,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo4NoteC4textACSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Note","init(text:)"],"names":{"title":"init(text:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":20,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4NoteC4tagsShySSGvp","interfaceLanguage":"swift"},"pathComponents":["Note","tags"],"names":{"title":"tags","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":23,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC6taggedyACSSF","interfaceLanguage":"swift"},"pathComponents":["Note","tagged(_:)"],"names":{"title":"tagged(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagged"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagged"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":24,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF","interfaceLanguage":"swift"},"pathComponents":["Note","summary(maxLength:)"],"names":{"title":"summary(maxLength:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"summary"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"maxLength","declarationFragments":[{"kind":"identifier","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"summary"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":28,"character":16}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC5blankACyFZ","interfaceLanguage":"swift"},"pathComponents":["Note","blank()"],"names":{"title":"blank()","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blank"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blank"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":29,"character":23}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)Note(py)revision","interfaceLanguage":"swift"},"pathComponents":["Note","revision"],"names":{"title":"revision","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"revision"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@objc"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"revision"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":31,"character":21}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)CounterView","interfaceLanguage":"swift"},"pathComponents":["CounterView"],"names":{"title":"CounterView","navigator":[{"kind":"identifier","spelling":"CounterView"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CounterView"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CounterView"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":35,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11CounterViewC5countSivp","interfaceLanguage":"swift"},"pathComponents":["CounterView","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":36,"character":28}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF","interfaceLanguage":"swift"},"pathComponents":["CounterView","configure(start:step:)"],"names":{"title":"configure(start:step:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"configure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"step","declarationFragments":[{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"configure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":37,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8makeNoteyAA0D0CSSF","interfaceLanguage":"swift"},"pathComponents":["makeNote(_:)"],"names":{"title":"makeNote(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeNote"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeNote"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":43,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4text2ofSSAA4NoteC_tF","interfaceLanguage":"swift"},"pathComponents":["text(of:)"],"names":{"title":"text(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"note","declarationFragments":[{"kind":"identifier","spelling":"note"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"note"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":44,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9noteLateryAA4NoteCSSYaF","interfaceLanguage":"swift"},"pathComponents":["noteLater(_:)"],"names":{"title":"noteLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"noteLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"noteLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":46,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF","interfaceLanguage":"swift"},"pathComponents":["viewTag(_:)"],"names":{"title":"viewTag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"viewTag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":0}],"constraints":[{"kind":"superclass","lhs":"V","rhs":"UIView","rhsPrecise":"c:objc(cs)UIView"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"viewTag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":51,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8midpointySo7CGPointVAD_ADtF","interfaceLanguage":"swift"},"pathComponents":["midpoint(_:_:)"],"names":{"title":"midpoint(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"midpoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"midpoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5inset_2bySo6CGRectVAE_So12UIEdgeInsetsVtF","interfaceLanguage":"swift"},"pathComponents":["inset(_:by:)"],"names":{"title":"inset(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},"functionSignature":{"parameters":[{"name":"rect","declarationFragments":[{"kind":"identifier","spelling":"rect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},{"name":"by","internalName":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":57,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7fittingySo6CGSizeVSgAEF","interfaceLanguage":"swift"},"pathComponents":["fitting(_:)"],"names":{"title":"fitting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fitting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"size","declarationFragments":[{"kind":"identifier","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fitting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":58,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12latitudeSpanySdSo22CLLocationCoordinate2DV_ADtF","interfaceLanguage":"swift"},"pathComponents":["latitudeSpan(_:_:)"],"names":{"title":"latitudeSpan(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"latitudeSpan"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"latitudeSpan"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":59,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5tagOfySixSo6UIViewCRbzlF","interfaceLanguage":"swift"},"pathComponents":["tagOf(_:)"],"names":{"title":"tagOf(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagOf"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"constraints":[{"kind":"superclass","lhs":"some UIView","rhs":"UIView","rhsPrecise":"c:objc(cs)UIView"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagOf"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":62,"character":12}}}],"relationships":[{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.focusedValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.focusedSceneValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF","displayName":"View.contentMargins(for:edges:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF","displayName":"View.offset(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF","displayName":"View.offset(x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF","displayName":"View.fixedSize(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fixedSizeQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fixedSizeQryF","displayName":"View.fixedSize()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF","displayName":"View.rotationEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF","displayName":"View.hoverEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF","displayName":"View.hoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF","displayName":"View.hoverEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF","displayName":"View.defaultHoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF","displayName":"View.defaultHoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF","displayName":"View.hoverEffectDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF","displayName":"View.foregroundColor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF","displayName":"View.accentColor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF","displayName":"View.keyframeAnimator(initialValue:trigger:content:keyframes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF","displayName":"View.keyframeAnimator(initialValue:repeating:content:keyframes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF","displayName":"View.padding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.padding(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF","displayName":"View.padding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF","displayName":"View.glassEffect(_:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF","displayName":"View.glassEffectTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF","displayName":"View.onOpenURL(prefersInApp:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF","displayName":"View.splitArrangementLayoutRatio(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF","displayName":"View.splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF","displayName":"View.splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF","displayName":"View.splitArrangementFixedLayoutSize(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF","displayName":"View.lineHeight(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF","displayName":"View.glassEffectUnion(id:namespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF","displayName":"View.overlayArrangementEdge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF","displayName":"View.overlayArrangementEdge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF","displayName":"View.writingDirection(strategy:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF","displayName":"View.arrangementViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF","displayName":"View.multilineTextAlignment(strategy:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF","displayName":"View.containerCornerOffset(_:sizeToFit:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF","displayName":"View.glassEffectID(_:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF","displayName":"View.sliderThumbVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF","displayName":"View.actionSheet(item:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF","displayName":"View.actionSheet(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF","displayName":"View.searchSelection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF","displayName":"View.scrollTargetBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF","displayName":"View.scrollTargetLayout(isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF","displayName":"View.onContinuousHover(coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF","displayName":"View.writingToolsBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF","displayName":"View.dropDestination(for:action:isTargeted:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF","displayName":"View.searchScopes(_:scopes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF","displayName":"View.searchScopes(_:activation:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF","displayName":"View.selectionDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF","displayName":"View.statusBarHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF","displayName":"View.statusBar(hidden:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF","displayName":"View.keyboardType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF","displayName":"View.autocapitalization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF","displayName":"View.menuOrder(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF","displayName":"View.sectionIndexLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF","displayName":"View.sectionIndexLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF","displayName":"View.listSectionIndexVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF","displayName":"View.defaultFocus(_:_:priority:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF","displayName":"View.onScrollTargetVisibilityChange(idType:threshold:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF","displayName":"View.onScrollVisibilityChange(threshold:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.searchFocused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.searchFocused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF","displayName":"View.navigationSplitViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF","displayName":"View.writingToolsAffordanceVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF","displayName":"View.navigationBarItems(leading:trailing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF","displayName":"View.navigationBarItems(leading:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF","displayName":"View.navigationBarItems(trailing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF","displayName":"View.accessibility(hidden:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(label:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(hint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF","displayName":"View.accessibility(inputLabels:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF","displayName":"View.accessibility(identifier:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF","displayName":"View.accessibility(selectionIdentifier:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF","displayName":"View.accessibility(sortPriority:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF","displayName":"View.accessibility(activationPoint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF","displayName":"View.accessibility(activationPoint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF","displayName":"View.navigationTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF","displayName":"View.tabBarMinimizeBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF","displayName":"View.persistentSystemOverlays(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF","displayName":"View.toolbarBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF","displayName":"View.toolbarBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF","displayName":"View.toolbarBackgroundVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF","displayName":"View.toolbarColorScheme(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF","displayName":"View.toolbar(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF","displayName":"View.toolbarVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF","displayName":"View.toolbarForegroundStyle(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF","displayName":"View.reorderContainer(for:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF","displayName":"View.reorderContainer(for:in:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF","displayName":"View.reorderContainer(for:itemID:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF","displayName":"View.reorderContainer(for:itemID:in:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF","displayName":"View.pasteDestination(for:action:validator:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF","displayName":"View.cuttable(for:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF","displayName":"View.copyable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF","displayName":"View.searchSuggestions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF","displayName":"View.tabViewSearchActivation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF","displayName":"View.defaultScrollAnchor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF","displayName":"View.defaultScrollAnchor(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF","displayName":"View.backgroundExtensionEffect()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF","displayName":"View.backgroundExtensionEffect(isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF","displayName":"View.scrollIndicators(_:axes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF","displayName":"View.scrollEdgeEffectStyle(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF","displayName":"View.scrollEdgeEffectHidden(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF","displayName":"View.scrollInputBehavior(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF","displayName":"View.scrollIndicatorsFlash(trigger:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF","displayName":"View.scrollIndicatorsFlash(onAppear:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF","displayName":"View.scrollDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF","displayName":"View.scrollClipDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF","displayName":"View.scrollDismissesKeyboard(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF","displayName":"View.scrollBounceBehavior(_:axes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF","displayName":"View.containerBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF","displayName":"View.containerBackground(for:alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF","displayName":"View.documentBrowserContextMenu(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF","displayName":"View.onScrollPhaseChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF","displayName":"View.onScrollPhaseChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF","displayName":"View.onScrollGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewBottomAccessory(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF","displayName":"View.tabViewBottomAccessory(isEnabled:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF","displayName":"View.menuActionDismissBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF","displayName":"View.asyncImageURLSession(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF","displayName":"View.searchSuggestions(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.matchedTransitionSource(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF","displayName":"View.matchedTransitionSource(id:in:configuration:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF","displayName":"View.navigationDocument(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF","displayName":"View.navigationDocument(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF","displayName":"View.toolbar(removing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaBar(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaBar(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF","displayName":"View.defersSystemGestures(on:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF","displayName":"View.textContentType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbarTitleMenu(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF","displayName":"View.searchPresentationToolbarBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF","displayName":"View.searchToolbarBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF","displayName":"View.searchDictationBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF","displayName":"View.focusedValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF","displayName":"View.focusedValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF","displayName":"View.focusedSceneValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF","displayName":"View.focusedSceneValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF","displayName":"View.toolbarTitleDisplayMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF","displayName":"View.autocorrectionDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF","displayName":"View.disableAutocorrection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF","displayName":"View.scrollPosition(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF","displayName":"View.scrollPosition(id:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9focusableyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9focusableyQrSbF","displayName":"View.focusable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF","displayName":"View.focusable(_:interactions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF","displayName":"View.focusEffectDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF","displayName":"View.labelsVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF","displayName":"View.toolbarRole(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF","displayName":"View.accessibility(addTraits:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF","displayName":"View.accessibility(removeTraits:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF","displayName":"View.onTapGesture(count:coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF","displayName":"View.onTapGesture(count:coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF","displayName":"View.interactionActivityTrackingTag(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.renameAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12renameActionyQryycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12renameActionyQryycF","displayName":"View.renameAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbarOverflowMenu(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF","displayName":"View.onDragSessionUpdated(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF","displayName":"View.dragConfiguration(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF","displayName":"View.blendMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF","displayName":"View.privacySensitive(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8contrastyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8contrastyQrSdF","displayName":"View.contrast(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF","displayName":"View.matchedGeometryEffect(id:in:properties:anchor:isSource:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF","displayName":"View.environment(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF","displayName":"View.overlay(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF","displayName":"View.border(_:width:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.overlay(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF","displayName":"View.overlay(_:ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF","displayName":"View.overlay(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF","displayName":"View.buttonSizing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF","displayName":"View.blur(radius:opaque:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorInvertQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorInvertQryF","displayName":"View.colorInvert()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF","displayName":"View.grayscale(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF","displayName":"View.rotation3DEffect(_:axis:anchor:anchorZ:perspective:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF","displayName":"View.layoutDirectionBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7opacityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7opacityyQrSdF","displayName":"View.opacity(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF","displayName":"View.shadow(color:radius:x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF","displayName":"View.drawingGroup(opaque:colorMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF","displayName":"View.brightness(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13geometryGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13geometryGroupQryF","displayName":"View.geometryGroup()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF","displayName":"View.environmentObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.mask(alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF","displayName":"View.mask(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF","displayName":"View.edgesIgnoringSafeArea(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16compositingGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16compositingGroupQryF","displayName":"View.compositingGroup()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF","displayName":"View.position(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF","displayName":"View.position(x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF","displayName":"View.accessibilityIgnoresInvertColors(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF","displayName":"View.underline(_:pattern:color:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF","displayName":"View.strikethrough(_:pattern:color:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF","displayName":"View.speechAlwaysIncludesPunctuation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF","displayName":"View.speechSpellsOutCharacters(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF","displayName":"View.speechAdjustedPitch(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF","displayName":"View.speechAnnouncementsQueued(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF","displayName":"View.onGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF","displayName":"View.onGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF","displayName":"View.redacted(reason:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10unredactedQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10unredactedQryF","displayName":"View.unredacted()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF","displayName":"View.controlSize(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF","displayName":"View.materialActiveAppearance(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF","displayName":"View.transformEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF","displayName":"View.coordinateSpace(name:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF","displayName":"View.coordinateSpace(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF","displayName":"View.symbolRenderingMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF","displayName":"View.symbolVariableValueMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF","displayName":"View.symbolColorRenderingMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF","displayName":"View.colorEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF","displayName":"View.distortionEffect(_:maxSampleOffset:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF","displayName":"View.layerEffect(_:maxSampleOffset:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF","displayName":"View.aspectRatio(_:contentMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF","displayName":"View.aspectRatio(_:contentMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaledToFitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaledToFitQryF","displayName":"View.scaledToFit()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scaledToFillQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scaledToFillQryF","displayName":"View.scaledToFill()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.overlayPreferenceValue(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.backgroundPreferenceValue(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.overlayPreferenceValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.backgroundPreferenceValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF","displayName":"View.zIndex(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF","displayName":"View.layoutValue(key:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF","displayName":"View.multilineTextAlignment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF","displayName":"View.truncationMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.lineSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF","displayName":"View.allowsTightening(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF","displayName":"View.minimumScaleFactor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF","displayName":"View.textCase(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF","displayName":"View.typesettingLanguage(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF","displayName":"View.typesettingLanguage(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF","displayName":"View.lineLimit(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF","displayName":"View.lineLimit(_:reservesSpace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF","displayName":"View.alignmentGuide(_:computeValue:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF","displayName":"View.alignmentGuide(_:computeValue:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF","displayName":"View.backgroundStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF","displayName":"View.foregroundStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF","displayName":"View.foregroundStyle(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF","displayName":"View.foregroundStyle(_:_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF","displayName":"View.transformPreference(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF","displayName":"View.preference(key:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF","displayName":"View.luminanceToAlpha()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF","displayName":"View.containerRelativeFrame(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF","displayName":"View.containerRelativeFrame(_:count:span:spacing:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF","displayName":"View.containerRelativeFrame(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF","displayName":"View.onAppear(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF","displayName":"View.onDisappear(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF","displayName":"View.transformEnvironment(_:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF","displayName":"View.tag(_:includeOptional:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF","displayName":"View.dynamicTypeSize(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF","displayName":"View.containerValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF","displayName":"View.anchorPreference(key:value:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF","displayName":"View.frame(width:height:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frameQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frameQryF","displayName":"View.frame()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF","displayName":"View.frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF","displayName":"View.textRenderer(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF","displayName":"View.textScale(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF","displayName":"View.contentShape(_:eoFill:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF","displayName":"View.contentShape(_:_:eoFill:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF","displayName":"View.symbolEffect(_:options:isActive:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF","displayName":"View.symbolEffect(_:options:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF","displayName":"View.animation(_:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF","displayName":"View.containerShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF","displayName":"View.onChange(of:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF","displayName":"View.onChange(of:initial:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF","displayName":"View.onChange(of:initial:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF","displayName":"View.accessibilityShowsLargeContentViewer(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF","displayName":"View.accessibilityShowsLargeContentViewer()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF","displayName":"View.containerShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF","displayName":"View.phaseAnimator(_:trigger:content:animation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF","displayName":"View.phaseAnimator(_:content:animation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF","displayName":"View.onTapGesture(count:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF","displayName":"View.layoutPriority(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.environment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF","displayName":"View.onPreferenceChange(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF","displayName":"View.headerProminence(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF","displayName":"View.modifier(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF","displayName":"View.allowedDynamicRange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF","displayName":"View.symbolVariant(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF","displayName":"View.background(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.background(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF","displayName":"View.background(ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF","displayName":"View.background(_:ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF","displayName":"View.background(in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF","displayName":"View.background(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF","displayName":"View.background(in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF","displayName":"View.background(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF","displayName":"View.contentTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF","displayName":"View.visualEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10saturationyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10saturationyQrSdF","displayName":"View.saturation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF","displayName":"View.ignoresSafeArea(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF","displayName":"View.ignoresSafeArea(_:edges:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF","displayName":"View.allowsHitTesting(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF","displayName":"View.imageScale(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF","displayName":"View.font(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF","displayName":"View.monospacedDigit()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF","displayName":"View.monospaced(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF","displayName":"View.fontWeight(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF","displayName":"View.fontWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4boldyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4boldyQrSbF","displayName":"View.bold(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6italicyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6italicyQrSbF","displayName":"View.italic(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF","displayName":"View.fontDesign(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF","displayName":"View.kerning(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF","displayName":"View.tracking(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF","displayName":"View.baselineOffset(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF","displayName":"View.colorMultiply(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF","displayName":"View.transformAnchorPreference(key:value:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF","displayName":"View.clipShape(_:style:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF","displayName":"View.clipped(antialiased:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF","displayName":"View.cornerRadius(_:antialiased:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF","displayName":"View.transaction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF","displayName":"View.transaction(value:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF","displayName":"View.animation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF","displayName":"View.transaction(_:body:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF","displayName":"View.animation(_:body:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF","displayName":"View.id(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF","displayName":"View.colorScheme(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF","displayName":"View.preferredColorScheme(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF","displayName":"View.onHingeChange(isEnabled:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF","displayName":"View.gesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF","displayName":"View.gesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF","displayName":"View.gesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF","displayName":"View.scaleEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF","displayName":"View.scaleEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF","displayName":"View.scaleEffect(x:y:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaInset(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaInset(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF","displayName":"View.safeAreaPadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.safeAreaPadding(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF","displayName":"View.safeAreaPadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF","displayName":"View.tint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF","displayName":"View.hueRotation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF","displayName":"View.textInputBorderShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF","displayName":"View.transition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.navigationSplitViewColumnWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF","displayName":"View.navigationSplitViewColumnWidth(min:ideal:max:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityLinkedGroup(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityLabeledPair(role:id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF","displayName":"View.handGestureShortcut(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF","displayName":"View.scenePadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF","displayName":"View.scenePadding(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF","displayName":"View.listStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF","displayName":"View.accessibilityActions(category:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF","displayName":"View.accessibilityLabel(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF","displayName":"View.listRowInsets(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.listRowInsets(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF","displayName":"View.dialogIcon(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF","displayName":"View.alert(item:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF","displayName":"View.alert(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF","displayName":"View.navigationDestination(for:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF","displayName":"View.navigationDestination(isPresented:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF","displayName":"View.navigationDestination(item:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF","displayName":"View.textSelection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF","displayName":"View.accessibilityAdjustableAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF","displayName":"View.accessibilityTextContentType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF","displayName":"View.accessibilityHeading(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF","displayName":"View.allowsWindowActivationEvents(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF","displayName":"View.allowsWindowActivationEvents()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF","displayName":"View.sensoryFeedback(_:trigger:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF","displayName":"View.sensoryFeedback(_:trigger:condition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF","displayName":"View.sensoryFeedback(trigger:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF","displayName":"View.sensoryFeedback(trigger:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF","displayName":"View.onDrop(of:delegate:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF","displayName":"View.dropDestination(for:isEnabled:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF","displayName":"View.onDropSessionUpdated(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF","displayName":"View.dropConfiguration(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF","displayName":"View.onDrop(of:delegate:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF","displayName":"View.invalidatableContent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF","displayName":"View.findNavigator(isPresented:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF","displayName":"View.findDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF","displayName":"View.replaceDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF","displayName":"View.symbolEffectsRemoved(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF","displayName":"View.userActivity(_:isActive:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF","displayName":"View.userActivity(_:element:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF","displayName":"View.onContinueUserActivity(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF","displayName":"View.onOpenURL(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF","displayName":"View.handlesExternalEvents(preferring:allowing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF","displayName":"View.onReceive(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF","displayName":"View.menuStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF","displayName":"View.flipsForRightToLeftLayoutDirection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF","displayName":"View.textEditorStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF","displayName":"View.toggleStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF","displayName":"View.textInputAutocapitalization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8disabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8disabledyQrSbF","displayName":"View.disabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF","displayName":"View.onInteractiveResizeChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF","displayName":"View.indexViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF","displayName":"View.tabViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF","displayName":"View.disclosureGroupStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF","displayName":"View.onContinuousHover(coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF","displayName":"View.task(name:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF","displayName":"View.task(name:executorPreference:priority:file:line:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF","displayName":"View.task(id:name:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF","displayName":"View.task(id:name:executorPreference:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF","displayName":"View.springLoadingBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF","displayName":"View.scrollTransition(_:axis:transition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF","displayName":"View.scrollTransition(topLeading:bottomTrailing:axis:transition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF","displayName":"View.onHover(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF","displayName":"View.listRowSeparator(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF","displayName":"View.listRowSeparatorTint(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF","displayName":"View.listSectionSeparator(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF","displayName":"View.listSectionSeparatorTint(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF","displayName":"View.accessibilitySortPriority(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF","displayName":"View.accessibilityScrollAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF","displayName":"View.fileDialogDefaultDirectory(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF","displayName":"View.fileDialogCustomizationID(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF","displayName":"View.fileDialogURLEnabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF","displayName":"View.fileDialogImportsUnresolvedAliases(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF","displayName":"View.fileDialogBrowserOptions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF","displayName":"View.dialogSuppressionToggle(isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.sheet(item:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF","displayName":"View.sheet(isPresented:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.fullScreenCover(item:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF","displayName":"View.fullScreenCover(isPresented:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF","displayName":"View.defaultAppStorage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF","displayName":"View.onSubmit(of:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF","displayName":"View.submitScope(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF","displayName":"View.navigationLinkIndicatorVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF","displayName":"View.navigationBarHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF","displayName":"View.navigationBarBackButtonHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF","displayName":"View.textInputFormattingControlVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF","displayName":"View.accessibilityRespondsToUserInteraction(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF","displayName":"View.accessibilityRespondsToUserInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF","displayName":"View.buttonStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.focused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.focused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF","displayName":"View.submitLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF","displayName":"View.refreshable(action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF","displayName":"View.projectionEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF","displayName":"View.navigationViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF","displayName":"View.contextMenu(menuItems:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.contextMenu(menuItems:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF","displayName":"View.contextMenu(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF","displayName":"View.windowToolbarFullScreenVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF","displayName":"View.itemProvider(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF","displayName":"View.paletteSelectionEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF","displayName":"View.buttonStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF","displayName":"View.textFieldStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(isPresented:error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(isPresented:error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF","displayName":"View.tabItem(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF","displayName":"View.moveDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF","displayName":"View.scrollContentBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF","displayName":"View.toolbarMinimizationBehavior(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF","displayName":"View.toolbarMinimizationSafeAreaAdjustment(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF","displayName":"View.toolbarMinimizationRestoration(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF","displayName":"View.presentationSizing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF","displayName":"View.inspector(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF","displayName":"View.inspectorColumnWidth(min:ideal:max:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.inspectorColumnWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF","displayName":"View.progressViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF","displayName":"View.previewDevice(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF","displayName":"View.previewLayout(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF","displayName":"View.previewDisplayName(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF","displayName":"View.previewContext(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF","displayName":"View.previewInterfaceOrientation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.popover(item:attachmentAnchor:arrowEdge:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF","displayName":"View.popover(isPresented:attachmentAnchor:arrowEdge:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF","displayName":"View.accessibilityDirectTouch(_:options:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF","displayName":"View.listItemTint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF","displayName":"View.listItemTint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF","displayName":"View.labelsHidden()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF","displayName":"View.pickerStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF","displayName":"View.listSectionSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.listSectionSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF","displayName":"View.accessibilityHidden(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF","displayName":"View.accessibilityHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF","displayName":"View.onPencilDoubleTap(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF","displayName":"View.onPencilSqueeze(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarHeader(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarFooter(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarBottomBar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF","displayName":"View.searchCompletion(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityRotorEntry(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF","displayName":"View.buttonBorderShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF","displayName":"View.sceneAccessory(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF","displayName":"View.formStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF","displayName":"View.swipeActions(edge:allowsFullSwipe:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF","displayName":"View.swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF","displayName":"View.swipeActionsContainer()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF","displayName":"View.deleteDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF","displayName":"View.accessibilityIdentifier(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF","displayName":"View.accessibilityIdentifier(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF","displayName":"View.listRowSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF","displayName":"View.onLongPressGesture(minimumDuration:pressing:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF","displayName":"View.gridCellColumns(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF","displayName":"View.gridCellAnchor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF","displayName":"View.gridColumnAlignment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF","displayName":"View.gridCellUnsizedAxes(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF","displayName":"View.contentToolbar(for:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF","displayName":"View.contentToolbar(for:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF","displayName":"View.toolbar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF","displayName":"View.toolbar(id:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF","displayName":"View.assistiveAccessNavigationIcon(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF","displayName":"View.assistiveAccessNavigationIcon(systemImage:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF","displayName":"View.navigationBarTitleDisplayMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF","displayName":"View.accessibilityRepresentation(representation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF","displayName":"View.accessibilityChildren(children:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF","displayName":"View.onKeyPress(_:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF","displayName":"View.onKeyPress(_:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF","displayName":"View.onKeyPress(keys:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF","displayName":"View.onKeyPress(characters:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF","displayName":"View.onKeyPress(phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6hiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6hiddenQryF","displayName":"View.hidden()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF","displayName":"View.toolbarVerticalCompressionBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF","displayName":"View.accessibilityChartDescriptor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF","displayName":"View.textSelectionAffinity(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF","displayName":"View.menuIndicator(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF","displayName":"View.tableStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF","displayName":"View.gaugeStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF","displayName":"View.tableColumnHeaders(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrSiF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF","displayName":"View.controlGroupStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF","displayName":"View.keyboardShortcut(_:modifiers:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF","displayName":"View.keyboardShortcut(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF","displayName":"View.keyboardShortcut(_:modifiers:localization:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.accessibilityDefaultFocus(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.accessibilityFocused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF","displayName":"View.accessibilityFocused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF","displayName":"View.groupBoxStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF","displayName":"View.sectionActions(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.listSectionMargins(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF","displayName":"View.presentationDetents(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF","displayName":"View.presentationDetents(_:selection:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF","displayName":"View.presentationDragIndicator(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF","displayName":"View.presentationBackgroundInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF","displayName":"View.presentationCompactAdaptation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF","displayName":"View.presentationCompactAdaptation(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF","displayName":"View.presentationCornerRadius(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF","displayName":"View.presentationContentInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF","displayName":"View.presentationPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF","displayName":"View.buttonRepeatBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF","displayName":"View.contextMenu(forSelectionType:menu:primaryAction:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF","displayName":"View.gesture(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF","displayName":"View.fileMover(isPresented:file:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF","displayName":"View.fileMover(isPresented:files:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF","displayName":"View.fileMover(isPresented:file:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF","displayName":"View.fileMover(isPresented:files:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF","displayName":"View.tabViewCustomization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentType:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentType:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF","displayName":"View.fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF","displayName":"View.fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF","displayName":"View.accessibilityAddTraits(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF","displayName":"View.accessibilityRemoveTraits(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF","displayName":"View.interactiveDismissDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF","displayName":"View.accessibilityElement(children:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF","displayName":"View.labeledContentStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF","displayName":"View.onTapGesture(count:coordinateSpace:inputKinds:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF","displayName":"View.presentationBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.presentationBackground(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.labelReservedIconWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.labelIconToTitleSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF","displayName":"View.badgeProminence(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF","displayName":"View.accessibilityZoomAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF","displayName":"View.accessibilityActivationPoint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF","displayName":"View.accessibilityActivationPoint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF","displayName":"View.accessibilityActivationPoint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF","displayName":"View.accessibilityActivationPoint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF","displayName":"View.defaultAdaptableTabBarPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF","displayName":"View.defaultTabBarPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF","displayName":"View.focusedObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF","displayName":"View.focusedObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF","displayName":"View.focusedSceneObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF","displayName":"View.focusedSceneObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF","displayName":"View.accessibilityAction(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF","displayName":"View.accessibilityAction(action:label:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF","displayName":"View.accessibilityActions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF","displayName":"View.listRowBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF","displayName":"View.labelStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF","displayName":"View.onDrag(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF","displayName":"View.onDrag(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF","displayName":"View.draggable(containerItemID:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF","displayName":"View.draggable(_:item:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF","displayName":"View.draggable(_:containerNamespace:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF","displayName":"View.dragContainerSelection(_:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF","displayName":"View.draggable(_:id:item:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF","displayName":"View.draggable(_:id:containerNamespace:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF","displayName":"View.dragContainer(for:itemID:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF","displayName":"View.dragContainer(for:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF","displayName":"View.dragContainer(for:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF","displayName":"View.dragContainer(for:itemID:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF","displayName":"View.draggable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF","displayName":"View.draggable(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF","displayName":"View.toolbarVerticalBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF","displayName":"View.datePickerStyle(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo5BadgeV","target":"s:7SwiftUI4ViewP","targetFallback":"SwiftUICore.View"},{"kind":"conformsTo","source":"s:9SwiftDemo5BadgeV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5titleSSvp","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5countSivp","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV4bodyQrvp","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewP4body4BodyQzvp","displayName":"View.body"}},{"kind":"requirementOf","source":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","target":"s:9SwiftDemo7GreeterP"},{"kind":"conformsTo","source":"s:9SwiftDemo0B0C","target":"s:9SwiftDemo7GreeterP"},{"kind":"memberOf","source":"s:9SwiftDemo0B0CACycfc","target":"s:9SwiftDemo0B0C"},{"kind":"memberOf","source":"s:9SwiftDemo0B0C5greet4nameS2S_tF","target":"s:9SwiftDemo0B0C","sourceOrigin":{"identifier":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","displayName":"Greeter.greet(name:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1xSdvp","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1ySdvp","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1x1yACSd_Sdtcfc","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO7vanillayA2CmF","target":"s:9SwiftDemo6FlavorO"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO9chocolateyA2CmF","target":"s:9SwiftDemo6FlavorO"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:9SwiftDemo0B0C5greet4name5timesS2S_SitF","target":"s:9SwiftDemo0B0C"},{"kind":"memberOf","source":"s:9SwiftDemo0B0C7versionSSvpZ","target":"s:9SwiftDemo0B0C"},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV11descriptionSSvp","target":"s:9SwiftDemo5PointV","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"memberOf","source":"s:9SwiftDemo5PointV6lengthSdvp","target":"s:9SwiftDemo5PointV"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO11descriptionSSvp","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO5solidyA2EmF","target":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO6dashedyA2EmF","target":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp","target":"s:9SwiftDemo7PolygonC7MetricsV"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc","target":"s:9SwiftDemo7PolygonC7MetricsV"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5styleAC5StyleOvp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:11Observation10ObservableP","targetFallback":"Observation.Observable"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC7celsiusSdvp","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC5labelSSvp","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatCACycfc","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC4warm2byySd_tF","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC9warmLater2byySd_tF","target":"s:9SwiftDemo10ThermostatC"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP4nameSSvp","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP11punctuationSSvp","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP5greetyS2SF","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP5resetyyF","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo6ScorerP5scoreyS2iKF","target":"s:9SwiftDemo6ScorerP"},{"kind":"conformsTo","source":"s:9SwiftDemo12RankedScorerP","target":"s:9SwiftDemo6ScorerP"},{"kind":"requirementOf","source":"s:9SwiftDemo12RankedScorerP4rankSiSgvp","target":"s:9SwiftDemo12RankedScorerP"},{"kind":"memberOf","source":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","target":"s:9SwiftDemo8GreetingP"},{"kind":"memberOf","source":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","displayName":"Greeting.shout(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo14FormalGreetingC","target":"s:9SwiftDemo8GreetingP"},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC4nameSSvp","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP4nameSSvp","displayName":"Greeting.name"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC11punctuationSSvp","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP11punctuationSSvp","displayName":"Greeting.punctuation"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc","target":"s:9SwiftDemo14FormalGreetingC"},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC5greetyS2SF","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP5greetyS2SF","displayName":"Greeting.greet(_:)"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC5resetyyF","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP5resetyyF","displayName":"Greeting.reset()"}},{"kind":"conformsTo","source":"s:9SwiftDemo14DoublingScorerV","target":"s:9SwiftDemo6ScorerP"},{"kind":"memberOf","source":"s:9SwiftDemo14DoublingScorerVACycfc","target":"s:9SwiftDemo14DoublingScorerV"},{"kind":"memberOf","source":"s:9SwiftDemo14DoublingScorerV5scoreyS2iF","target":"s:9SwiftDemo14DoublingScorerV","sourceOrigin":{"identifier":"s:9SwiftDemo6ScorerP5scoreyS2iKF","displayName":"Scorer.score(_:)"}},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderCACycfc","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderC5greetySSSgSSF","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"conformsTo","source":"s:9SwiftDemo5ShapeP","target":"s:9SwiftDemo7GreeterP"},{"kind":"requirementOf","source":"s:9SwiftDemo5ShapeP4areaSdvp","target":"s:9SwiftDemo5ShapeP"},{"kind":"requirementOf","source":"s:9SwiftDemo5ShapeP5sidesSivpZ","target":"s:9SwiftDemo5ShapeP"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4nameSSvp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC11vertexCountSivp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC6sharedACvpZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4nameACSgSS_tcfc","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale2byySd_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale2byySi_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4makeACyFZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC8describeySSACSgFZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonCyAA5PointVSicip","target":"s:9SwiftDemo7PolygonC"},{"kind":"conformsTo","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo5ShapeP"},{"kind":"conformsTo","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo7GreeterP"},{"kind":"inheritsFrom","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4sideSdvp","target":"s:9SwiftDemo6SquareC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4sideACSd_tcfc","target":"s:9SwiftDemo6SquareC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4areaSdvp","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo5ShapeP4areaSdvp","displayName":"Shape.area"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5sidesSivpZ","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo5ShapeP5sidesSivpZ","displayName":"Shape.sides"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5greet4nameS2S_tF","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","displayName":"Greeter.greet(name:)"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5scale2byySd_tF","target":"s:9SwiftDemo6SquareC"},{"kind":"overrides","source":"s:9SwiftDemo6SquareC5scale2byySd_tF","target":"s:9SwiftDemo7PolygonC5scale2byySd_tF"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4rainyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4snowyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4noneyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO","target":"s:9SwiftDemo10ShapeErrorO","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO11invalidSideyACSdcACmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO12tooManySidesyACSi_SitcACmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO7unknownyA2CmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO6lengthyACSdcACmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4areayACSd_SdtcACmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4noneyA2CmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp","target":"s:9SwiftDemo11MeasurementO4UnitV"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc","target":"s:9SwiftDemo11MeasurementO4UnitV"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO6isNoneSbvp","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5innerAA5PointVvp","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5outerAA5PointVvp","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV6expand2byySd_tF","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV1poiyA2C_ACtFZ","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF","displayName":"Actor.withSerialExecutor(_:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF","displayName":"Actor.withSerialExecutor(_:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF","displayName":"Actor.preconditionIsolated(_:file:line:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF","displayName":"Actor.assertIsolated(_:file:line:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF","displayName":"Actor.assumeIsolated(_:file:line:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:ScA","targetFallback":"_Concurrency.Actor"},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC5valueSivp","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC4stepSivp","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterCACycfc","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC9incrementSiyF","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC5labelSSyF","target":"s:9SwiftDemo7CounterC"},{"kind":"conformsTo","source":"s:9SwiftDemo6CanvasC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo6CanvasCACycfc","target":"s:9SwiftDemo6CanvasC"},{"kind":"memberOf","source":"s:9SwiftDemo6CanvasC4drawyyAA5Shape_pF","target":"s:9SwiftDemo6CanvasC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderCACycfc","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4eachyyySiXEF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC6updateyyAA5PointVzF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC10modernOnlyyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC11legacyFetchyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC8oldFetchyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV","target":"s:9SwiftDemo14CountdownErrorV","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC9liveCountSivpZ","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC2idSivp","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC2idACSi_tcfc","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC4sameACyF","target":"s:9SwiftDemo7TrackerC"},{"kind":"conformsTo","source":"s:9SwiftDemo7PaletteC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC7strokesSivp","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteCACycfc","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC6strokeSiyF","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC11strokeLaterSiyYaF","target":"s:9SwiftDemo7PaletteC"},{"kind":"conformsTo","source":"s:9SwiftDemo8NotifierC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo8NotifierC","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierCACycfc","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC5countSivp","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC9subscribeyyySSYbcF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC7publishyySSF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC12publishLateryySSF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC5clearyyF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO6numberyACSdcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO3sumyA2C_ACtcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO6negateyA2CcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO5valueSdvp","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO7trackeryAcA7TrackerCcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5pointyAcA5PointVcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO6flavoryAcA6FlavorOcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5maybeyACSiSgcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5namesyACSaySSGcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO3runyACyyccACmF","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO4idleyA2CmF","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV2idSivp","target":"s:9SwiftDemo3JobO6TicketV"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV2idAESi_tcfc","target":"s:9SwiftDemo3JobO6TicketV"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC5valueSivp","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchCACycfc","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC4echoyS2iFZ","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC4echoyS2iF","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV","target":"s:9SwiftDemo12ParseFailureV","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo12ParseFailureV4textSSvp","target":"s:9SwiftDemo12ParseFailureV"},{"kind":"memberOf","source":"s:9SwiftDemo12ParseFailureV11descriptionSSvp","target":"s:9SwiftDemo12ParseFailureV","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"c:objc(pl)NSObject","targetFallback":"ObjectiveC.NSObjectProtocol"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s7CVarArgP","targetFallback":"Swift.CVarArg"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s28CustomDebugStringConvertibleP","targetFallback":"Swift.CustomDebugStringConvertible"},{"kind":"inheritsFrom","source":"c:@M@SwiftDemo@objc(cs)Note","target":"c:objc(cs)NSObject","targetFallback":"ObjectiveC.NSObject"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4textSSvp","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4textACSS_tcfc","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4tagsShySSGvp","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC6taggedyACSSF","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC5blankACyFZ","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"c:@M@SwiftDemo@objc(cs)Note(py)revision","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)NSCoding","targetFallback":"Foundation.NSCoding"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAppearance","targetFallback":"UIKit.UIAppearance"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAppearanceContainer","targetFallback":"UIKit.UIAppearanceContainer"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIDynamicItem","targetFallback":"UIKit.UIDynamicItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UITraitEnvironment","targetFallback":"UIKit.UITraitEnvironment"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UICoordinateSpace","targetFallback":"UIUtilities.UICoordinateSpace"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusItem","targetFallback":"UIKit.UIFocusItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusEnvironment","targetFallback":"UIKit.UIFocusEnvironment"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusItemContainer","targetFallback":"UIKit.UIFocusItemContainer"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CALayerDelegate","targetFallback":"QuartzCore.CALayerDelegate"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIResponderStandardEditActions","targetFallback":"UIKit.UIResponderStandardEditActions"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)NSObject","targetFallback":"ObjectiveC.NSObjectProtocol"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s7CVarArgP","targetFallback":"Swift.CVarArg"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s28CustomDebugStringConvertibleP","targetFallback":"Swift.CustomDebugStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIActivityItemsConfigurationProviding","targetFallback":"UIKit.UIActivityItemsConfigurationProviding"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIPasteConfigurationSupporting","targetFallback":"UIKit.UIPasteConfigurationSupporting"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIUserActivityRestoring","targetFallback":"UIKit.UIUserActivityRestoring"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:5UIKit23UITraitChangeObservableP","targetFallback":"UIKit.UITraitChangeObservable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIPopoverPresentationControllerSourceItem","targetFallback":"UIKit.UIPopoverPresentationControllerSourceItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UILargeContentViewerItem","targetFallback":"UIKit.UILargeContentViewerItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAccessibilityIdentification","targetFallback":"UIKit.UIAccessibilityIdentification"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CMBodyIdentifiable","targetFallback":"CoreMotion.CMBodyIdentifiable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CLBodyIdentifiable","targetFallback":"CoreLocation.CLBodyIdentifiable"},{"kind":"inheritsFrom","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(cs)UIView","targetFallback":"UIKit.UIView"},{"kind":"memberOf","source":"s:9SwiftDemo11CounterViewC5countSivp","target":"c:@M@SwiftDemo@objc(cs)CounterView"},{"kind":"memberOf","source":"s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF","target":"c:@M@SwiftDemo@objc(cs)CounterView"}]} \ No newline at end of file +{"metadata":{"formatVersion":{"major":0,"minor":6,"patch":0},"generator":"Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)"},"module":{"name":"SwiftDemo","platform":{"architecture":"arm64","environment":"simulator","vendor":"apple","operatingSystem":{"name":"ios","minimumVersion":{"major":15,"minor":0}}}},"symbols":[{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge"],"names":{"title":"Badge","navigator":[{"kind":"identifier","spelling":"Badge"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Badge"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Badge"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":4,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:)"],"names":{"title":"focusedValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the focused value for the given object type."},{"text":""},{"text":"- Important: This initializer only accepts objects conforming to the"},{"text":" `Observable` protocol. For reading environment objects that conform to"},{"text":" `ObservableObject`, use `focusedObject(_:)`, instead."},{"text":""},{"text":"To read this value, use the `FocusedValue` property wrapper."},{"text":""},{"text":"- Parameter object: The object to read the focus value for."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:)"],"names":{"title":"focusedSceneValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the focused value for the given object type at a scene-wide scope."},{"text":""},{"text":"- Important: This initializer only accepts objects conforming to the"},{"text":" `Observable` protocol. For reading environment objects that conform to"},{"text":" `ObservableObject`, use `focusedObject(_:)`, instead."},{"text":""},{"text":"To read this value, use the `FocusedValue` property wrapper."},{"text":""},{"text":"- Parameter object: The object to read the focus value for."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(for:edges:alignment:)"],"names":{"title":"contentMargins(for:edges:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Insets the content of this view by a content margin guide."},{"text":""},{"text":"Use this modifier to lay a view out against a system metric, like"},{"text":"the margins of the container it appears in:"},{"text":""},{"text":" NavigationStack {"},{"text":" AlbumGrid()"},{"text":" .contentMargins(for: .container, edges: .horizontal)"},{"text":" }"},{"text":""},{"text":"The view is proposed the size it would otherwise receive, and is"},{"text":"inset by the value of `guide` when it's placed."},{"text":""},{"text":"A view that doesn't fill the size it was proposed is positioned"},{"text":"within the inset bounds using `alignment`. Here, a compose button"},{"text":"sits in the bottom trailing corner of the margins of its container:"},{"text":""},{"text":" ZStack {"},{"text":" MessageList()"},{"text":" ComposeButton()"},{"text":" .contentMargins("},{"text":" for: .container, alignment: .bottomTrailing)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - guide: The guide that provides the insets."},{"text":" - edges: The edges to inset, any edges not in this set are"},{"text":" unchanged, even when `guide` provides a value for them."},{"text":" - alignment: The alignment of the view within the inset bounds."},{"text":" Most alignment values have no apparent effect when the view"},{"text":" fills the size it was proposed."},{"text":""},{"text":"- Returns: A view inset on `edges` by `guide`."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"guide","declarationFragments":[{"kind":"identifier","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginGuide","preciseIdentifier":"s:7SwiftUI18ContentMarginGuideV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","offset(_:)"],"names":{"title":"offset(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Offset this view by the horizontal and vertical amount specified in the"},{"text":"offset parameter."},{"text":""},{"text":"Use `offset(_:)` to shift the displayed contents by the amount"},{"text":"specified in the `offset` parameter."},{"text":""},{"text":"The original dimensions of the view aren't changed by offsetting the"},{"text":"contents; in the example below the gray border drawn by this view"},{"text":"surrounds the original position of the text:"},{"text":""},{"text":" Text(\"Offset by passing CGSize()\")"},{"text":" .border(Color.green)"},{"text":" .offset(CGSize(width: 20, height: 25))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view that offset from its original position a"},{"text":"CGPoint to specify the x and y offset.](SwiftUI-View-offset.png)"},{"text":""},{"text":"- Parameter offset: The distance to offset this view."},{"text":""},{"text":"- Returns: A view that offsets this view by `offset`."}]},"functionSignature":{"parameters":[{"name":"offset","declarationFragments":[{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"offset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","offset(x:y:)"],"names":{"title":"offset(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Offset this view by the specified horizontal and vertical distances."},{"text":""},{"text":"Use `offset(x:y:)` to shift the displayed contents by the amount"},{"text":"specified in the `x` and `y` parameters."},{"text":""},{"text":"The original dimensions of the view aren't changed by offsetting the"},{"text":"contents; in the example below the gray border drawn by this view"},{"text":"surrounds the original position of the text:"},{"text":""},{"text":" Text(\"Offset by passing horizontal & vertical distance\")"},{"text":" .border(Color.green)"},{"text":" .offset(x: 20, y: 50)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view that offset from its original position"},{"text":"using and x and y offset.](swiftui-offset-xy.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: The horizontal distance to offset this view."},{"text":" - y: The vertical distance to offset this view."},{"text":""},{"text":"- Returns: A view that offsets this view by `x` and `y`."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"offset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fixedSize(horizontal:vertical:)"],"names":{"title":"fixedSize(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Fixes this view at its ideal size in the specified dimensions."},{"text":""},{"text":"This function behaves like ``View/fixedSize()``, except with"},{"text":"`fixedSize(horizontal:vertical:)` the fixing of the axes can be"},{"text":"optionally specified in one or both dimensions. For example, if you"},{"text":"horizontally fix a text view before wrapping it in the frame view,"},{"text":"you're telling the text view to maintain its ideal _width_. The view"},{"text":"calculates this to be the space needed to represent the entire string."},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .fixedSize(horizontal: true, vertical: false)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"This can result in the view exceeding the parent's bounds, which may or"},{"text":"may not be the effect you want."},{"text":""},{"text":"![A screenshot showing a text view exceeding the bounds of its"},{"text":"parent.](SwiftUI-View-fixedSize-3.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - horizontal: A Boolean value that indicates whether to fix the width"},{"text":" of the view."},{"text":" - vertical: A Boolean value that indicates whether to fix the height"},{"text":" of the view."},{"text":""},{"text":"- Returns: A view that fixes this view at its ideal size in the"},{"text":" dimensions specified by `horizontal` and `vertical`."}]},"functionSignature":{"parameters":[{"name":"horizontal","declarationFragments":[{"kind":"identifier","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"vertical","declarationFragments":[{"kind":"identifier","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fixedSizeQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fixedSize()"],"names":{"title":"fixedSize()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Fixes this view at its ideal size."},{"text":""},{"text":"During the layout of the view hierarchy, each view proposes a size to"},{"text":"each child view it contains. If the child view doesn't need a fixed size"},{"text":"it can accept and conform to the size offered by the parent."},{"text":""},{"text":"For example, a ``Text`` view placed in an explicitly sized frame wraps"},{"text":"and truncates its string to remain within its parent's bounds:"},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing the text in a text view contained within its"},{"text":"parent.](SwiftUI-View-fixedSize-1.png)"},{"text":""},{"text":"The `fixedSize()` modifier can be used to create a view that maintains"},{"text":"the *ideal size* of its children both dimensions:"},{"text":""},{"text":" Text(\"A single line of text, too long to fit in a box.\")"},{"text":" .fixedSize()"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"This can result in the view exceeding the parent's bounds, which may or"},{"text":"may not be the effect you want."},{"text":""},{"text":"![A screenshot showing a text view exceeding the bounds of its"},{"text":"parent.](SwiftUI-View-fixedSize-2.png)"},{"text":""},{"text":"You can think of `fixedSize()` as the creation of a *counter proposal*"},{"text":"to the view size proposed to a view by its parent. The ideal size of a"},{"text":"view, and the specific effects of `fixedSize()` depends on the"},{"text":"particular view and how you have configured it."},{"text":""},{"text":"To create a view that fixes the view's size in either the horizontal or"},{"text":"vertical dimensions, see ``View/fixedSize(horizontal:vertical:)``."},{"text":""},{"text":"- Returns: A view that fixes this view at its ideal size."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fixedSize"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","rotationEffect(_:anchor:)"],"names":{"title":"rotationEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotationEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Rotates a view's rendered output in two dimensions around the specified"},{"text":"point."},{"text":""},{"text":"This modifier rotates the view's content around the axis that points"},{"text":"out of the xy-plane. It has no effect on the view's frame."},{"text":"The following code rotates text by 22˚ and then draws a border around"},{"text":"the modified view to show that the frame remains unchanged by the"},{"text":"rotation modifier:"},{"text":""},{"text":" Text(\"Rotation by passing an angle in degrees\")"},{"text":" .rotationEffect(.degrees(22))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of text and a wide grey box. The text says Rotation by passing an angle in degrees. The baseline of the text is rotated clockwise by 22 degrees relative to the box. The center of the box and the center of the text are aligned.](SwiftUI-View-rotationEffect)"},{"text":""},{"text":"- Parameters:"},{"text":" - angle: The angle by which to rotate the view."},{"text":" - anchor: A unit point within the view about which to"},{"text":" perform the rotation. The default value is ``UnitPoint/center``."},{"text":"- Returns: A view with rotated content."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotationEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:isEnabled:)"],"names":{"title":"hoverEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view, while providing a way to"},{"text":"conditionally enable or disable it."},{"text":""},{"text":"By default, ``CustomHoverEffect/automatic`` is used. You can control"},{"text":"the behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The hover effect to apply to this view."},{"text":" - isEnabled: Whether the hover effect is enabled or not."},{"text":"- Returns: A view with the hover effect applied."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomHoverEffect","rhs":"CustomHoverEffect","rhsPrecise":"s:7SwiftUI17CustomHoverEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:)"],"names":{"title":"hoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view."},{"text":""},{"text":"By default, ``HoverEffect/automatic`` is used. You can control the"},{"text":"behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The effect to apply to this view."},{"text":"- Returns: A new view that applies a hover effect to `self`."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffect(_:isEnabled:)"],"names":{"title":"hoverEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hover effect to this view."},{"text":""},{"text":"By default, ``HoverEffect/automatic`` is used. You can control the"},{"text":"behavior of the automatic effect with the"},{"text":"``View/defaultHoverEffect(_:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - effect: The effect to apply to this view."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":"- Returns: A new view that applies a hover effect to `self`."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultHoverEffect(_:)"],"names":{"title":"defaultHoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default hover effect to use for views within this view."},{"text":""},{"text":"Use this modifier to set a specific hover effect for all views with the"},{"text":"``View/hoverEffect(_:)`` modifier applied within a view. The default"},{"text":"effect is typically used when no ``HoverEffect`` was provided or if"},{"text":"``HoverEffect/automatic`` is specified."},{"text":""},{"text":"For example, this view uses ``HoverEffect/highlight`` for both the red"},{"text":"and green Color views:"},{"text":""},{"text":" HStack {"},{"text":" Color.red.hoverEffect()"},{"text":" Color.green.hoverEffect()"},{"text":" }"},{"text":" .defaultHoverEffect(.highlight)"},{"text":""},{"text":"This also works for customizing the default hover effect in views like"},{"text":"``Button``s when using a SwiftUI-defined style like"},{"text":"``ButtonStyle/bordered``, which can provide a hover effect by default."},{"text":"For example, this view replaces the hover effect for a ``Button`` with"},{"text":"``HoverEffect/highlight``:"},{"text":""},{"text":" Button(\"Next\") {}"},{"text":" // perform action"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":" .defaultHoverEffect(.highlight)"},{"text":""},{"text":"Use a `nil` effect to indicate that the default hover effect should not"},{"text":"be modified."},{"text":""},{"text":"- Parameter effect: The default hover effect to use for views within"},{"text":" this view."},{"text":"- Returns: A view that uses this effect as the default hover effect."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HoverEffect","preciseIdentifier":"s:7SwiftUI11HoverEffectV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultHoverEffect(_:)"],"names":{"title":"defaultHoverEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default hover effect to use within this view hierarchy."},{"text":""},{"text":"Use this modifier to set a specific hover effect for all views with the"},{"text":"``View/hoverEffect(_:)`` modifier applied to them within a view"},{"text":"hierarchy. The default effect is typically used when no"},{"text":"``CustomHoverEffect`` was provided or if ``CustomHoverEffect/automatic``"},{"text":"is specified."},{"text":""},{"text":"For example, this view applies a custom effect named `FadeInHoverEffect`"},{"text":"for both the red and green Color views:"},{"text":""},{"text":""},{"text":" HStack {"},{"text":" Color.red.hoverEffect()"},{"text":" Color.green.hoverEffect()"},{"text":" }"},{"text":" .defaultHoverEffect(FadeInHoverEffect())"},{"text":""},{"text":""},{"text":"This also works for customizing the default hover effect in views like"},{"text":"``Button``s when using a SwiftUI-defined style like"},{"text":"``ButtonStyle/bordered``, which can provide a hover effect by default."},{"text":"For example, this view replaces the hover effect for a ``Button`` with"},{"text":"a `FadeInHoverEffect` effect:"},{"text":""},{"text":""},{"text":" Button(\"Next\") {"},{"text":" // perform action"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":" .defaultHoverEffect(FadeInHoverEffect())"},{"text":""},{"text":""},{"text":"- Parameter effect: The default hover effect to use within this view"},{"text":" hierarchy."},{"text":"- Returns: A view that uses `effect` as the default hover effect."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomHoverEffect","rhs":"CustomHoverEffect","rhsPrecise":"s:7SwiftUI17CustomHoverEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultHoverEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomHoverEffect","preciseIdentifier":"s:7SwiftUI17CustomHoverEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hoverEffectDisabled(_:)"],"names":{"title":"hoverEffectDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a condition that controls whether this view can display hover"},{"text":"effects."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button does not display a hover"},{"text":"effect because the outer `hoverEffectDisabled(_:)` modifier overrides"},{"text":"the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Press\") {}"},{"text":" .hoverEffectDisabled(false)"},{"text":" }"},{"text":" .hoverEffectDisabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether this view"},{"text":" can display hover effects."},{"text":""},{"text":"- Returns: A view that controls whether hover effects can be displayed"},{"text":" in this view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hoverEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundColor(_:)"],"names":{"title":"foregroundColor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundColor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the color of the foreground elements displayed by this view."},{"text":""},{"text":"- Parameter color: The foreground color to use when displaying this"},{"text":" view. Pass `nil` to remove any custom foreground color and to allow"},{"text":" the system or the container to provide its own foreground color."},{"text":" If a container-specific override doesn't exist, the system uses"},{"text":" the primary color."},{"text":""},{"text":"- Returns: A view that uses the foreground color you supply."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundColor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"foregroundStyle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accentColor(_:)"],"names":{"title":"accentColor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the accent color for this view and the views it contains."},{"text":""},{"text":"Use `accentColor(_:)` when you want to apply a broad theme color to"},{"text":"your app's user interface. Some styles of controls use the accent color"},{"text":"as a default tint color."},{"text":""},{"text":"> Note: In macOS, SwiftUI applies customization of the accent color"},{"text":"only if the user chooses Multicolor under General > Accent color"},{"text":"in System Preferences."},{"text":""},{"text":"In the example below, the outer ``VStack`` contains two child views. The"},{"text":"first is a button with the default accent color. The second is a ``VStack``"},{"text":"that contains a button and a slider, both of which adopt the purple"},{"text":"accent color of their containing view. Note that the ``Text`` element"},{"text":"used as a label alongside the `Slider` retains its default color."},{"text":""},{"text":" VStack(spacing: 20) {"},{"text":" Button(action: {}) {"},{"text":" Text(\"Regular Button\")"},{"text":" }"},{"text":" VStack {"},{"text":" Button(action: {}) {"},{"text":" Text(\"Accented Button\")"},{"text":" }"},{"text":" HStack {"},{"text":" Text(\"Accented Slider\")"},{"text":" Slider(value: $sliderValue, in: -100...100, step: 0.1)"},{"text":" }"},{"text":" }"},{"text":" .accentColor(.purple)"},{"text":" }"},{"text":""},{"text":"![A VStack showing two child views: one VStack containing a default"},{"text":"accented button, and a second VStack where the VStack has a purple"},{"text":"accent color applied. The accent color modifies the enclosed button and"},{"text":"slider, but not the color of a Text item used as a label for the"},{"text":"slider.](View-accentColor-1)"},{"text":""},{"text":"- Parameter accentColor: The color to use as an accent color. Set the"},{"text":" value to `nil` to use the inherited accent color."}]},"functionSignature":{"parameters":[{"name":"accentColor","declarationFragments":[{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accentColor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"accentColor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the asset catalog's accent color or View.tint(_:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyframeAnimator(initialValue:trigger:content:keyframes:)"],"names":{"title":"keyframeAnimator(initialValue:trigger:content:keyframes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Plays the given keyframes when the given trigger value changes, updating"},{"text":"the view using the modifiers you apply in `body`."},{"text":""},{"text":"Note that the `content` closure will be updated on every frame while"},{"text":"animating, so avoid performing any expensive operations directly within"},{"text":"`content`."},{"text":""},{"text":"If the trigger value changes while animating, the `keyframes` closure"},{"text":"will be called with the current interpolated value, and the keyframes"},{"text":"that you return define a new animation that replaces the old one. The"},{"text":"previous velocity will be preserved, so cubic or spring keyframes will"},{"text":"maintain continuity from the previous animation if they do not specify"},{"text":"a custom initial velocity."},{"text":""},{"text":"When a keyframe animation finishes, the animator will remain at the"},{"text":"end value, which becomes the initial value for the next animation."},{"text":""},{"text":"- Parameters:"},{"text":" - initialValue: The initial value that the keyframes will animate"},{"text":" from."},{"text":" - trigger: A value to observe for changes."},{"text":" - content: A content builder closure that takes two parameters. The first"},{"text":" parameter is a proxy value representing the modified view. The"},{"text":" second parameter is the interpolated value generated by the"},{"text":" keyframes."},{"text":" - keyframes: Keyframes defining how the value changes over time. The"},{"text":" current value of the animator is the single argument, which is"},{"text":" equal to `initialValue` when the view first appears, then is equal"},{"text":" to the end value of the previous keyframe animation on subsequent"},{"text":" calls."}]},"functionSignature":{"parameters":[{"name":"initialValue","declarationFragments":[{"kind":"identifier","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"keyframes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Value","rhs":"(some Keyframes).Value"},{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"some Keyframes","rhs":"Keyframes","rhsPrecise":"s:7SwiftUI9KeyframesP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyframeAnimator(initialValue:repeating:content:keyframes:)"],"names":{"title":"keyframeAnimator(initialValue:repeating:content:keyframes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Loops the given keyframes continuously, updating"},{"text":"the view using the modifiers you apply in `body`."},{"text":""},{"text":"Note that the `content` closure will be updated on every frame while"},{"text":"animating, so avoid performing any expensive operations directly within"},{"text":"`content`."},{"text":""},{"text":"- Parameters:"},{"text":" - initialValue: The initial value that the keyframes will animate"},{"text":" from."},{"text":" - repeating: Whether the keyframes are currently repeating. If false,"},{"text":" the value at the beginning of the keyframe timeline will be"},{"text":" provided to the content closure."},{"text":" - content: A content builder closure that takes two parameters. The first"},{"text":" parameter is a proxy value representing the modified view. The"},{"text":" second parameter is the interpolated value generated by the"},{"text":" keyframes."},{"text":" - keyframes: Keyframes defining how the value changes over time. The"},{"text":" current value of the animator is the single argument, which is"},{"text":" equal to `initialValue` when the view first appears, then is equal"},{"text":" to the end value of the previous keyframe animation on subsequent"},{"text":" calls."}]},"functionSignature":{"parameters":[{"name":"initialValue","declarationFragments":[{"kind":"identifier","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]},{"name":"repeating","declarationFragments":[{"kind":"identifier","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"keyframes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframes"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Value","rhs":"(some Keyframes).Value"},{"kind":"conformance","lhs":"some Keyframes","rhs":"Keyframes","rhsPrecise":"s:7SwiftUI9KeyframesP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyframeAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"initialValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"repeating"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"KeyframesBuilder","preciseIdentifier":"s:7SwiftUI16KeyframesBuilderV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"keyframes"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Keyframes","preciseIdentifier":"s:7SwiftUI9KeyframesP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:)"],"names":{"title":"padding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a different padding amount to each edge of this view."},{"text":""},{"text":"Use this modifier to add a different amount of padding on each edge"},{"text":"of a view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by different amounts on each edge.\")"},{"text":" .padding(EdgeInsets(top: 10, leading: 20, bottom: 40, trailing: 0))"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by different amounts on each edge."},{"text":"Its border is gray, and there are different amounts of space between"},{"text":"the string and its border on each edge: 40 points on the bottom, 10"},{"text":"points on the top, 20 points on the leading edge, and no space on"},{"text":"the trailing edge."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-3-iOS)"},{"text":""},{"text":"To pad a view on specific edges with equal padding for all padded"},{"text":"edges, use ``View/padding(_:_:)``. To pad all edges of a view"},{"text":"equally, use ``View/padding(_:)``."},{"text":""},{"text":"- Parameter insets: An ``EdgeInsets`` instance that contains"},{"text":" padding amounts for each edge."},{"text":""},{"text":"- Returns: A view that's padded by different amounts on each edge."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:_:)"],"names":{"title":"padding(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an equal padding amount to specific edges of this view."},{"text":""},{"text":"Use this modifier to add a specified amount of padding to one or more"},{"text":"edges of the view. Indicate the edges to pad by naming either a single"},{"text":"value from ``Edge/Set``, or by specifying an"},{"text":""},{"text":"that contains edge values:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by 20 points on the bottom and trailing edges.\")"},{"text":" .padding([.bottom, .trailing], 20)"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by 20 points"},{"text":"on the bottom and trailing edges."},{"text":"Its border is gray, and there are 20 points of space between the bottom"},{"text":"and trailing edges of the string and its border."},{"text":"There's no space between the string and the border on the other edges."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-2-iOS)"},{"text":""},{"text":"You can omit either or both of the parameters. If you omit the `length`,"},{"text":"SwiftUI uses a default amount of padding. If you"},{"text":"omit the `edges`, SwiftUI applies the padding to all edges. Omit both"},{"text":"to add a default padding all the way around a view. SwiftUI chooses a"},{"text":"default amount of padding that's appropriate for the platform and"},{"text":"the presentation context."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text with default padding.\")"},{"text":" .padding()"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The example above looks like this in iOS under typical conditions:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text with default padding."},{"text":"Its border is gray, and there is padding on all sides"},{"text":"between the border and the string it encloses in an amount that's"},{"text":"similar to the height of the text."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-2a-iOS)"},{"text":""},{"text":"To control the amount of padding independently for each edge, use"},{"text":"``View/padding(_:)-6pgqq``. To pad all outside edges of a view by a"},{"text":"specified amount, use ``View/padding(_:)-68shk``."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges to pad for this view. The default"},{"text":" is ``Edge/Set/all``."},{"text":" - length: An amount, given in points, to pad this view on the"},{"text":" specified edges. If you set the value to `nil`, SwiftUI uses"},{"text":" a platform-specific default amount. The default value of this"},{"text":" parameter is `nil`."},{"text":""},{"text":"- Returns: A view that's padded by the specified amount on the"},{"text":" specified edges."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","padding(_:)"],"names":{"title":"padding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a specific padding amount to each edge of this view."},{"text":""},{"text":"Use this modifier to add padding all the way around a view."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Text padded by 10 points on each edge.\")"},{"text":" .padding(10)"},{"text":" .border(.gray)"},{"text":" Text(\"Unpadded text for comparison.\")"},{"text":" .border(.yellow)"},{"text":" }"},{"text":""},{"text":"The order in which you apply modifiers matters. The example above"},{"text":"applies the padding before applying the border to ensure that the"},{"text":"border encompasses the padded region:"},{"text":""},{"text":"![A screenshot of two text strings arranged vertically, each surrounded"},{"text":"by a border, with a small space between the two borders."},{"text":"The first string says Text padded by 10 points on each edge."},{"text":"Its border is gray, and there are 10 points of space on all sides"},{"text":"between the string and its border."},{"text":"The second string says Unpadded text for comparison."},{"text":"Its border is yellow, and there's no space between the string"},{"text":"and its border.](View-padding-1-iOS)"},{"text":""},{"text":"To independently control the amount of padding for each edge, use"},{"text":"``View/padding(_:)-6pgqq``. To pad a select set of edges by the"},{"text":"same amount, use ``View/padding(_:_:)``."},{"text":""},{"text":"- Parameter length: The amount, given in points, to pad this view on all"},{"text":" edges."},{"text":""},{"text":"- Returns: A view that's padded by the amount you specify."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffect(_:in:)"],"names":{"title":"glassEffect(_:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a glass effect to this view."},{"text":""},{"text":"When you use a glass effect, the platform:"},{"text":" - Renders a shape anchored behind this view filled with"},{"text":" the physical glass material"},{"text":" - Applies the foreground effects of the glass over this view."},{"text":""},{"text":"For example, you could add a glass effect to a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .glassEffect()"},{"text":""},{"text":"SwiftUI uses the ``Glass/regular`` variant by default along with"},{"text":"a ``Capsule`` shape."},{"text":""},{"text":"SwiftUI anchors the glass to the view's bounds. For the example"},{"text":"above, the physical glass material fills the entirety of the label's"},{"text":"frame, which includes the padding."},{"text":""},{"text":"You typically use this modifier with a ``GlassEffectContainer``"},{"text":"to combine multiple glass shapes into a single shape that"},{"text":"can morph shapes into one another."}]},"functionSignature":{"parameters":[{"name":"glass","declarationFragments":[{"kind":"identifier","spelling":"glass"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Shape","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"glass"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Glass","preciseIdentifier":"s:7SwiftUI5GlassV"},{"kind":"text","spelling":" = .regular, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":" = DefaultGlassEffectShape()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectTransition(_:)"],"names":{"title":"glassEffectTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a glass effect transition with any"},{"text":"glass effects defined within this view."},{"text":""},{"text":"You use this modifier with the ``View/glassEffect(_:in:)``"},{"text":"view modifier and ``GlassEffectContainer`` view. When used together,"},{"text":"SwiftUI will use the provided transition to apply changes to"},{"text":"the glass effect when you add or remove views with"},{"text":"these effects from the view hierarchy."},{"text":""},{"text":"In the example below, the notepad image will transition into and out"},{"text":"of the pencil image when the isExpanded variable changes."},{"text":""},{"text":" var isExpanded: Bool"},{"text":" @Namespace private var namespace"},{"text":""},{"text":" var body: some View {"},{"text":" GlassEffectContainer(spacing: 10.0) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" Image(systemName: \"pencil\")"},{"text":" .frame(width: 20.0, height: 20.0)"},{"text":" .glassEffect()"},{"text":" .glassEffectID(\"pencil\", in: namespace)"},{"text":""},{"text":" if isExpanded {"},{"text":" Image(systemName: \"note\")"},{"text":" .frame(width: 20.0, height: 20.0)"},{"text":" .glassEffect()"},{"text":" .glassEffectID(\"note\", in: namespace)"},{"text":" .glassEffectTransition(.matchedGeometry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GlassEffectTransition","preciseIdentifier":"s:7SwiftUI21GlassEffectTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onOpenURL(prefersInApp:)"],"names":{"title":"onOpenURL(prefersInApp:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets an `OpenURLAction` that prefers opening URL with an in-app browser."},{"text":"The `handler` closure takes a URL as input, and returns a ``OpenURLAction.Result`` that"},{"text":"indicates the outcome of the action."},{"text":""},{"text":"It's equivalent to calling `.onOpenURL(_:)`"},{"text":""},{"text":" .onOpenURL { _ in"},{"text":" .systemAction(prefersInApp: prefersInApp)"},{"text":" }"},{"text":""},{"text":"- Parameter prefersInApp: A boolean value that specifies whether to prefer to open the URL"},{"text":"with an in-app browser or not."}]},"functionSignature":{"parameters":[{"name":"prefersInApp","declarationFragments":[{"kind":"identifier","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"prefersInApp"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutRatio(_:)"],"names":{"title":"splitArrangementLayoutRatio(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred size ratio for an arrangement view in a split style."},{"text":"Use this modifier when you want to customize the size of the view"},{"text":"compared to its other views in the split layout."},{"text":""},{"text":"The view with the highest `layoutPriority` will be sized first using"},{"text":"its ratio. When a ratio is used on a view that would be greater than"},{"text":"the remaining size of the arrangement view container, the remaining size"},{"text":"will be used. When a ratio of a view would result in the views of the"},{"text":"container not filling its total size, the highest priority view will"},{"text":"fill the remaining size of the container."},{"text":""},{"text":" ArrangementView {"},{"text":" ConversationView()"},{"text":" .splitArrangementLayoutRatio(0.3)"},{"text":" } secondary: {"},{"text":" PhotosView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split.axes(.horizontal))"},{"text":""},{"text":"- Parameter ratio: The ratio the view uses for its preferred size."}]},"functionSignature":{"parameters":[{"name":"ratio","declarationFragments":[{"kind":"identifier","spelling":"ratio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"ratio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)"],"names":{"title":"splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size ratio for an arrangement view in a split style."},{"text":"Use this modifier when you want to customize the size of the view"},{"text":"compared to its other views in the split layout."},{"text":""},{"text":" ArrangementView {"},{"text":" NumpadView()"},{"text":" .splitArrangementLayoutRatio("},{"text":" minHorizontal: 0.2,"},{"text":" idealHorizontal: 0.3,"},{"text":" maxHorizontal: 0.5,"},{"text":" idealVertical: 0.4)"},{"text":" } secondary: {"},{"text":" HistoryView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - minHorizontal: The minimum ratio for horizontal splits."},{"text":" - idealHorizontal: The ideal ratio for horizontal splits."},{"text":" - maxHorizontal: The maximum ratio for horizontal splits."},{"text":" - minVertical: The minimum ratio for vertical splits."},{"text":" - idealVertical: The ideal ratio for vertical splits."},{"text":" - maxVertical: The maximum ratio for vertical splits."}]},"functionSignature":{"parameters":[{"name":"minHorizontal","declarationFragments":[{"kind":"identifier","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHorizontal","declarationFragments":[{"kind":"identifier","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHorizontal","declarationFragments":[{"kind":"identifier","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minVertical","declarationFragments":[{"kind":"identifier","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealVertical","declarationFragments":[{"kind":"identifier","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxVertical","declarationFragments":[{"kind":"identifier","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHorizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxVertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)"],"names":{"title":"splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size constraints for an arrangement view in a split style."},{"text":""},{"text":"Views with higher `layoutPriority` are sized first using their ideal"},{"text":"size, clamped to their min and max values. Width constraints apply to"},{"text":"horizontal arrangements, and height constraints apply to vertical"},{"text":"arrangements."},{"text":""},{"text":" ArrangementView {"},{"text":" PhotoView()"},{"text":" .splitArrangementLayoutSize("},{"text":" minWidth: 200,"},{"text":" idealWidth: 320,"},{"text":" maxWidth: 400)"},{"text":" } secondary: {"},{"text":" InfoView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - minWidth: The minimum width for horizontal splits."},{"text":" - idealWidth: The ideal width for horizontal splits."},{"text":" - maxWidth: The maximum width for horizontal splits."},{"text":" - minHeight: The minimum height for vertical splits."},{"text":" - idealHeight: The ideal height for vertical splits."},{"text":" - maxHeight: The maximum height for vertical splits."}]},"functionSignature":{"parameters":[{"name":"minWidth","declarationFragments":[{"kind":"identifier","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealWidth","declarationFragments":[{"kind":"identifier","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxWidth","declarationFragments":[{"kind":"identifier","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minHeight","declarationFragments":[{"kind":"identifier","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHeight","declarationFragments":[{"kind":"identifier","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHeight","declarationFragments":[{"kind":"identifier","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","splitArrangementFixedLayoutSize(horizontal:vertical:)"],"names":{"title":"splitArrangementFixedLayoutSize(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementFixedLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred size constraint for an arrangement view in a split"},{"text":"style to the ideal size of the view within its container. The"},{"text":"arrangement view will prefer this size, but may resize to a smaller"},{"text":"size depending on the priority of the view."},{"text":""},{"text":" ArrangementView {"},{"text":" ChartView()"},{"text":" .splitArrangementFixedLayoutSize(horizontal: true, vertical: false)"},{"text":" } secondary: {"},{"text":" NewsView()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""},{"text":"- Parameters:"},{"text":" - horizontal: Whether to prefer a fixed width for the view"},{"text":" in a horizontal split."},{"text":" - vertical: Whether to prefer a fixed height for the view"},{"text":" in a vertical split."}]},"functionSignature":{"parameters":[{"name":"horizontal","declarationFragments":[{"kind":"identifier","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"vertical","declarationFragments":[{"kind":"identifier","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"splitArrangementFixedLayoutSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineHeight(_:)"],"names":{"title":"lineHeight(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default line height in the view hierarchy."},{"text":""},{"text":"The default value is `nil`. In that case, SwiftUI automatically chooses"},{"text":"an appropriate line height setting for each context."},{"text":""},{"text":"- SeeAlso: ``EnvironmentValues/lineHeight``"}]},"functionSignature":{"parameters":[{"name":"lineHeight","declarationFragments":[{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineHeight"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"lineHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AttributedString","preciseIdentifier":"s:10Foundation16AttributedStringV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineHeight","preciseIdentifier":"s:10Foundation16AttributedStringV8CoreTextE10LineHeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply a text formatting definition to nested views."},{"text":""},{"text":"Applying a text formatting definition to a ``Text`` or ``TextEditor``"},{"text":"created using the ``Text/init(_:)-(AttributedString)`` or"},{"text":"``TextEditor/init(text:selection:)`` initializer, respectively, makes"},{"text":"sure that any content observable to the user adheres to the constraints"},{"text":"of the formatting definition."},{"text":""},{"text":"You can compose your own definition from an attribute scope and a series"},{"text":"of ``AttributedTextValueConstraint``s:"},{"text":""},{"text":" // MyTextFormattingDefinition.swift"},{"text":""},{"text":" struct MyTextFormattingDefinition: AttributedTextFormattingDefinition {"},{"text":" var body: some AttributedTextFormattingDefinition<"},{"text":" AttributeScopes.SwiftUIAttributes"},{"text":" > {"},{"text":" ValueConstraint("},{"text":" for: \\.underlineStyle,"},{"text":" values: [nil, .single],"},{"text":" default: .single)"},{"text":" MyAttributedTextValueConstraint()"},{"text":" }"},{"text":" }"},{"text":""},{"text":" // MyEditorView.swift"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(MyTextFormattingDefinition())"},{"text":""},{"text":"- Note: A ``Binding`` to the text of a view with an"},{"text":"``AttributedTextFormattingDefinition`` may still contain values that do"},{"text":"not adhere to text formatting definition. E.g., a ``TextEditor`` may"},{"text":"choose to not apply constraints in the text formatting definition to"},{"text":"parts of a bound attributed string that are not visible on screen."},{"text":""},{"text":"To manually enforce constraints, e.g. before serializing text contents,"},{"text":"use the ``AttributedTextFormattingDefinition/constrain(_:)-(AttributedString)``"},{"text":"method."}]},"functionSignature":{"parameters":[{"name":"definition","declarationFragments":[{"kind":"identifier","spelling":"definition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"AttributedTextFormattingDefinition","rhsPrecise":"s:7SwiftUI34AttributedTextFormattingDefinitionP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"definition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributedTextFormattingDefinition","preciseIdentifier":"s:7SwiftUI34AttributedTextFormattingDefinitionP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply an attribute-only text formatting definition to all nested editor"},{"text":"views."},{"text":""},{"text":"Using only an attribute scope for the text formatting definition allows"},{"text":"the editor to use all attributes in the scope, but does not constrain"},{"text":"their values in any way. To constrain what values attribute can have,"},{"text":"use ``attributedTextFormattingDefinition(_:)-81jn6``."},{"text":""},{"text":"This example editor allows using Genmoji, but otherwise is a plain text"},{"text":"editor:"},{"text":""},{"text":" struct MyAttributeScope: AttributeScope {"},{"text":" let adaptiveImageGlyph: AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute"},{"text":" }"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(MyAttributeScope.self)"}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"AttributeScope","rhsPrecise":"s:10Foundation14AttributeScopeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributeScope","preciseIdentifier":"s:10Foundation14AttributeScopeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","attributedTextFormattingDefinition(_:)"],"names":{"title":"attributedTextFormattingDefinition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Apply an attribute-only text formatting definition to all nested editor"},{"text":"views."},{"text":""},{"text":"Using only an attribute scope for the text formatting definition allows"},{"text":"the editor to use all attributes in the scope, but does not constrain"},{"text":"their values in any way. To constrain what values attribute can have,"},{"text":"use ``attributedTextFormattingDefinition(_:)-81jn6``."},{"text":""},{"text":"This example editor allows using Genmoji, but otherwise is a plain text"},{"text":"editor:"},{"text":""},{"text":" struct MyAttributeScope: AttributeScope {"},{"text":" let adaptiveImageGlyph: AttributeScopes.SwiftUIAttributes.AdaptiveImageGlyphAttribute"},{"text":" }"},{"text":""},{"text":" extension AttributeScopes {"},{"text":" var myAttributeScope: MyAttributeScope.Type { MyAttributeScope.self }"},{"text":" }"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(\\.myAttributeScope)"},{"text":""},{"text":"The default configuration uses SwiftUI's attribute scope:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .attributedTextFormattingDefinition(\\.swiftUI)"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"AttributeScope","rhsPrecise":"s:10Foundation14AttributeScopeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"attributedTextFormattingDefinition"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"AttributeScopes","preciseIdentifier":"s:10Foundation15AttributeScopesO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":".Type>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AttributeScope","preciseIdentifier":"s:10Foundation14AttributeScopeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectUnion(id:namespace:)"],"names":{"title":"glassEffectUnion(id:namespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectUnion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates any glass effects defined within this view"},{"text":"to a union with the provided id."},{"text":""},{"text":"You may want the geometries of multiple views to contribute to"},{"text":"a single glass effect shape. In these cases, you can use a"},{"text":"``View/glassEffectUnion(id:namespace:)`` to specify that"},{"text":"a view should contribute to a union of glass effects with"},{"text":"a particular id. All glass effects with the same"},{"text":"shape and glass will be combined into a single shape."},{"text":""},{"text":"In the example below, two shapes are rendered on the leading"},{"text":"and trailing edge each encapsulating two distinct views."},{"text":""},{"text":" enum PlacementGroup: Hashable {"},{"text":" case leading"},{"text":" case trailing"},{"text":" case spacer"},{"text":" }"},{"text":""},{"text":" struct Item: Identifiable {"},{"text":" var id: String"},{"text":" var placement: Placement"},{"text":" }"},{"text":""},{"text":" @State private var items: [Item] = ["},{"text":" Item(id: \"0\", placement: .leading),"},{"text":" Item(id: \"1\", placement: .leading),"},{"text":" Item(id: \"spacer\", placement: .spacer),"},{"text":" Item(id: \"2\", placement: .trailing),"},{"text":" Item(id: \"3\", placement: .trailing)"},{"text":" ]"},{"text":" @Namespace private var namespace"},{"text":""},{"text":" var body: some View {"},{"text":" GlassEffectContainer {"},{"text":" HStack {"},{"text":" ForEach(items) { item in"},{"text":" itemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func itemView(_ item: Item) -> some View {"},{"text":" VStack {"},{"text":" if item.placement == .spacer {"},{"text":" Spacer()"},{"text":" } else {"},{"text":" Text(items.id)"},{"text":" .padding()"},{"text":" .glassEffect()"},{"text":" .glassEffectUnion(id: item.placement, namespace: namespace)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?"}]},{"name":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectUnion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayArrangementEdge(_:)"],"names":{"title":"overlayArrangementEdge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The vertical edge a view in an overlay arrangement occupies when"},{"text":"the arrangement transitions to a vertical layout."},{"text":""},{"text":"Use this modifier to anchor the given view when its overlay layout"},{"text":"transitions into a vertical layout. For example, to move the view"},{"text":"to the top of the arrangement view, use the `top` edge."},{"text":""},{"text":" var body: some View {"},{"text":" ArrangementView {"},{"text":" ControlsView()"},{"text":" .overlayArrangementEdge(.top)"},{"text":" } secondary: {"},{"text":" ContentView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edge: The vertical edge to position the view at."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayArrangementEdge(_:)"],"names":{"title":"overlayArrangementEdge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The horizontal edge a view in an overlay arrangement occupies when"},{"text":"the arrangement transitions to a horizontal layout."},{"text":""},{"text":"Use this modifier to anchor the given view when its overlay layout"},{"text":"transitions into a horizontal layout. For example, to move the view"},{"text":"to the trailing side of the arrangement view, use the `trailing` edge."},{"text":""},{"text":" var body: some View {"},{"text":" ArrangementView {"},{"text":" ControlsView()"},{"text":" .overlayArrangementEdge(.trailing)"},{"text":" } secondary: {"},{"text":" ContentView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edge: The horizontal edge to position the view at."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayArrangementEdge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingDirection(strategy:)"],"names":{"title":"writingDirection(strategy:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default text writing direction strategy in the view"},{"text":"hierarchy."},{"text":""},{"text":"To control the writing direction explicitly, choose the"},{"text":"``Text/WritingDirectionStrategy/layoutBased`` mode and set the"},{"text":"``EnvironmentValues/layoutDirection`` to the appropriate value."}]},"functionSignature":{"parameters":[{"name":"strategy","declarationFragments":[{"kind":"identifier","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"WritingDirectionStrategy","preciseIdentifier":"s:7SwiftUI4TextV24WritingDirectionStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","arrangementViewStyle(_:)"],"names":{"title":"arrangementViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"arrangementViewStyle"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the style for arrangement views within this view."},{"text":""},{"text":"Use this modifier to set a specific style for all arrangement views"},{"text":"within a view:"},{"text":""},{"text":" ArrangementView {"},{"text":" PrimaryContent()"},{"text":" } secondary: {"},{"text":" SecondaryContent()"},{"text":" }"},{"text":" .arrangementViewStyle(.split)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some ArrangementViewStyle","rhs":"ArrangementViewStyle","rhsPrecise":"s:7SwiftUI20ArrangementViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"arrangementViewStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ArrangementViewStyle","preciseIdentifier":"s:7SwiftUI20ArrangementViewStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","multilineTextAlignment(strategy:)"],"names":{"title":"multilineTextAlignment(strategy:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"A modifier for the default text alignment strategy in the view"},{"text":"hierarchy."},{"text":""},{"text":"To control the alignment explicitly at a view level, choose the"},{"text":"``Text/AlignmentStrategy/layoutBased`` mode and set the"},{"text":"``EnvironmentValues/multilineTextAlignment`` to the appropriate value."}]},"functionSignature":{"parameters":[{"name":"strategy","declarationFragments":[{"kind":"identifier","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"strategy"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AlignmentStrategy","preciseIdentifier":"s:7SwiftUI4TextV17AlignmentStrategyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerCornerOffset(_:sizeToFit:)"],"names":{"title":"containerCornerOffset(_:sizeToFit:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerCornerOffset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adjusts the view's layout to avoid the container view's corner insets"},{"text":"for the specified edges."},{"text":""},{"text":"Use this modifier when you would like the view's layout to adapt to"},{"text":"avoid the container view's corner insets for a set of edges. Corner"},{"text":"insets may include pieces of system UI as well as the corner radii for"},{"text":"windows and presentations. When a specific edge is provided the view is"},{"text":"positioned to avoid insets from only the corners of that edge. When"},{"text":"multiple corner edges overlap in the same axis the view will be"},{"text":"positioned off the larger overlapping inset."},{"text":""},{"text":" DrawingCanvasView(canvas: $canvas)"},{"text":" .ignoresSafeArea()"},{"text":" .overlay(alignment: .topLeading) {"},{"text":" DrawingToolPaletteView(tool: $selectedTool)"},{"text":" .containerCornerOffset(.horizontal)"},{"text":" }"},{"text":""},{"text":"The modifier provides a `sizeToFit` parameter to indicate how the"},{"text":"view should be sized when it has been offset from a corner inset."},{"text":"By default, `false` is provided, and the content's size will"},{"text":"be unchanged, only the position of the view's content will be offset."},{"text":"When `true`, the content will attempt to size itself with a proposal"},{"text":"using the remaining size of the original view subtracted from the"},{"text":"overlapping corner insets."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges which the container view should add corner"},{"text":" insets from."},{"text":" - sizeToFit: A flag indicating when this view is offset off a"},{"text":" corner inset whether its size should attempt to fit into its"},{"text":" remaining space of the view or fill its original size."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"sizeToFit","declarationFragments":[{"kind":"identifier","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerCornerOffset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"sizeToFit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","glassEffectID(_:in:)"],"names":{"title":"glassEffectID(_:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectID"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates an identity value to glass effects defined within"},{"text":"this view."},{"text":""},{"text":"You use this modifier with the ``View/glassEffect(_:in:)``"},{"text":"view modifier and ``GlassEffectContainer`` view. When used together,"},{"text":"SwiftUI will use the provided identifier to animate shapes to and from"},{"text":"each other during transitions."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some Hashable & Sendable","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"glassEffectID"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":" & "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(value:)"],"names":{"title":"accessibility(value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibility(label:),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibility(value:)."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityValue(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sliderThumbVisibility(_:)"],"names":{"title":"sliderThumbVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sliderThumbVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the thumb visibility for `Slider`s within this view."},{"text":""},{"text":"Use this modifier to override the default slider thumb"},{"text":"visibility. For example, the code below creates a `Slider` without an"},{"text":"indicator:"},{"text":""},{"text":" @State private var speed = 50.0"},{"text":" @State private var isEditing = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Slider("},{"text":" value: $speed,"},{"text":" in: 0...100,"},{"text":" onEditingChanged: { editing in"},{"text":" isEditing = editing"},{"text":" }"},{"text":" )"},{"text":" .sliderThumbVisibility(.hidden)"},{"text":""},{"text":" Text(\"\\(speed)\")"},{"text":" .foregroundColor(isEditing ? .red : .blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Note: On watchOS, the slider thumb is always visible."},{"text":""},{"text":"- Parameter visibility: The slider thumb visibility to apply."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sliderThumbVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","actionSheet(item:content:)"],"names":{"title":"actionSheet(item:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an action sheet using the given item as a data source for the"},{"text":"sheet's content."},{"text":""},{"text":"Use this method when you need to populate the fields of an action sheet"},{"text":"with content from a data source. The example below shows a custom data"},{"text":"source, `FileDetails`, that provides data to populate the action sheet:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":""},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var sheetDetail: FileDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Action Sheet\") {"},{"text":" sheetDetail = FileDetails(name: \"MyImageFile.png\","},{"text":" fileType: .png)"},{"text":" }"},{"text":" .actionSheet(item: $sheetDetail) { detail in"},{"text":" ActionSheet("},{"text":" title: Text(\"File Import\"),"},{"text":" message: Text(\"\"\""},{"text":" Import \\(detail.name)?"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\"),"},{"text":" buttons: ["},{"text":" .destructive(Text(\"Import\"),"},{"text":" action: importFile),"},{"text":" .cancel()"},{"text":" ])"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func importFile() {"},{"text":" // Handle import action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing an action sheet populated using a custom data"},{"text":"source that describes a file and file"},{"text":"format.](SwiftUI-View-ActionSheetItemContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the action"},{"text":" sheet. When `item` is non-`nil`, the system passes"},{"text":" the contents to the modifier's closure. You use this content"},{"text":" to populate the fields of an action sheet that you create that the"},{"text":" system displays to the user. If `item` changes, the system"},{"text":" dismisses the currently displayed action sheet and replaces it"},{"text":" with a new one using the same process."},{"text":" - content: A closure returning the ``ActionSheet`` you create."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting::actions:)`instead."},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","actionSheet(isPresented:content:)"],"names":{"title":"actionSheet(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an action sheet when a given condition is true."},{"text":""},{"text":"In the example below, a button conditionally presents an action sheet"},{"text":"depending upon the value of a bound Boolean variable. When the Boolean"},{"text":"value is set to `true`, the system displays an action sheet with both"},{"text":"destructive and default actions:"},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingSheet = false"},{"text":" var body: some View {"},{"text":" Button(\"Show Action Sheet\", action: {"},{"text":" isShowingSheet = true"},{"text":" })"},{"text":" .actionSheet(isPresented: $isShowingSheet) {"},{"text":" ActionSheet("},{"text":" title: Text(\"Permanently erase the items in the Trash?\"),"},{"text":" message: Text(\"You can't undo this action.\"),"},{"text":" buttons:["},{"text":" .destructive(Text(\"Empty Trash\"),"},{"text":" action: emptyTrashAction),"},{"text":" .cancel()"},{"text":" ]"},{"text":" )}"},{"text":" }"},{"text":""},{"text":" func emptyTrashAction() {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![An action sheet with a title and message showing the use of default"},{"text":"and destructive button"},{"text":"types.](SwiftUI-View-ActionSheetisPresentedContent.png)"},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders alert sheets"},{"text":" as a popover that the user dismisses by tapping anywhere outside the"},{"text":" popover, rather than displaying the default dismiss button."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the action sheet that you create in the modifier's"},{"text":" `content` closure. When the user presses or taps the sheet's default"},{"text":" action button the system sets this value to `false` dismissing"},{"text":" the sheet."},{"text":" - content: A closure returning the `ActionSheet` to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actionSheet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"ActionSheet","preciseIdentifier":"s:7SwiftUI11ActionSheetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting::actions:)`instead."},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `confirmationDialog(title:isPresented:titleVisibility:presenting:actions:)`instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSelection(_:)"],"names":{"title":"searchSelection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSelection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TextSelection","preciseIdentifier":"s:7SwiftUI13TextSelectionV"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Binds the selection of the search field associated with the nearest"},{"text":"searchable modifier to the given ``TextSelection`` value."},{"text":""},{"text":"Use this modifier to read and set selection in your search interface."},{"text":"Selection is represented using `TextSelection` where the indices are"},{"text":"relative to the search text you provide on the"},{"text":"``View/searchable(text:placement:prompt:)`` modifier. Note that this"},{"text":"value will not represent selection outside of the text, such as in any"},{"text":"leading tokens."},{"text":""},{"text":"SwiftUI will automatically update this value when the user changes"},{"text":"selection, such as by typing. Likewise, you can change selection by"},{"text":"writing to this value."},{"text":""},{"text":"The following example creates a search interface that selects all of"},{"text":"the text on focus."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State var text = \"Hello, world!\""},{"text":" @State var selection: TextSelection?"},{"text":" @FocusState var focused"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" Sidebar()"},{"text":" .searchable(text: $text)"},{"text":" .searchFocused($focused)"},{"text":" .searchSelection($selection)"},{"text":" } detail: {"},{"text":" Detail()"},{"text":" }"},{"text":" .onChange(of: focused) {"},{"text":" if focused {"},{"text":" selection = TextSelection("},{"text":" range: text.startIndex.."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSelection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TextSelection","preciseIdentifier":"s:7SwiftUI13TextSelectionV"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTargetBehavior(_:)"],"names":{"title":"scrollTargetBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetBehavior"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the scroll behavior of views scrollable in the provided axes."},{"text":""},{"text":"A scrollable view calculates where scroll gestures should end using its"},{"text":"deceleration rate and the state of its scroll gesture by default. A"},{"text":"scroll behavior allows for customizing this logic. You can provide"},{"text":"your own ``ScrollTargetBehavior`` or use one of the built in behaviors"},{"text":"provided by SwiftUI."},{"text":""},{"text":"### Paging Behavior"},{"text":""},{"text":"SwiftUI offers a ``PagingScrollTargetBehavior`` behavior which uses the"},{"text":"geometry of the scroll view to decide where to allow scrolls to end."},{"text":""},{"text":"In the following example, every view in the lazy stack is flexible"},{"text":"in both directions and the scroll view will settle to container aligned"},{"text":"boundaries."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" FullScreenItem(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetBehavior(.paging)"},{"text":""},{"text":"### View Aligned Behavior"},{"text":""},{"text":"SwiftUI offers a ``ViewAlignedScrollTargetBehavior`` scroll behavior"},{"text":"that will always settle on the geometry of individual views."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollTargetBehavior(.viewAligned)"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"You configure which views should be used for settling using the"},{"text":"``View/scrollTargetLayout(isEnabled:)`` modifier. Apply this modifier to"},{"text":"a layout container like ``LazyVStack`` or ``HStack`` and each individual"},{"text":"view in that layout will be considered for alignment."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some ScrollTargetBehavior","rhs":"ScrollTargetBehavior","rhsPrecise":"s:7SwiftUI20ScrollTargetBehaviorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ScrollTargetBehavior","preciseIdentifier":"s:7SwiftUI20ScrollTargetBehaviorP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTargetLayout(isEnabled:)"],"names":{"title":"scrollTargetLayout(isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the outermost layout as a scroll target layout."},{"text":""},{"text":"This modifier works together with the"},{"text":"``ViewAlignedScrollTargetBehavior`` to ensure that scroll views align"},{"text":"to view based content."},{"text":""},{"text":"Apply this modifier to layout containers like ``LazyHStack`` or"},{"text":"``VStack`` within a ``ScrollView`` that contain the main repeating"},{"text":"content of your ``ScrollView``."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollTargetBehavior(.viewAligned)"},{"text":""},{"text":"A scroll target layout ensures that any target layout nested within"},{"text":"the primary one will not also become a scroll target layout."},{"text":""},{"text":" LazyHStack { // a scroll target layout"},{"text":" VStack { ... } // not a scroll target layout"},{"text":" LazyHStack { ... } // also not a scroll target layout"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":""}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTargetLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinuousHover(coordinateSpace:perform:)"],"names":{"title":"onContinuousHover(coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the pointer enters, moves within, and"},{"text":"exits the view's bounds."},{"text":""},{"text":"Call this method to define a region for detecting pointer movement with"},{"text":"the size and position of this view."},{"text":"The following example updates `hoverLocation` and `isHovering` to be"},{"text":"based on the phase provided to the closure:"},{"text":""},{"text":" @State private var hoverLocation: CGPoint = .zero"},{"text":" @State private var isHovering = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red"},{"text":" .frame(width: 400, height: 400)"},{"text":" .onContinuousHover { phase in"},{"text":" switch phase {"},{"text":" case .active(let location):"},{"text":" hoverLocation = location"},{"text":" isHovering = true"},{"text":" case .ended:"},{"text":" isHovering = false"},{"text":" }"},{"text":" }"},{"text":" .overlay {"},{"text":" Rectangle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" .foregroundColor(isHovering ? .green : .blue)"},{"text":" .offset(x: hoverLocation.x, y: hoverLocation.y)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - coordinateSpace: The coordinate space for the"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform whenever the pointer enters,"},{"text":" moves within, or exits the view's bounds. The `action` closure"},{"text":" passes the ``HoverPhase/active(_:)`` phase with the pointer's"},{"text":" coordinates if the pointer is in the view's bounds; otherwise, it"},{"text":" passes ``HoverPhase/ended``."},{"text":""},{"text":"- Returns: A view that calls `action` when the pointer enters,"},{"text":" moves within, or exits the view's bounds."}]},"functionSignature":{"parameters":[{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingToolsBehavior(_:)"],"names":{"title":"writingToolsBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the Writing Tools behavior for text and text input in the"},{"text":"environment."},{"text":""},{"text":"Use this view modifier to customize or disable the Writing Tools editing"},{"text":"experience for ``Text`` (when selectable), ``TextField``, and"},{"text":"``TextEditor`` views."},{"text":""},{"text":"- Parameter behavior: The Writing Tools behavior for text and text input in the"},{"text":" environment."},{"text":""},{"text":"- Returns: A view preferring the specified Writing Tools behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritingToolsBehavior","preciseIdentifier":"s:7SwiftUI20WritingToolsBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropDestination(for:action:isTargeted:)"],"names":{"title":"dropDestination(for:action:isTargeted:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The dropped content can be provided as binary data, file URLs, or file promises."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":" @State private var isDropTargeted = false"},{"text":""},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .dropDestination(for: String.self) { receivedTitles, location in"},{"text":" animateDrop(at: location)"},{"text":" process(titles: receivedTitles)"},{"text":" } isTargeted: {"},{"text":" isDropTargeted = $0"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func process(titles: [String]) { ... }"},{"text":" func animateDrop(at: CGPoint) { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The expected type of the dropped models."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":" - isTargeted: A closure that is called when a drag and drop operation"},{"text":" enters or exits the drop target area. The received value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified type."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { _ in }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `dropDestination(for:isEnabled:action:)` with an `action` that takes a `DropSession` parameter instead."},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `dropDestination(for:isEnabled:action:)` with an `action` that takes a `DropSession` parameter instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchScopes(_:scopes:)"],"names":{"title":"searchScopes(_:scopes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search scopes for this view."},{"text":""},{"text":"To enable people to narrow the scope of their searches, you can"},{"text":"create a type that represents the possible scopes, and then create a"},{"text":"state variable to hold the current selection. For example, you can"},{"text":"scope the product search to just fruits or just vegetables:"},{"text":""},{"text":" enum ProductScope {"},{"text":" case fruit"},{"text":" case vegetable"},{"text":" }"},{"text":""},{"text":" @State private var scope: ProductScope = .fruit"},{"text":""},{"text":"Provide a binding to the scope, as well as a view that represents each"},{"text":"scope:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text, tokens: $tokens) { token in"},{"text":" switch token {"},{"text":" case .apple: Text(\"Apple\")"},{"text":" case .pear: Text(\"Pear\")"},{"text":" case .banana: Text(\"Banana\")"},{"text":" }"},{"text":" }"},{"text":" .searchScopes($scope) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"SwiftUI uses this binding and view to add a ``Picker`` with the search"},{"text":"field. In iOS, iPadOS, macOS, and tvOS, the picker appears below the"},{"text":"search field when search is active. To ensure that the picker operates"},{"text":"correctly, match the type of the scope binding with the type of each"},{"text":"view's tag. Then modify your search to account for the current value of"},{"text":"the `scope` state property."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - scope: The active scope of the search field."},{"text":" - scopes: A content builder that represents the scoping options"},{"text":" SwiftUI uses to populate a ``Picker``."}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"scopes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchScopes(_:activation:_:)"],"names":{"title":"searchScopes(_:activation:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search scopes for this view with the specified"},{"text":"activation strategy."},{"text":""},{"text":"To enable people to narrow the scope of their searches, you can"},{"text":"create a type that represents the possible scopes, and then create a"},{"text":"state variable to hold the current selection. For example, you can"},{"text":"scope the product search to just fruits or just vegetables:"},{"text":""},{"text":" enum ProductScope {"},{"text":" case fruit"},{"text":" case vegetable"},{"text":" }"},{"text":""},{"text":" @State private var scope: ProductScope = .fruit"},{"text":""},{"text":"Provide a binding to the scope, as well as a view that represents each"},{"text":"scope:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text, tokens: $tokens) { token in"},{"text":" switch token {"},{"text":" case .apple: Text(\"Apple\")"},{"text":" case .pear: Text(\"Pear\")"},{"text":" case .banana: Text(\"Banana\")"},{"text":" }"},{"text":" }"},{"text":" .searchScopes($scope) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"SwiftUI uses this binding and view to add a ``Picker`` below the search"},{"text":"field. In iOS, macOS, and tvOS, the picker appears below the search"},{"text":"field when search is active. To ensure that the picker operates"},{"text":"correctly, match the type of the scope binding with the type of each"},{"text":"view's tag. Then condition your search on the current value of the"},{"text":"`scope` state property."},{"text":""},{"text":"By default, the appearance of scopes varies by platform:"},{"text":" - In iOS and iPadOS, search scopes appear when someone enters text"},{"text":" into the search field and disappear when someone cancels the search."},{"text":" - In macOS, search scopes appear when SwiftUI presents search and"},{"text":" disappear when someone cancels the search."},{"text":""},{"text":"However, you can use the `activation` parameter with a value of"},{"text":"``SearchScopeActivation/onTextEntry`` or"},{"text":"``SearchScopeActivation/onSearchPresentation`` to configure this"},{"text":"behavior:"},{"text":""},{"text":" .searchScopes($scope, activation: .onSearchPresentation) {"},{"text":" Text(\"Fruit\").tag(ProductScope.fruit)"},{"text":" Text(\"Vegetable\").tag(ProductScope.vegetable)"},{"text":" }"},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - scope: The active scope of the search field."},{"text":" - activation: The activation style of the search field's scopes."},{"text":" - scopes: A content builder that represents the scoping options"},{"text":" SwiftUI uses to populate a ``Picker``."}]},"functionSignature":{"parameters":[{"name":"scope","declarationFragments":[{"kind":"identifier","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"activation","declarationFragments":[{"kind":"identifier","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"}]},{"name":"scopes","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchScopes"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scope"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchScopeActivation","preciseIdentifier":"s:7SwiftUI21SearchScopeActivationV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scopes"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","selectionDisabled(_:)"],"names":{"title":"selectionDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"selectionDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition that controls whether users can select this view."},{"text":""},{"text":"Use this modifier to control the selectability of views in"},{"text":"selectable containers like ``List`` or ``Table``. In the example,"},{"text":"below, the user can't select the first item in the list."},{"text":""},{"text":" @Binding var selection: Item.ID?"},{"text":" @Binding var items: [Item]"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item: item)"},{"text":" .selectionDisabled(item.id == items.first?.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can also use this modifier to specify the selectability of views"},{"text":"within a `Picker`. The following example represents a flavor picker"},{"text":"that disables selection on flavors that are unavailable."},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue.capitalized)"},{"text":" .selectionDisabled(isSoldOut(flavor))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that determines whether users can"},{"text":" select this view."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"selectionDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","statusBarHidden(_:)"],"names":{"title":"statusBarHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBarHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the status bar."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" status bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBarHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use .toolbarVisibility(_, for: .statusBar) instead"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Has no effect on visionOS"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","statusBar(hidden:)"],"names":{"title":"statusBar(hidden:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the status bar."},{"text":""},{"text":"Use `statusBar(hidden:)` to show or hide the status bar."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" status bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"statusBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"statusBarHidden(_:)"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Has no effect on visionOS"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardType(_:)"],"names":{"title":"keyboardType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the keyboard type for this view."},{"text":""},{"text":"Use `keyboardType(_:)` to specify the keyboard type to use for text"},{"text":"entry. A number of different keyboard types are available to meet"},{"text":"specialized input needs, such as entering email addresses or phone"},{"text":"numbers."},{"text":""},{"text":"The example below presents a ``TextField`` to input an email address."},{"text":"Setting the text field's keyboard type to `.emailAddress` ensures the"},{"text":"user can only enter correctly formatted email addresses."},{"text":""},{"text":" TextField(\"someone@example.com\", text: $emailAddress)"},{"text":" .keyboardType(.emailAddress)"},{"text":""},{"text":"There are several different kinds of specialized keyboard types"},{"text":"available though the"},{"text":" enumeration. To"},{"text":"specify the default system keyboard type, use `.default`."},{"text":""},{"text":"![A screenshot showing the use of a specialized keyboard type with a"},{"text":"text field.](SwiftUI-View-keyboardType.png)"},{"text":""},{"text":"- Parameter type: One of the keyboard types defined in the"},{"text":" enumeration."}]},"functionSignature":{"parameters":[{"name":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIKeyboardType","preciseIdentifier":"c:@E@UIKeyboardType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","autocapitalization(_:)"],"names":{"title":"autocapitalization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to apply auto-capitalization to this view."},{"text":""},{"text":"Use `autocapitalization(_:)` when you need to automatically capitalize"},{"text":"words, sentences, or other text like proper nouns."},{"text":""},{"text":"In example below, as the user enters text each word is automatically"},{"text":"capitalized:"},{"text":""},{"text":" TextField(\"Last, First\", text: $fullName)"},{"text":" .autocapitalization(UITextAutocapitalizationType.words)"},{"text":""},{"text":"The "},{"text":"enumeration defines the available capitalization modes. The default is"},{"text":"."},{"text":""},{"text":"- Parameter style: One of the autocapitalization modes defined in the"},{"text":""},{"text":"enumeration."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextAutocapitalizationType","preciseIdentifier":"c:@E@UITextAutocapitalizationType"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use textInputAutocapitalization(_:)"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuOrder(_:)"],"names":{"title":"menuOrder(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuOrder"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the preferred order of items for menus presented from this view."},{"text":""},{"text":"Use this modifier to override the default menu order. On supported"},{"text":"platforms, ``MenuOrder/priority`` order keeps the first items closer"},{"text":"to the user’s point of interaction, whereas ``MenuOrder/fixed`` order"},{"text":"always orders items from top to bottom."},{"text":""},{"text":"On iOS, the ``MenuOrder/automatic`` order resolves to"},{"text":"``MenuOrder/fixed`` for menus presented within scrollable content."},{"text":"Pickers that use the ``PickerStyle/menu`` style also default to"},{"text":"``MenuOrder/fixed`` order. In all other cases, menus default to"},{"text":"``MenuOrder/priority`` order."},{"text":""},{"text":"On macOS, tvOS and watchOS, the ``MenuOrder/automatic`` order always"},{"text":"resolves to ``MenuOrder/fixed`` order."},{"text":""},{"text":"The following example creates a menu that presents its content in a"},{"text":"fixed order from top to bottom:"},{"text":""},{"text":" Menu {"},{"text":" Button(\"Select\", action: selectFolders)"},{"text":" Button(\"New Folder\", action: createFolder)"},{"text":" Picker(\"Appearance\", selection: $appearance) {"},{"text":" Label(\"Icons\", systemImage: \"square.grid.2x2\").tag(Appearance.icons)"},{"text":" Label(\"List\", systemImage: \"list.bullet\").tag(Appearance.list)"},{"text":" }"},{"text":" } label: {"},{"text":" Label(\"Settings\", systemImage: \"ellipsis.circle\")"},{"text":" }"},{"text":" .menuOrder(.fixed)"},{"text":""},{"text":"You can use this modifier on controls that present a menu."},{"text":"For example, the code below creates a ``Picker`` using the"},{"text":"``PickerStyle/menu`` style with a priority-based order:"},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" Text(\"Chocolate\").tag(Flavor.chocolate)"},{"text":" Text(\"Vanilla\").tag(Flavor.vanilla)"},{"text":" Text(\"Strawberry\").tag(Flavor.strawberry)"},{"text":" }"},{"text":" .pickerStyle(.menu)"},{"text":" .menuOrder(.priority)"},{"text":""},{"text":"You can also use this modifier on context menus. The example below"},{"text":"creates a context menu that presents its content in a fixed order:"},{"text":""},{"text":" Text(\"Favorite Card Suit\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button(\"♥️ - Hearts\", action: selectHearts)"},{"text":" Button(\"♣️ - Clubs\", action: selectClubs)"},{"text":" Button(\"♠️ - Spades\", action: selectSpades)"},{"text":" Button(\"♦️ - Diamonds\", action: selectDiamonds)"},{"text":" }"},{"text":" .menuOrder(.fixed)"},{"text":""},{"text":"The modifier has no effect when applied to a subsection or"},{"text":"submenu of a menu."},{"text":""},{"text":"- Parameter order: The menu item ordering strategy to apply."},{"text":""},{"text":"- Returns: A view that uses the specified menu ordering strategy."}]},"functionSignature":{"parameters":[{"name":"order","declarationFragments":[{"kind":"identifier","spelling":"order"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuOrder"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"order"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuOrder","preciseIdentifier":"s:7SwiftUI9MenuOrderV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:_:for:)"],"names":{"title":"contentMargins(_:_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The edges to add the margins to."},{"text":" - insets: The amount of margins to add."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:_:for:)"],"names":{"title":"contentMargins(_:_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The edges to add the margins to."},{"text":" - length: The amount of margins to add."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentMargins(_:for:)"],"names":{"title":"contentMargins(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the content margin for a provided placement."},{"text":""},{"text":"Use this modifier to customize the content margins of different"},{"text":"kinds of views. For example, you can use this modifier to customize"},{"text":"the margins of scrollable views like ``ScrollView``. In the"},{"text":"following example, the scroll view will automatically inset"},{"text":"its content by the safe area plus an additional 20 points"},{"text":"on the leading and trailing edge."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .contentMargins(.horizontal, 20.0)"},{"text":""},{"text":"You can provide a ``ContentMarginPlacement`` to target specific"},{"text":"parts of a view to customize. For example, provide a"},{"text":"``ContentMarginPlacement/scrollContent`` placement to"},{"text":"inset the content of a ``TextEditor`` without affecting the"},{"text":"insets of its scroll indicators."},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .contentMargins(.horizontal, 20.0, for: .scrollContent)"},{"text":""},{"text":"Similarly, you can customize the insets of scroll indicators"},{"text":"separately from scroll content. Consider doing this when applying"},{"text":"a custom clip shape that may clip the indicators."},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .clipShape(.rect(cornerRadius: 20.0))"},{"text":" .contentMargins(10.0, for: .scrollIndicators)"},{"text":""},{"text":"When applying multiple contentMargins modifiers, modifiers with"},{"text":"the same placement will override modifiers higher up in the view"},{"text":"hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - length: The amount of margins to add on all edges."},{"text":" - placement: Where the margins should be added."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMarginPlacement","preciseIdentifier":"s:7SwiftUI22ContentMarginPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionIndexLabel(_:)"],"names":{"title":"sectionIndexLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the label that is used in a section index to point to this"},{"text":"section, typically only a single character long."},{"text":""},{"text":"- Parameter label: The label to display in the section index, or `nil`"},{"text":"to display no label for this section."},{"text":""},{"text":"- See also `listSectionIndexVisibility(_:)`"}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionIndexLabel(_:)"],"names":{"title":"sectionIndexLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title that is used for the section index label pointing to this"},{"text":"section, typically only a single character long."},{"text":""},{"text":"- Parameter label: The title to use for the index label for this"},{"text":"section, or `nil` to display no label for this section."},{"text":""},{"text":"- See also `listSectionIndexVisibility(_:)`"}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionIndexLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionIndexVisibility(_:)"],"names":{"title":"listSectionIndexVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionIndexVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the visibility of the list section index."},{"text":""},{"text":"The section index shows the section index labels of sections, which are"},{"text":"set using the `sectionIndexLabel` modifier. These are typically the"},{"text":"letters of the alphabet, used for sorted sections."},{"text":""},{"text":" List(sections) { section in"},{"text":" Section(section.title) {"},{"text":" ForEach(section.rows) { row in"},{"text":" // ..."},{"text":" }"},{"text":" }"},{"text":" .sectionIndexLabel(section.indexTitle)"},{"text":" }"},{"text":" .listSectionIndexVisibility(.visible)"},{"text":""},{"text":"On iOS, the section index is displayed as a number of vertically stacked"},{"text":"letters on the trailing side of the list. Users can jump to a specific"},{"text":"section in the list by tapping on the corresponding index label."},{"text":""},{"text":"![A list on iOS showing alphabetically sorted contact details, with a"},{"text":"section index](Example_iOS.png)"},{"text":""},{"text":"On watchOS, the index of the section currently visible is displayed next"},{"text":"to the scroll indicator when the user is scrolling through the list"},{"text":"using the crown."},{"text":""},{"text":"![A list on watchOS showing an alphabetically sorted list of sporst,"},{"text":"with a section index](Example_iOS.png)"},{"text":""},{"text":"By default, the list section index is visible if the list contains any"},{"text":"sections with an index label."},{"text":""},{"text":"The index only shows labels for sections with a `sectionIndexLabel`"},{"text":"modifier. This can be used to hide certain sections from the index."},{"text":""},{"text":"By hiding section headers of empty sections with an index label, a list"},{"text":"section index can be made to show index labels without a corresponding"},{"text":"section."},{"text":""},{"text":"- Parameter visibility: The visibility of the list section index."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionIndexVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultFocus(_:_:priority:)"],"names":{"title":"defaultFocus(_:_:priority:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a region of the window in which default focus is evaluated by"},{"text":"assigning a value to a given focus state binding."},{"text":""},{"text":"By default, SwiftUI evaluates default focus when the window first"},{"text":"appears, and when a focus state binding update moves focus"},{"text":"automatically, but not when responding to user-driven navigation"},{"text":"commands."},{"text":""},{"text":"Clients can override the default behavior by specifying an evaluation"},{"text":"priority of ``DefaultFocusEvaluationPriority/userInitiated``, which"},{"text":"causes SwiftUI to use the client's preferred default focus in response"},{"text":"to user-driven focus navigation as well as automatic changes."},{"text":""},{"text":"In the following example, focus automatically goes to the second of the"},{"text":"two text fields when the view is first presented in the window."},{"text":""},{"text":" WindowGroup {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused($focusedField, equals: .firstField)"},{"text":" TextField(...)"},{"text":" .focused($focusedField, equals: .secondField)"},{"text":" }"},{"text":" .defaultFocus($focusedField, .secondField)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - binding: A focus state binding to update when evaluating default"},{"text":" focus in the modified view hierarchy."},{"text":" - value: The value to set the binding to during evaluation."},{"text":" - priority: An indication of how to prioritize the preferred default"},{"text":" focus target when focus moves into the modified view hierarchy."},{"text":" The default value is `automatic`, which means the preference will"},{"text":" be given priority when focus is being initialized or relocated"},{"text":" programmatically, but not when responding to user-directed"},{"text":" navigation commands."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DefaultFocusEvaluationPriority","preciseIdentifier":"s:7SwiftUI30DefaultFocusEvaluationPriorityV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollTargetVisibilityChange(idType:threshold:_:)"],"names":{"title":"onScrollTargetVisibilityChange(idType:threshold:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollTargetVisibilityChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", (["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be called with information about what views would"},{"text":"be considered visible."},{"text":""},{"text":"Use this modifier along with the modifier ``View/scrollTargetLayout()``"},{"text":"to be informed when the views in the targetted scroll view have crossed"},{"text":"the provided threshold to be considered on/off screen."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(models) { model in"},{"text":" CardView(model: model)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .onScrollTargetVisibilityChange(for: Model.ID.self, threshold: 0.2) { onScreenCards in"},{"text":" // Disable video playback for cards that are offscreen..."},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - idType: The type of Identity provided by the subviews."},{"text":" - threshold: The amount required to be visible within the viewport of the"},{"text":" the scrollview before the `action` is fired. By default when the view"},{"text":" has crossed more than 50% on-screen, the action will be called."},{"text":" - action: The action which will be called when the views within the"},{"text":" scroll view cross the provided threshold. The callback will include"},{"text":" which views are considered visible."}]},"functionSignature":{"parameters":[{"name":"idType","declarationFragments":[{"kind":"identifier","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type"}]},{"name":"threshold","declarationFragments":[{"kind":"identifier","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollTargetVisibilityChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"idType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollVisibilityChange(threshold:_:)"],"names":{"title":"onScrollVisibilityChange(threshold:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollVisibilityChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be called when the view crosses the threshold to be considered on/off screen."},{"text":""},{"text":"Use this modifier to be informed when the view has crossed the"},{"text":"provided threshold to be considered on/off screen."},{"text":""},{"text":" struct VideoPlayer: View {"},{"text":" @State var playing: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" Group {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollVisibilityChange(threshold: 0.2) { isVisible in"},{"text":" playing = isVisible"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the view appears on-screen, the action will be called if the threshold"},{"text":"has already been reached."},{"text":""},{"text":"- Parameters:"},{"text":" - threshold: The amount required to be visible within the viewport of the parent"},{"text":" view before the `action` is fired. By default when the view has crossed more than 50%"},{"text":" on-screen, the action will be called."},{"text":" - action: The action which will be called when the threshold has been reached."}]},"functionSignature":{"parameters":[{"name":"threshold","declarationFragments":[{"kind":"identifier","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollVisibilityChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"threshold"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:isPresented:placement:prompt:)"],"names":{"title":"searchable(text:isPresented:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with programmatic presentation of the"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchFocused(_:)"],"names":{"title":"searchFocused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding the focus state of the search field"},{"text":"associated with the nearest searchable modifier to the given"},{"text":"Boolean value."},{"text":""},{"text":"To control focus by matching a non-boolean value, use the"},{"text":"``View/searchFocused(_:equals:)`` modifier instead."},{"text":""},{"text":"For more information about using searchable modifiers, refer to"},{"text":"."},{"text":""},{"text":"- Parameter binding: The focus state to bind. When focus moves"},{"text":" to the associated search field, the binding sets the bound value to"},{"text":" `true`. If a caller sets the value to `true` programmatically, then"},{"text":" focus moves to the search field. When focus leaves the search field,"},{"text":" the binding sets the value to `false`. If a caller sets the value to"},{"text":" `false`, SwiftUI automatically dismisses focus."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchFocused(_:equals:)"],"names":{"title":"searchFocused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding the focus state of the search field"},{"text":"associated with the nearest searchable modifier to the given value."},{"text":""},{"text":"To control focus by matching a simple boolean condition, use the"},{"text":"``View/searchFocused(_:)`` modifier instead."},{"text":""},{"text":"For more information about using searchable modifiers, refer to"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When focus moves to the"},{"text":" associated search field, the binding sets the bound value to the"},{"text":" corresponding match value. If a caller sets the state value"},{"text":" programmatically to the matching value, then focus moves to the"},{"text":" search field. When focus leaves the search field, the binding sets"},{"text":" the bound value to `nil`. If a caller sets the value to `nil`,"},{"text":" SwiftUI automatically dismisses focus."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewStyle(_:)"],"names":{"title":"navigationSplitViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for navigation split views within this view."},{"text":""},{"text":"- Parameter style: The style to set."},{"text":""},{"text":"- Returns: A view that uses the specified navigation split view style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"NavigationSplitViewStyle","rhsPrecise":"s:7SwiftUI24NavigationSplitViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"NavigationSplitViewStyle","preciseIdentifier":"s:7SwiftUI24NavigationSplitViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","writingToolsAffordanceVisibility(_:)"],"names":{"title":"writingToolsAffordanceVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsAffordanceVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether the system should show the Writing Tools affordance"},{"text":"for text input views affected by the environment."},{"text":""},{"text":"Use this view modifier to disable the Writing Tools affordance"},{"text":"for ``TextField`` views when running on macOS or Mac Catalyst."},{"text":""},{"text":"- Parameter visibility: Whether the affordance may be shown for text"},{"text":"input views."},{"text":""},{"text":"- Returns: A view with the specified Writing Tools affordance visibility."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"writingToolsAffordanceVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(leading:trailing:)"],"names":{"title":"navigationBarItems(leading:trailing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"leading","declarationFragments":[{"kind":"identifier","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"trailing","declarationFragments":[{"kind":"identifier","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(leading:)"],"names":{"title":"navigationBarItems(leading:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"leading","declarationFragments":[{"kind":"identifier","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"leading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarItems(trailing:)"],"names":{"title":"navigationBarItems(trailing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"functionSignature":{"parameters":[{"name":"trailing","declarationFragments":[{"kind":"identifier","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarItems"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(_:) with navigationBarLeading or navigationBarTrailing placement"},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(hidden:)"],"names":{"title":"accessibility(hidden:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHidden(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(label:)"],"names":{"title":"accessibility(label:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityLabel(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(hint:)"],"names":{"title":"accessibility(hint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\" or"},{"text":"\"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityHint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(inputLabels:)"],"names":{"title":"accessibility(inputLabels:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" ``accessibility(label:)`` modifier."},{"text":""},{"text":"- Parameter inputLabels: An array of Text elements to use as input labels."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityInputLabels(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(identifier:)"],"names":{"title":"accessibility(identifier:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the specified string to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityIdentifier(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(selectionIdentifier:)"],"names":{"title":"accessibility(selectionIdentifier:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a selection identifier for this view's accessibility element."},{"text":""},{"text":"Picker uses the value to determine what node to use for the"},{"text":"accessibility value."}]},"functionSignature":{"parameters":[{"name":"selectionIdentifier","declarationFragments":[{"kind":"identifier","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"selectionIdentifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyHashable","preciseIdentifier":"s:s11AnyHashableV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyDeprecated":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyDeprecated":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyDeprecated":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":6},"isUnconditionallyDeprecated":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(sortPriority:)"],"names":{"title":"accessibility(sortPriority:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sort priority order for this view's accessibility element,"},{"text":"relative to other elements at the same level."},{"text":""},{"text":"Higher numbers are sorted first. The default sort priority is zero."}]},"functionSignature":{"parameters":[{"name":"sortPriority","declarationFragments":[{"kind":"identifier","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilitySortPriority(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(activationPoint:)"],"names":{"title":"accessibility(activationPoint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the point where activations occur in the view."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(activationPoint:)"],"names":{"title":"accessibility(activationPoint:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the unit point where activations occur in the view."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityActivationPoint(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTransition(_:)"],"names":{"title":"navigationTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTransition"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the navigation transition style for this view."},{"text":""},{"text":"Add this modifier to a view that appears within a"},{"text":"``NavigationStack`` or a sheet, outside of any containers such as"},{"text":"``VStack``."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Namespace private var namespace"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" NavigationLink {"},{"text":" DetailView()"},{"text":" .navigationTransition(.zoom(sourceID: \"world\", in: namespace))"},{"text":" } label: {"},{"text":" Image(systemName: \"globe\")"},{"text":" .matchedTransitionSource(id: \"world\", in: namespace)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some NavigationTransition","rhs":"NavigationTransition","rhsPrecise":"s:7SwiftUI20NavigationTransitionP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"NavigationTransition","preciseIdentifier":"s:7SwiftUI20NavigationTransitionP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabBarMinimizeBehavior(_:)"],"names":{"title":"tabBarMinimizeBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabBarMinimizeBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the behavior for tab bar minimization."},{"text":""},{"text":"The following TabView minimizes its tab bar when scrolling in the"},{"text":"'Numbers' or 'Alerts' tabs on iPhone."},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Numbers\", systemImage: \"number\") {"},{"text":" ScrollView {"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":" }"},{"text":" .tabBarMinimizeBehavior(.onScrollDown)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter behavior: The minimize behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabBarMinimizeBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabBarMinimizeBehavior","preciseIdentifier":"s:7SwiftUI22TabBarMinimizeBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","persistentSystemOverlays(_:)"],"names":{"title":"persistentSystemOverlays(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"persistentSystemOverlays"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the preferred visibility of the non-transient system views"},{"text":"overlaying the app."},{"text":""},{"text":"Use this modifier to influence the appearance of system overlays"},{"text":"in your app. The behavior varies by platform."},{"text":""},{"text":"In iOS, the following example hides every persistent system overlay."},{"text":"In visionOS 2 and later, the SharePlay Indicator hides if the"},{"text":"scene is shared through SharePlay, or not shared at all."},{"text":"During screen sharing, the indicator always remains visible."},{"text":"The Home indicator doesn't appear without specific user intent"},{"text":"when you set visibility to ``hidden``. For a ``WindowGroup``,"},{"text":"the modifier affects the visibility of the window chrome. For an"},{"text":"``ImmersiveSpace``, it affects the Home indicator."},{"text":""},{"text":" struct ImmersiveView: View {"},{"text":" var body: some View {"},{"text":" Text(\"Maximum immersion\")"},{"text":" .persistentSystemOverlays(.hidden)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: You can indicate a preference with this modifier, but the system"},{"text":"might or might not be able to honor that preference."},{"text":""},{"text":"Affected non-transient system views can include, but are not limited to:"},{"text":"- The Home indicator."},{"text":"- The SharePlay indicator."},{"text":"- The Multitasking Controls button and Picture in Picture on iPad."},{"text":""},{"text":"- Parameter visibility: A value that indicates the visibility of the"},{"text":"non-transient system views overlaying the app."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"persistentSystemOverlays"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackground(_:for:)"],"names":{"title":"toolbarBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred shape style of the background of a bar managed"},{"text":"by SwiftUI."},{"text":""},{"text":"The preferred style flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS. This example"},{"text":"shows a view that renders the navigation bar with a blue background"},{"text":"and dark color scheme."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.white)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to customize"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .blue, for: .navigationBar, .tabBar)"},{"text":" .toolbarColorScheme("},{"text":" .dark, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When used within a ``TabView``, the specified style will be"},{"text":"preferred while the tab is currently active. You can use a ``Group``"},{"text":"to specify the same preferred background for every tab."},{"text":""},{"text":" TabView {"},{"text":" Group {"},{"text":" MainView()"},{"text":" SettingsView()"},{"text":" }"},{"text":" .toolbarBackground(.blue, for: .tabBar)"},{"text":" }"},{"text":""},{"text":"Depending on the specified bars, the requested style may not be able to"},{"text":"be fullfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - style: The style to display as the background of the bar."},{"text":" - bars: The bars to use the style for or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackground(_:for:)"],"names":{"title":"toolbarBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred visibility of backgrounds on a bar managed by"},{"text":"SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"In iOS, a value of ``ToolbarPlacement/automatic`` makes the visibility"},{"text":"of a tab bar or navigation bar background depend on where a ``List`` or"},{"text":"``ScrollView`` settles. For example, when aligned to the bottom edge of"},{"text":"of a scroll view's content, the background of a tab bar becomes"},{"text":"transparent."},{"text":""},{"text":"Specify a value of ``Visibility/visible`` to ensure that the"},{"text":"background of a bar remains visible regardless of where any scroll"},{"text":"view or list stops scrolling."},{"text":""},{"text":"This example shows a view that prefers to always have the tab bar"},{"text":"visible when the middle tab is selected:"},{"text":""},{"text":" TabView {"},{"text":" FirstTab()"},{"text":" MiddleTab()"},{"text":" .toolbarBackground(.visible, for: .tabBar)"},{"text":" LastTab()"},{"text":" }"},{"text":""},{"text":"You can provide multiple placements to customize multiple bars"},{"text":"at once, as in the following example:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .visible, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the background of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarBackgroundVisibility(_:for:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarBackgroundVisibility(_:for:)"],"names":{"title":"toolbarBackgroundVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackgroundVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred visibility of backgrounds on a bar managed by"},{"text":"SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container that"},{"text":"renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"In iOS, a value of ``ToolbarPlacement/automatic`` makes the visibility"},{"text":"of a tab bar or navigation bar background depend on where a ``List`` or"},{"text":"``ScrollView`` settles. For example, when aligned to the bottom edge of"},{"text":"of a scroll view's content, the background of a tab bar becomes"},{"text":"transparent."},{"text":""},{"text":"Specify a value of ``Visibility/visible`` to ensure that the"},{"text":"background of a bar remains visible regardless of where any scroll"},{"text":"view or list stops scrolling."},{"text":""},{"text":"This example shows a view that prefers to always have the tab bar"},{"text":"visible when the middle tab is selected:"},{"text":""},{"text":" TabView {"},{"text":" FirstTab()"},{"text":" MiddleTab()"},{"text":" .toolbarBackgroundVisibility(.visible, for: .tabBar)"},{"text":" LastTab()"},{"text":" }"},{"text":""},{"text":"You can provide multiple placements to customize multiple bars"},{"text":"at once, as in the following example:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackgroundVisibility("},{"text":" .visible, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the background of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarBackgroundVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarColorScheme(_:for:)"],"names":{"title":"toolbarColorScheme(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarColorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred color scheme of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred color scheme flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS. Pass in a value"},{"text":"of nil to match the current system's color scheme."},{"text":""},{"text":"This examples shows a view that renders the navigation bar with a blue"},{"text":"background and dark color scheme:"},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.blue)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":" // other tabs..."},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to customize"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground("},{"text":" .blue, for: .navigationBar, .tabBar)"},{"text":" .toolbarColorScheme("},{"text":" .dark, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Note that the provided color scheme is only respected while a"},{"text":"background is visible in the requested bar. As the background becomes"},{"text":"visible, the bar transitions from the color scheme of the app to the"},{"text":"requested color scheme. You can ensure that the color scheme is always"},{"text":"respected by specifying that the background of the bar always be"},{"text":"visible."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarBackground(.visible)"},{"text":" .toolbarColorScheme(.dark)"},{"text":" }"},{"text":""},{"text":"Depending on the specified bars, the requested color scheme may not be"},{"text":"able to be fullfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - colorScheme: The preferred color scheme of the background"},{"text":" of the bar."},{"text":" - bars: The bars to update the color scheme of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarColorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(_:for:)"],"names":{"title":"toolbar(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"This examples shows a view that hides the navigation bar on iOS, or the"},{"text":"window toolbar items on macOS."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar(.hidden)"},{"text":" }"},{"text":""},{"text":"To hide the entire titlebar on macOS, use this modifier with"},{"text":"``ToolbarPlacement/windowToolbar`` placement."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar(.hidden, for: .windowToolbar)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to hide"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbar("},{"text":" .hidden, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: In macOS, if you provide ``ToolbarCommands`` to the scene"},{"text":" of your app, this modifier disables the toolbar visibility command"},{"text":" while the value of the modifier is not ``ToolbarPlacement/automatic``."},{"text":""},{"text":"Depending on the specified bars, the requested visibility may not be"},{"text":"able to be fulfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the bar."},{"text":" - bars: The bars to update the visibility of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"tvOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"toolbarVisibility(_:for:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVisibility(_:for:)"],"names":{"title":"toolbarVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of a bar managed by SwiftUI."},{"text":""},{"text":"The preferred visibility flows up to the nearest container"},{"text":"that renders a bar. This could be a ``NavigationView`` or ``TabView``"},{"text":"in iOS, or the root view of a ``WindowGroup`` in macOS."},{"text":""},{"text":"This examples shows a view that hides the navigation bar on iOS, or the"},{"text":"window toolbar items on macOS."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility(.hidden)"},{"text":" }"},{"text":""},{"text":"To hide the entire titlebar on macOS, use this modifier with"},{"text":"``ToolbarPlacement/windowToolbar`` placement."},{"text":""},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility(.hidden, for: .windowToolbar)"},{"text":" }"},{"text":""},{"text":"You can provide multiple ``ToolbarPlacement`` instances to hide"},{"text":"multiple bars at once."},{"text":""},{"text":" TabView {"},{"text":" NavigationView {"},{"text":" ContentView()"},{"text":" .toolbarVisibility("},{"text":" .hidden, for: .navigationBar, .tabBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"> Note: In macOS, if you provide ``ToolbarCommands`` to the scene"},{"text":" of your app, this modifier disables the toolbar visibility command"},{"text":" while the value of the modifier is not ``ToolbarPlacement/automatic``."},{"text":""},{"text":"Depending on the specified bars, the requested visibility may not be"},{"text":"able to be fulfilled."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The preferred visibility of the bar."},{"text":" - bars: The bars to update the visibility of or"},{"text":" ``ToolbarPlacement/automatic`` if empty."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarForegroundStyle(_:for:)"],"names":{"title":"toolbarForegroundStyle(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarForegroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred foreground style of bars managed by SwiftUI."},{"text":""},{"text":"This examples shows a view that renders the navigation bar"},{"text":"with a blue foreground color."},{"text":""},{"text":" NavigationStack {"},{"text":" ContentView()"},{"text":" .navigationTitle(\"Blue\")"},{"text":" .toolbarForegroundStyle("},{"text":" .blue, for: .navigationBar)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarForegroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","isUnconditionallyUnavailable":true},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:isEnabled:move:)"],"names":{"title":"reorderContainer(for:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable()`` to the content of your container"},{"text":"to make those views reorderable."},{"text":""},{"text":"Use this overload if your container only has one collection within it."},{"text":"If you have multiple collections of reorderable views, use"},{"text":"``View/reorderContainer(for:in:isEnabled:move:)`` instead and provide a"},{"text":"type for collection identifiers."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a different to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of landmark views that a person can"},{"text":"move to reorder inside the ``VStack``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var landmarks: [Landmark] = []"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(landmarks) { landmark in"},{"text":" LandmarkView(landmark)"},{"text":" }"},{"text":" .reorderable()"},{"text":" }"},{"text":" .reorderContainer(for: Landmark.self) { difference in"},{"text":" apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:in:isEnabled:move:)"],"names":{"title":"reorderContainer(for:in:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type you specify to"},{"text":"identify sections."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - collectionID: The type used to identify collections of reorderable"},{"text":" items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable(collectionID:)`` to the content of"},{"text":"your container to make those views reorderable."},{"text":""},{"text":"Use this overload if your container contains multiple collections. If"},{"text":"your container only has a single collection, use the convenience"},{"text":"``View/reorderContainer(for:isEnabled:move:)`` modifier."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a difference to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of reminder views that a person can"},{"text":"move to reorder inside and between each ``Section`` in the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var model = ReminderModel()"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(model.sections) { section in"},{"text":" Section(section.name) {"},{"text":" ForEach(section.reminders) { reminder in"},{"text":" ReminderView(reminder)"},{"text":" }"},{"text":" .reorderable(collectionID: section.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .reorderContainer("},{"text":" for: Reminder.self, in: ReminderModel.Section.ID.self"},{"text":" ) { difference in"},{"text":" model.apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"collectionID","declarationFragments":[{"kind":"identifier","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"CollectionID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"CollectionID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"CollectionID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:itemID:isEnabled:move:)"],"names":{"title":"reorderContainer(for:itemID:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type and keypath you"},{"text":"specify to identify items."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - itemID: A keypath to the identifier used to represent this item."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable()`` to the content of your container"},{"text":"to make those views reorderable."},{"text":""},{"text":"Use this overload if your container only has one collection within it."},{"text":"If you have multiple collections of reorderable views and you need to"},{"text":"provide the type and keypath you use to identify items, use"},{"text":"``View/reorderContainer(for:itemID:in:isEnabled:move:)`` instead and"},{"text":"provide a type for collection identifiers."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a different to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of landmark views that a person can"},{"text":"move to reorder inside the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var landmarks: [Landmark] = []"},{"text":" @State private var selection = Set()"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(landmarks, id: \\.location) { landmark in"},{"text":" LandmarkView(landmark)"},{"text":" }"},{"text":" .reorderable()"},{"text":" }"},{"text":" .reorderContainer(for: Landmark.self, id: \\.location) {"},{"text":" (difference) in"},{"text":" apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ReorderableSingleCollectionIdentifier","preciseIdentifier":"s:7SwiftUI37ReorderableSingleCollectionIdentifierV"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","reorderContainer(for:itemID:in:isEnabled:move:)"],"names":{"title":"reorderContainer(for:itemID:in:isEnabled:move:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a container of reorderable views, with a type and keypath you"},{"text":"use to identify items and a type you use to identify collections."},{"text":""},{"text":"- Parameters:"},{"text":" - item: The type of reorderable items in the container."},{"text":" - itemID: A keypath to the identifier used to represent this item."},{"text":" - collectionID: The type used to identify collections of reorderable"},{"text":" items in the container."},{"text":" - isEnabled: Whether the container allows reordering."},{"text":" - move: A closure that provides the change at the end of a session."},{"text":""},{"text":"Declare this modifier on your list, stack, grid, or custom layout to"},{"text":"define a reorderable container. Then, apply"},{"text":"``DynamicViewContent/reorderable(collectionID:)`` to the content of"},{"text":"your container to make those views reorderable."},{"text":""},{"text":"Use this overload if your container contains multiple collections and"},{"text":"you need to provide the type and keypath you use to identify items. If"},{"text":"your container only has a single collection, use the convenience"},{"text":"``View/reorderContainer(for:itemID:isEnabled:move:)`` modifier."},{"text":""},{"text":"A person can lift a reorderable view within the container using a drag"},{"text":"gesture. As they lift the item, the system puts a placeholder view in"},{"text":"its place to indicate where the view can drop. As they move the item"},{"text":"through the container, the position of the placeholder updates to"},{"text":"reflect which view the person drags over. When they drop the view, the"},{"text":"system calls the `move` closure and provides the change."},{"text":""},{"text":"The system provides the change as a difference to the closure. The"},{"text":"difference contains the identifiers of items to move, in the order that"},{"text":"the person selected them. It also contains a destination value, which"},{"text":"indicates where to insert the item or items."},{"text":""},{"text":"The following example shows a list of reminder views that a person can"},{"text":"move to reorder inside and between each ``Section`` in the ``List``:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var model = ReminderModel()"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(model.sections) { section in"},{"text":" Section(section.name) {"},{"text":" ForEach("},{"text":" section.reminders, id: \\.databaseID"},{"text":" ) { reminder in"},{"text":" ReminderView(reminder)"},{"text":" }"},{"text":" .reorderable(collectionID: section.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .reorderContainer("},{"text":" for: Reminder.self, itemID: \\.databaseID,"},{"text":" in: ReminderModel.Section.ID.self"},{"text":" ) { difference in"},{"text":" model.apply(difference: difference)"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"collectionID","declarationFragments":[{"kind":"identifier","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"move","declarationFragments":[{"kind":"identifier","spelling":"move"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1},{"name":"CollectionID","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"CollectionID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"CollectionID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reorderContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"CollectionID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"collectionID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"move"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ReorderDifference","preciseIdentifier":"s:7SwiftUI17ReorderDifferenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":">) -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CollectionID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","pasteDestination(for:action:validator:)"],"names":{"title":"pasteDestination(for:action:validator:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pasteDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"validator"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action that adds validated items to a view in response to"},{"text":"the system's Paste command."},{"text":""},{"text":"Use this modifier to paste one or more items into a view from the"},{"text":"Clipboard when someone issues a Paste command. People issue a Paste"},{"text":"command by choosing Edit > Paste from the app's menu, or by using the"},{"text":"Command-V keyboard shortcut. The system enables the Paste command for"},{"text":"your app when the view in focus provides a paste destination."},{"text":""},{"text":"For example, the following code enables people to paste bird names"},{"text":"into a list:"},{"text":""},{"text":" struct PasteDestinationExample: View {"},{"text":" @State private var birds: [String] = []"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" let knownBirds = [\"owl\", \"parrot\", \"swift\","},{"text":" \"sparrow\", \"robin\", \"bluebird\"]"},{"text":""},{"text":" var body: some View {"},{"text":" List(birds, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .pasteDestination(for: String.self) { values in"},{"text":" birds.append(contentsOf: values)"},{"text":" } validator: { values in"},{"text":" values.filter { knownBirds.contains($0) }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The paste destination handles only pasted content with a type that"},{"text":"matches the `payloadType` that you specify. The list in the above"},{"text":"example only accepts strings."},{"text":""},{"text":"Use the `validator` closure to restrict the pasted content to items that"},{"text":"make sense in the context of the view. The above example allows people"},{"text":"to paste only strings that match one of a known list of bird names"},{"text":"because the list is meant to contain only birds. You can omit the final"},{"text":"closure if you don't need to perform any validation."},{"text":""},{"text":"> Note: To enable people to paste using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Paste command,"},{"text":"access the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The type of data that the paste destination accepts."},{"text":" The type must conform to the"},{"text":" "},{"text":" protocol."},{"text":" - action: The action to perform when someone uses the system's Paste"},{"text":" command to paste one or more items of the payload type. The closure"},{"text":" takes one parameter, which is the array of items to paste."},{"text":" - validator: A closure that you implement to validate the data to"},{"text":" paste. SwiftUI calls this before it calls the `action` closure,"},{"text":" and passes in an array of items to validate. Inspect the items, and"},{"text":" return an array that includes only those from the input array that"},{"text":" you consider valid. The array that you return from this closure"},{"text":" becomes the input to the `action` closure. If you return an empty"},{"text":" array, SwiftUI doesn't call the `action` closure."},{"text":""},{"text":"- Returns: A view that people can paste into using the system Paste"},{"text":" command."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"validator","declarationFragments":[{"kind":"identifier","spelling":"validator"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pasteDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"validator"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"] = { $0 }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","cuttable(for:action:)"],"names":{"title":"cuttable(for:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cuttable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action that moves items to the Clipboard in response to"},{"text":"the system's Cut command."},{"text":""},{"text":"Use this modifier to remove one or more items from a collection of"},{"text":"items and then move the items to the Clipboard when someone issues"},{"text":"a Cut command. People issue a Cut command by choosing Edit > Cut from"},{"text":"the app's menu, or by using the Command-X keyboard shortcut. The system"},{"text":"enables the Cut command for your app when it detects cuttable content."},{"text":""},{"text":"For example, the following code enables people to remove bird names"},{"text":"from a list of birds:"},{"text":""},{"text":" struct CuttableExample: View {"},{"text":" @State private var birds = [\"owl\", \"parrot\", \"swift\"]"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(birds, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .cuttable(for: String.self) {"},{"text":" for bird in selection {"},{"text":" birds.removeAll(where: { $0 == bird })"},{"text":" }"},{"text":" return Array(selection)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone selects \"owl\" and issues a Cut command, the `action`"},{"text":"closure removes the selected item from the list and returns it."},{"text":"In response, SwiftUI moves it to the Clipboard. If you want to"},{"text":"copy the item without removing it, use the ``copyable(_:)`` modifier"},{"text":"instead."},{"text":""},{"text":"> Note: To enable people to cut using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Cut command,"},{"text":"update the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payloadType: The type of items to cut."},{"text":" - action: A closure that you implement to delete the selected"},{"text":" items from the collection, and return them for addition to the"},{"text":" Clipboard. The items must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that sends one or more items to the Clipboard"},{"text":" in response to a Cut command."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"payloadType","declarationFragments":[{"kind":"identifier","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cuttable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payloadType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","copyable(_:)"],"names":{"title":"copyable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"copyable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies a list of items to copy in response to the system's Copy"},{"text":"command."},{"text":""},{"text":"Use this modifier to specify one or more items that the system copies"},{"text":"to the Clipboard when someone issues a Copy command while the modified"},{"text":"view has focus. People issue a Copy command by choosing Edit > Copy"},{"text":"from the app's menu, or by using the Command-C keyboard shortcut. The"},{"text":"system enables the Copy command for your app when it detects copyable"},{"text":"content."},{"text":""},{"text":"For example, the following code enables people to copy all of the"},{"text":"strings that they select in a ``List``:"},{"text":""},{"text":" struct CopyableExample: View {"},{"text":" let strings = [\"Alpha\", \"Beta\", \"Gamma\"]"},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(strings, id: \\.self, selection: $selection) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .copyable(Array(selection))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The command copies each item's representation as specified by the"},{"text":"item's conformance to the"},{"text":""},{"text":"protocol. The above example records selection using each list item's"},{"text":"corresponding string, and strings conform to the `Transferable` protocol"},{"text":"by default. For more complex cases, you might need to take additional"},{"text":"steps."},{"text":""},{"text":"For example, the following code displays colors composed from a list"},{"text":"of `Item` instances that contain both a color and its name, as well as"},{"text":"an identifier. The list manages selection using item identifiers:"},{"text":""},{"text":" struct Item: Identifiable, Transferable {"},{"text":" let color: Color"},{"text":" let name: String"},{"text":" let id = UUID()"},{"text":""},{"text":" static var transferRepresentation: some TransferRepresentation {"},{"text":" ProxyRepresentation(exporting: \\.name)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct CopyableIDExample: View {"},{"text":" let items: [Item] = ["},{"text":" Item(color: .red, name: \"red\"),"},{"text":" Item(color: .green, name: \"green\"),"},{"text":" Item(color: .blue, name: \"blue\")"},{"text":" ]"},{"text":""},{"text":" @State private var selection: Set = []"},{"text":""},{"text":" var body: some View {"},{"text":" List(items, selection: $selection) { item in"},{"text":" item.color"},{"text":" }"},{"text":" .copyable(items.filter { selection.contains($0.id) })"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example does two things that the previous example didn't have to:"},{"text":""},{"text":"* It converts the list of selected item identifiers into a list of"},{"text":" selected items for use with the copyable modifier."},{"text":"* It ensures that the copyable items conform to the"},{"text":" "},{"text":" protocol, using the item's `name` property as the representation."},{"text":""},{"text":"When someone copies the first item in the list, which appears in the"},{"text":"interface as a red rectangle, and then pastes into a text editor, they"},{"text":"get the string \"red\"."},{"text":""},{"text":"> Note: To enable people to copy using a custom action --- like from a"},{"text":"context menu item --- rather than using the system Copy command,"},{"text":"update the Clipboard directly using an"},{"text":" or a"},{"text":""},{"text":"instance."},{"text":""},{"text":"- Parameters:"},{"text":" - payload: A closure that returns an array of items to copy"},{"text":" to the Clipboard when someone issues a Copy command. The"},{"text":" items in the array must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that adds one or more items to the Clipboard"},{"text":" in response to a Copy command."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"copyable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSuggestions(_:)"],"names":{"title":"searchSuggestions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search suggestions for this view."},{"text":""},{"text":"You can suggest search terms during a search operation by providing a"},{"text":"collection of view to this modifier. The interface presents the"},{"text":"suggestion views as a list of choices when someone activates the"},{"text":"search interface. Associate a string with each suggestion"},{"text":"view by adding the ``View/searchCompletion(_:)`` modifier to"},{"text":"the view. For example, you can suggest fruit types by displaying their"},{"text":"emoji, and provide the corresponding search string as a search"},{"text":"completion in each case:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text)"},{"text":" .searchSuggestions {"},{"text":" Text(\"🍎\").searchCompletion(\"apple\")"},{"text":" Text(\"🍐\").searchCompletion(\"pear\")"},{"text":" Text(\"🍌\").searchCompletion(\"banana\")"},{"text":" }"},{"text":""},{"text":"When someone chooses a suggestion, SwiftUI replaces the text in the"},{"text":"search field with the search completion string. If you omit the search"},{"text":"completion modifier for a particular suggestion view, SwiftUI displays"},{"text":"the suggestion, but the suggestion view doesn't react to taps or clicks."},{"text":""},{"text":"> Important: In tvOS, searchable modifiers only support suggestion views"},{"text":"of type ``Text``, like in the above example. Other platforms can use any"},{"text":"view for the suggestions, including custom views."},{"text":""},{"text":"You can update the suggestions that you provide as conditions change."},{"text":""},{"text":"For example, you can specify an array of suggestions that you store"},{"text":"in a model:"},{"text":""},{"text":" ProductList()"},{"text":" .searchable(text: $text)"},{"text":" .searchSuggestions {"},{"text":" ForEach(model.suggestedSearches) { suggestion in"},{"text":" Label(suggestion.title, image: suggestion.image)"},{"text":" .searchCompletion(suggestion.text)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If the model's `suggestedSearches` begins as an empty array, the"},{"text":"interface doesn't display any suggestions to start. You can then provide"},{"text":"logic that updates the array based on some condition. For example, you"},{"text":"might update the completions based on the current search text. Note that"},{"text":"certain events or actions, like when someone moves a macOS window, might"},{"text":"dismiss the suggestion view."},{"text":""},{"text":"For more information about using search modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:suggestions:)"],"names":{"title":"searchable(text:placement:prompt:suggestions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: Where the search field should attempt to be"},{"text":" placed based on the containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - suggestions: A content builder that produces content that"},{"text":" populates a list of suggestions."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"suggestions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"S","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"suggestions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use the searchable modifier with the searchSuggestions modifier"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSearchActivation(_:)"],"names":{"title":"tabViewSearchActivation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSearchActivation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the activation and deactivation behavior of search in the"},{"text":"search tab."},{"text":""},{"text":"Use this modifier on a ``TabView`` to change how search activation is"},{"text":"handled. The exact activation behavior is determined by the"},{"text":"``TabSearchActivation`` you pass to this modifier:"},{"text":""},{"text":" struct TabExampleView: View {"},{"text":" @State private var text: String = \"\""},{"text":""},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Books\", systemImage: \"book\") {"},{"text":" BooksTab()"},{"text":" }"},{"text":" Tab(role: .search) {"},{"text":" NavigationStack {"},{"text":" SearchContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .searchable(text: $text)"},{"text":" .tabViewSearchActivation(.searchTabSelection)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, search is only activated and deactivated by the user."}]},"functionSignature":{"parameters":[{"name":"activation","declarationFragments":[{"kind":"identifier","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSearchActivation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TabSearchActivation","preciseIdentifier":"s:7SwiftUI19TabSearchActivationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text and tokens, as well as"},{"text":"programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:editableTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:editableTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - editableTokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - isPresented: A ``Binding`` which controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"editableTokens","declarationFragments":[{"kind":"identifier","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"editableTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"],"names":{"title":"searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable with text, tokens, and suggestions, as"},{"text":"well as programmatic presentation."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":"For information about presenting a search field programmatically, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - tokens: A collection of tokens to display and edit in the"},{"text":" search field."},{"text":" - suggestedTokens: A collection of tokens to display as suggestions."},{"text":" - isPresented: A ``Binding`` that controls the presented state"},{"text":" of search."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."},{"text":" - token: A content builder that creates a view given an element in"},{"text":" tokens."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"tokens","declarationFragments":[{"kind":"identifier","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"suggestedTokens","declarationFragments":[{"kind":"identifier","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"token","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"token"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1},{"name":"S","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"MutableCollection","rhsPrecise":"s:SM"},{"kind":"conformance","lhs":"C","rhs":"RandomAccessCollection","rhsPrecise":"s:Sk"},{"kind":"conformance","lhs":"C","rhs":"RangeReplaceableCollection","rhsPrecise":"s:Sm"},{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"C.Element","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"tokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"suggestedTokens"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"token"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MutableCollection","preciseIdentifier":"s:SM"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RandomAccessCollection","preciseIdentifier":"s:Sk"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"RangeReplaceableCollection","preciseIdentifier":"s:Sm"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultScrollAnchor(_:)"],"names":{"title":"defaultScrollAnchor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates an anchor to control which part of the scroll view's"},{"text":"content should be rendered by default."},{"text":""},{"text":"Use this modifier to specify an anchor to control both which part of"},{"text":"the scroll view's content should be visible initially and how"},{"text":"the scroll view handles content size changes."},{"text":""},{"text":"Provide a value of ``UnitPoint/center`` to have the scroll"},{"text":"view start in the center of its content when a scroll view"},{"text":"is scrollable in both axes."},{"text":""},{"text":" ScrollView([.horizontal, .vertical]) {"},{"text":" // initially centered content"},{"text":" }"},{"text":" .defaultScrollAnchor(.center)"},{"text":""},{"text":"Provide a value of ``UnitPoint/bottom`` to have the scroll view"},{"text":"start at the bottom of its content when scrollable in the"},{"text":"vertical axis."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .defaultScrollAnchor(.bottom)"},{"text":""},{"text":"The user may scroll away from the initial defined scroll position."},{"text":"When the content size of the scroll view changes, it may consult"},{"text":"the anchor to know how to reposition the content."},{"text":""}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultScrollAnchor(_:for:)"],"names":{"title":"defaultScrollAnchor(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates an anchor to control the position of a scroll view in a"},{"text":"particular circumstance."},{"text":""},{"text":"You can associate a ``UnitPoint`` to a ``ScrollView`` using the"},{"text":"``View/defaultScrollAnchor(_:)`` modifier. By default, the system"},{"text":"uses this point for different kinds of behaviors including:"},{"text":" - Where the scroll view should initially be scrolled"},{"text":" - How the scroll view should handle content size or"},{"text":" container size changes"},{"text":" - How the scroll view should align content smaller than"},{"text":" its container size"},{"text":""},{"text":"You can further customize this behavior by assigning different unit"},{"text":"points for these different cases."},{"text":""},{"text":"For example, you can use the ``View/defaultScrollAnchor(_:)`` modifier"},{"text":"to provide a value of ``UnitPoint/bottom`` as the anchor for all cases"},{"text":"and then opt out of certain cases by providing a different value"},{"text":"for them."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .defaultScrollAnchor(.bottom)"},{"text":" .defaultScrollAnchor(.topLeading, for: .alignment)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultScrollAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollAnchorRole","preciseIdentifier":"s:7SwiftUI16ScrollAnchorRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundExtensionEffect()"],"names":{"title":"backgroundExtensionEffect()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the background extension effect to the view. The view will be"},{"text":"duplicated into mirrored copies which will be placed around the view on"},{"text":"any edge with available safe area. Additionally, a blur effect will be"},{"text":"applied on top to blur out the copies."},{"text":""},{"text":"Use this modifier when you want to extend the view beyond its bounds so"},{"text":"the copies can function as backgrounds for other elements on top. The"},{"text":"most common use case is to apply this to a view in the detail column of"},{"text":"a navigation split view so it can extend under the sidebar or inspector"},{"text":"region to provide seamless immersive visuals."},{"text":""},{"text":"```"},{"text":"NavigationSplitView {"},{"text":" // sidebar content"},{"text":"} detail: {"},{"text":" ZStack {"},{"text":" BannerView()"},{"text":" .backgroundExtensionEffect()"},{"text":" }"},{"text":"}"},{"text":".inspector(isPresented: $showInspector) {"},{"text":" // inspector content"},{"text":"}"},{"text":"```"},{"text":""},{"text":"Apply this modifier with discretion. This should often be used with only"},{"text":"a single instance of background content with consideration of visual"},{"text":"clarity and performance."},{"text":""},{"text":"- Note: This modifier will clip the view to prevent copies from"},{"text":"overlapping with each other."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundExtensionEffect(isEnabled:)"],"names":{"title":"backgroundExtensionEffect(isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the background extension effect to the view. The view will be"},{"text":"duplicated into mirrored copies which will be placed around the view on"},{"text":"any edge with available safe area. Additionally, a blur effect will be"},{"text":"applied on top to blur out the copies."},{"text":""},{"text":"Use this modifier when you want to create copies outside of the safe"},{"text":"area so the view and its copies together can function as backgrounds for"},{"text":"other elements on top. The most common use case is to apply this to a"},{"text":"view in the detail column of a navigation split view so it can extend"},{"text":"under the sidebar or inspector region to provide seamless immersive"},{"text":"visuals."},{"text":""},{"text":"```"},{"text":"@State private var extendBackground: Bool = true"},{"text":""},{"text":"NavigationSplitView {"},{"text":" // sidebar content"},{"text":"} detail: {"},{"text":" ZStack {"},{"text":" BannerView()"},{"text":" .backgroundExtensionEffect(isEnabled: extendBackground)"},{"text":" }"},{"text":"}"},{"text":".inspector(isPresented: $showInspector) {"},{"text":" // inspector content"},{"text":"}"},{"text":"```"},{"text":""},{"text":"Apply this modifier with discretion. This should often be used with only"},{"text":"a single instance of background content with consideration of visual"},{"text":"clarity and performance."},{"text":""},{"text":"- Parameter isEnabled: Should the extension effect be active or not."},{"text":"- Note: This modifier will clip the view to prevent copies from"},{"text":"overlapping with each other."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundExtensionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicators(_:axes:)"],"names":{"title":"scrollIndicators(_:axes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicators"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of scroll indicators within this view."},{"text":""},{"text":"Use this modifier to hide or show scroll indicators on scrollable"},{"text":"content in views like a ``ScrollView``, ``List``, or ``TextEditor``."},{"text":"This modifier applies the preferred visibility to any"},{"text":"scrollable content within a view hierarchy."},{"text":""},{"text":" ScrollView {"},{"text":" VStack(alignment: .leading) {"},{"text":" ForEach(0..<100) {"},{"text":" Text(\"Row \\($0)\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollIndicators(.hidden)"},{"text":""},{"text":"Use the ``ScrollIndicatorVisibility/hidden`` value to indicate that you"},{"text":"prefer that views never show scroll indicators along a given axis."},{"text":"Use ``ScrollIndicatorVisibility/visible`` when you prefer that"},{"text":"views show scroll indicators. Depending on platform conventions,"},{"text":"visible scroll indicators might only appear while scrolling. Pass"},{"text":"``ScrollIndicatorVisibility/automatic`` to allow views to"},{"text":"decide whether or not to show their indicators."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility to apply to scrollable views."},{"text":" - axes: The axes of scrollable views that the visibility applies to."},{"text":""},{"text":"- Returns: A view with the specified scroll indicator visibility."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"}]},{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicators"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollIndicatorVisibility","preciseIdentifier":"s:7SwiftUI25ScrollIndicatorVisibilityV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":" = [.vertical, .horizontal]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollEdgeEffectStyle(_:for:)"],"names":{"title":"scrollEdgeEffectStyle(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectStyle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the scroll edge effect style for scroll views within this"},{"text":"hierarchy."},{"text":""},{"text":"By default, a scroll view renders an automatic edge effect."},{"text":"Use this modifier to change the scroll edge effect style."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(data) { item in"},{"text":" RowView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollEdgeEffectStyle(.hard, for: .all)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?"}]},{"name":"for","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollEdgeEffectStyle","preciseIdentifier":"s:7SwiftUI21ScrollEdgeEffectStyleV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollEdgeEffectHidden(_:for:)"],"names":{"title":"scrollEdgeEffectHidden(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides any scroll edge effects for scroll views within this"},{"text":"hierarchy."},{"text":""},{"text":"By default, a scroll view renders an automatic edge effect style."},{"text":"Use this modifier to hide any edge effects for scroll views"},{"text":"within this hierarchy."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(data) { item in"},{"text":" RowView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollEdgeEffectHidden()"},{"text":""}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"for","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollEdgeEffectHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollInputBehavior(_:for:)"],"names":{"title":"scrollInputBehavior(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollInputBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables or disables scrolling in scrollable views when using particular"},{"text":"inputs."},{"text":""},{"text":"In contrast to ``View/scrollDisabled(_:)``, this modifier will enable"},{"text":"or disable scrolling only for particular inputs. The following, for"},{"text":"instance, disables double-tap-to-scroll on watchOS while preserving"},{"text":"the ability to scroll via touch and the Digital Crown:"},{"text":""},{"text":" ScrollView(...)"},{"text":" .scrollInputBehavior(.disabled, for: .handGestureShortcut)"},{"text":""},{"text":"If `scrollDisabled(true)` has been applied to this view, scrolling will"},{"text":"be disabled for all inputs and this modifier cannot be used to re-enable"},{"text":"scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: Whether scrolling should be enabled or disabled for this"},{"text":" input."},{"text":" - input: The input for which to enable or disable scrolling."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"}]},{"name":"for","internalName":"input","declarationFragments":[{"kind":"identifier","spelling":"input"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollInputBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputBehavior","preciseIdentifier":"s:7SwiftUI19ScrollInputBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"input"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollInputKind","preciseIdentifier":"s:7SwiftUI15ScrollInputKindV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicatorsFlash(trigger:)"],"names":{"title":"scrollIndicatorsFlash(trigger:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Flashes the scroll indicators of scrollable views when a value changes."},{"text":""},{"text":"When the value that you provide to this modifier changes, the scroll"},{"text":"indicators of any scrollable views within the modified view hierarchy"},{"text":"briefly flash. The following example configures the scroll indicators"},{"text":"to flash any time `flashCount` changes:"},{"text":""},{"text":" @State private var isPresented = false"},{"text":" @State private var flashCount = 0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollIndicatorsFlash(trigger: flashCount)"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" // ..."},{"text":" }"},{"text":" .onChange(of: isPresented) { newValue in"},{"text":" if newValue {"},{"text":" flashCount += 1"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Only scroll indicators that you configure to be visible flash."},{"text":"To flash scroll indicators when a scroll view initially appears,"},{"text":"use ``View/scrollIndicatorsFlash(onAppear:)`` instead."},{"text":""},{"text":"- Parameter value: The value that causes scroll indicators to flash."},{"text":" The value must conform to the"},{"text":" "},{"text":" protocol."},{"text":""},{"text":"- Returns: A view that flashes any visible scroll indicators when a"},{"text":" value changes."}]},"functionSignature":{"parameters":[{"name":"trigger","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollIndicatorsFlash(onAppear:)"],"names":{"title":"scrollIndicatorsFlash(onAppear:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Flashes the scroll indicators of a scrollable view when it appears."},{"text":""},{"text":"Use this modifier to control whether the scroll indicators of a scroll"},{"text":"view briefly flash when the view first appears. For example, you can"},{"text":"make the indicators flash by setting the `onAppear` parameter to `true`:"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollIndicatorsFlash(onAppear: true)"},{"text":""},{"text":"Only scroll indicators that you configure to be visible flash."},{"text":"To flash scroll indicators when a value changes, use"},{"text":"``View/scrollIndicatorsFlash(trigger:)`` instead."},{"text":""},{"text":"- Parameter onAppear: A Boolean value that indicates whether the scroll"},{"text":" indicators flash when the scroll view appears."},{"text":""},{"text":"- Returns: A view that flashes any visible scroll indicators when it"},{"text":" first appears."}]},"functionSignature":{"parameters":[{"name":"onAppear","declarationFragments":[{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollIndicatorsFlash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"onAppear"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollDisabled(_:)"],"names":{"title":"scrollDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Disables or enables scrolling in scrollable views."},{"text":""},{"text":"Use this modifier to control whether a ``ScrollView`` can scroll:"},{"text":""},{"text":" @State private var isScrollDisabled = false"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" Toggle(\"Disable\", isOn: $isScrollDisabled)"},{"text":" MyContent()"},{"text":" }"},{"text":" }"},{"text":" .scrollDisabled(isScrollDisabled)"},{"text":" }"},{"text":""},{"text":"SwiftUI passes the disabled property through the environment, which"},{"text":"means you can use this modifier to disable scrolling for all scroll"},{"text":"views within a view hierarchy. In the following example, the modifier"},{"text":"affects both scroll views:"},{"text":""},{"text":" ScrollView {"},{"text":" ForEach(rows) { row in"},{"text":" ScrollView(.horizontal) {"},{"text":" RowContent(row)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollDisabled(true)"},{"text":""},{"text":"You can also use this modifier to disable scrolling for other kinds"},{"text":"of scrollable views, like a ``List`` or a ``TextEditor``."},{"text":""},{"text":"- Parameter disabled: A Boolean that indicates whether scrolling is"},{"text":" disabled."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollClipDisabled(_:)"],"names":{"title":"scrollClipDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollClipDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether a scroll view clips its content to its bounds."},{"text":""},{"text":"By default, a scroll view clips its content to its bounds, but you can"},{"text":"disable that behavior by using this modifier. For example, if the views"},{"text":"inside the scroll view have shadows that extend beyond the bounds of the"},{"text":"scroll view, you can use this modifier to avoid clipping the shadows:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var disabled: Bool"},{"text":" let colors: [Color] = [.red, .green, .blue, .mint, .teal]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 20) {"},{"text":" ForEach(colors, id: \\.self) { color in"},{"text":" Rectangle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" .foregroundStyle(color)"},{"text":" .shadow(color: .primary, radius: 20)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .scrollClipDisabled(disabled)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The scroll view in the above example clips when the"},{"text":"content view's `disabled` input is `false`, as it does"},{"text":"if you omit the modifier, but not when the input is `true`:"},{"text":""},{"text":"@TabNavigator {"},{"text":" @Tab(\"True\") {"},{"text":" ![A horizontal row of uniformly sized, evenly spaced, vertically aligned squares inside a bounding box that's about twice the height of the squares, and almost four times the width. From left to right, three squares appear in full, while only the first quarter of a fourth square appears at the far right. All the squares have shadows that fade away before reaching the top or the bottom of the bounding box.](View-scrollClipDisabled-1-iOS)"},{"text":" }"},{"text":" @Tab(\"False\") {"},{"text":" ![A horizontal row of uniformly sized, evenly spaced, vertically aligned squares inside a bounding box that's about twice the height of the squares, and almost four times the width. From left to right, three squares appear in full, while only the first quarter of a fourth square appears at the far right. All the squares have shadows that are visible in between squares, but clipped at the top and bottom of the squares.](View-scrollClipDisabled-2-iOS)"},{"text":" }"},{"text":"}"},{"text":""},{"text":"While you might want to avoid clipping parts of views that exceed the"},{"text":"bounds of the scroll view, like the shadows in the above example, you"},{"text":"typically still want the scroll view to clip at some point."},{"text":"Create custom clipping by using the ``View/clipShape(_:style:)``"},{"text":"modifier to add a different clip shape. The following code disables"},{"text":"the default clipping and then adds rectangular clipping that exceeds"},{"text":"the bounds of the scroll view by the default padding amount:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollClipDisabled()"},{"text":" .padding()"},{"text":" .clipShape(Rectangle())"},{"text":""},{"text":"- Parameter disabled: A Boolean value that specifies whether to disable"},{"text":" scroll view clipping."},{"text":""},{"text":"- Returns: A view that disables or enables scroll view clipping."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollClipDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollDismissesKeyboard(_:)"],"names":{"title":"scrollDismissesKeyboard(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDismissesKeyboard"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior in which scrollable content interacts with"},{"text":"the software keyboard."},{"text":""},{"text":"You use this modifier to customize how scrollable content interacts"},{"text":"with the software keyboard. For example, you can specify a value of"},{"text":"``ScrollDismissesKeyboardMode/immediately`` to indicate that you"},{"text":"would like scrollable content to immediately dismiss the keyboard if"},{"text":"present when a scroll drag gesture begins."},{"text":""},{"text":" @State private var text = \"\""},{"text":""},{"text":" ScrollView {"},{"text":" TextField(\"Prompt\", text: $text)"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" .scrollDismissesKeyboard(.immediately)"},{"text":""},{"text":"You can also use this modifier to customize the keyboard dismissal"},{"text":"behavior for other kinds of scrollable views, like a ``List`` or a"},{"text":"``TextEditor``."},{"text":""},{"text":"By default, a ``TextEditor`` is interactive while other kinds"},{"text":"of scrollable content always dismiss the keyboard on a scroll"},{"text":"when linked against iOS 16 or later. Pass a value of"},{"text":"``ScrollDismissesKeyboardMode/never`` to indicate that scrollable"},{"text":"content should never automatically dismiss the keyboard."},{"text":""},{"text":"- Parameter mode: The keyboard dismissal mode that scrollable content"},{"text":" uses."},{"text":""},{"text":"- Returns: A view that uses the specified keyboard dismissal mode."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollDismissesKeyboard"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollDismissesKeyboardMode","preciseIdentifier":"s:7SwiftUI27ScrollDismissesKeyboardModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollBounceBehavior(_:axes:)"],"names":{"title":"scrollBounceBehavior(_:axes:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollBounceBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the bounce behavior of scrollable views along the specified"},{"text":"axis."},{"text":""},{"text":"Use this modifier to indicate whether scrollable views bounce when"},{"text":"people scroll to the end of the view's content, taking into account the"},{"text":"relative sizes of the view and its content. For example, the following"},{"text":"``ScrollView`` only enables bounce behavior if its content is large"},{"text":"enough to require scrolling:"},{"text":""},{"text":" ScrollView {"},{"text":" Text(\"Small\")"},{"text":" Text(\"Content\")"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize)"},{"text":""},{"text":"The modifier passes the scroll bounce mode through the ``Environment``,"},{"text":"which means that the mode affects any scrollable views in the modified"},{"text":"view hierarchy. Provide an axis to the modifier to constrain the kinds"},{"text":"of scrollable views that the mode affects. For example, all the scroll"},{"text":"views in the following example can access the mode value, but"},{"text":"only the two nested scroll views are affected, because only they use"},{"text":"horizontal scrolling:"},{"text":""},{"text":" ScrollView { // Defaults to vertical scrolling."},{"text":" ScrollView(.horizontal) {"},{"text":" ShelfContent()"},{"text":" }"},{"text":" ScrollView(.horizontal) {"},{"text":" ShelfContent()"},{"text":" }"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize, axes: .horizontal)"},{"text":""},{"text":"You can use this modifier to configure any kind of scrollable view,"},{"text":"including ``ScrollView``, ``List``, ``Table``, and ``TextEditor``:"},{"text":""},{"text":" List {"},{"text":" Text(\"Hello\")"},{"text":" Text(\"World\")"},{"text":" }"},{"text":" .scrollBounceBehavior(.basedOnSize)"},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: The bounce behavior to apply to any scrollable views"},{"text":" within the configured view. Use one of the ``ScrollBounceBehavior``"},{"text":" values."},{"text":" - axes: The set of axes to apply `behavior` to. The default is"},{"text":" ``Axis/vertical``."},{"text":""},{"text":"- Returns: A view that's configured with the specified scroll bounce"},{"text":" behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"}]},{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollBounceBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollBounceBehavior","preciseIdentifier":"s:7SwiftUI20ScrollBounceBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":" = [.vertical]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerBackground(_:for:)"],"names":{"title":"containerBackground(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the container background of the enclosing container using a view."},{"text":""},{"text":"The following example uses a ``LinearGradient`` as a background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Blue\") {"},{"text":" Text(\"Blue\")"},{"text":" .containerBackground(.blue.gradient, for: .navigation)"},{"text":" }"},{"text":" NavigationLink(\"Red\") {"},{"text":" Text(\"Red\")"},{"text":" .containerBackground(.red.gradient, for: .navigation)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `.containerBackground(_:for:)` modifier differs from the"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` modifier by automatically"},{"text":"filling an entire parent container. ``ContainerBackgroundPlacement``"},{"text":"describes the available containers."},{"text":""},{"text":"- Parameters"},{"text":" - style: The shape style to use as the container background."},{"text":" - container: The container that will use the background."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"for","internalName":"container","declarationFragments":[{"kind":"identifier","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerBackground(for:alignment:content:)"],"names":{"title":"containerBackground(for:alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the container background of the enclosing container using a view."},{"text":""},{"text":"The following example uses a custom ``View`` as a background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Image\") {"},{"text":" Text(\"Image\")"},{"text":" .containerBackground(for: .navigation) {"},{"text":" Image(name: \"ImageAsset\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `.containerBackground(for:alignment:content:)` modifier differs from"},{"text":"the ``View/background(_:ignoresSafeAreaEdges:)`` modifier by"},{"text":"automatically filling an entire parent container."},{"text":"``ContainerBackgroundPlacement`` describes the available containers."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default is"},{"text":" ``Alignment/center``."},{"text":" - container: The container that will use the background."},{"text":" - content: The view to use as the background of the container."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"container","declarationFragments":[{"kind":"identifier","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"container"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContainerBackgroundPlacement","preciseIdentifier":"s:7SwiftUI28ContainerBackgroundPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentBrowserContextMenu(_:)"],"names":{"title":"documentBrowserContextMenu(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentBrowserContextMenu"},{"kind":"text","spelling":"((["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds to a `DocumentLaunchView` actions that accept"},{"text":"a list of selected files as their parameter."},{"text":""},{"text":"Add `documentBrowserContextMenu` modifier to ``DocumentLaunchView``"},{"text":"to provide additional actions to the document browser items' context menu."},{"text":"For example, a book editor application could have a \"Favorite\" button"},{"text":"that marks user-chosen books as their favorite. The button enables when the user"},{"text":"switches the browser into \"Selection\" mode."},{"text":""},{"text":" import UniformTypeIdentifiers"},{"text":""},{"text":" struct BookEditor: View {"},{"text":""},{"text":" var body: some View {"},{"text":" DocumentLaunchView(for: [.book]) {"},{"text":" NewDocumentButton(\"Start New Book\")"},{"text":" } onDocumentOpen: { url in"},{"text":" BookEditor(url)"},{"text":" }"},{"text":" .documentBrowserContextMenu { selectedURLs in"},{"text":" FavoriteBookButton(urls: selectedURLs)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct FavoriteBookButton: View {"},{"text":" var urls: [URL]?"},{"text":" var body: some View {"},{"text":" Button {"},{"text":" updateFavorite(urls)"},{"text":" } label: {"},{"text":" Image(systemName: allFavorite(urls) ? \"heart.fill\" : \"heart\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func allFavorite(_ urls: [URL]?) -> Bool { ... }"},{"text":" func updateFavorite(_ urls: [URL]?) { ... }"},{"text":" }"},{"text":""},{"text":" struct BookEditor: View {"},{"text":" init(_ url: URL) { ... }"},{"text":" }"},{"text":""},{"text":" extension UTType {"},{"text":" static let book = UTType(exportedAs: \"com.example.bookEditor\")"},{"text":" }"},{"text":""},{"text":"In the example above, the application stores a list of URLs to favorite books,"},{"text":"and does not need to access the file on disk. In cases when an application wants to read"},{"text":"the contents of the URL from the disk or associated metadata, it should call"},{"text":"``URL.startAccessingSecurityScopedResource()`` to gain access to the resource,"},{"text":"and ``URL.stopAccessingSecurityScopedResource()`` to relinquish access when it is not needed."},{"text":""},{"text":"The actions are displayed in the document browser navigation bar"},{"text":"when a document browser is in Select mode, and also added to"},{"text":"context menu for the file items."},{"text":""},{"text":"- Parameters:"},{"text":" - menu: Items representing the content of the menu."}]},"functionSignature":{"parameters":[{"name":"menu","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menu"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentBrowserContextMenu"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"menu"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"]?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":1}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollPhaseChange(_:)"],"names":{"title":"onScrollPhaseChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the scroll phase of the first scroll"},{"text":"view in the hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to a scroll view's"},{"text":"phase. A scroll view may be in a variety of different phases like"},{"text":"panning or decelerating. See ``ScrollPhase`` for more information"},{"text":"on the phases of a scroll view."},{"text":""},{"text":"When the phase of a scroll view changes, the system invokes the action"},{"text":"you provide. In the following example, a selection binding is updated"},{"text":"when the scroll view transitions to the ``ScrollPhase/decelerating``"},{"text":"or ``ScrollPhase/idle`` phase."},{"text":""},{"text":" @Binding var selection: SelectionValue?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { _, newPhase in"},{"text":" if newPhase == .decelerating || newPhase == .idle {"},{"text":" selection = updateSelection()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system can also provide you with the geometry of the scroll view"},{"text":"at the time of the phase change. You can use the geometry to"},{"text":"understand where the scroll view has come or gone between the"},{"text":"phase changes and update dependent state on that information."},{"text":"In the following example, whether toolbar content is hidden is"},{"text":"determined based on the direction of the last user initiated"},{"text":"scroll."},{"text":""},{"text":" @Binding var hidesToolbarContent: Bool"},{"text":" @State private var lastOffset: CGFloat = 0.0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { oldPhase, newPhase, context in"},{"text":" if newPhase == .interacting {"},{"text":" lastOffset = context.geometry.contentOffset.y"},{"text":" }"},{"text":" if oldPhase == .interacting, newPhase != .animating,"},{"text":" context.geometry.contentOffset.y - lastOffset < 0.0"},{"text":" {"},{"text":" hidesToolbarContent = true"},{"text":" } else {"},{"text":" hidesToolbarContent = false"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its phase changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollPhaseChange { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the scroll phase changes."},{"text":" - term oldPhase: The old scroll phase."},{"text":" - term newPhase: The new scroll phase."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollPhaseChange(_:)"],"names":{"title":"onScrollPhaseChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the scroll phase of the first scroll"},{"text":"view in the hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to a scroll view's"},{"text":"phase. A scroll view may be in a variety of different phases like"},{"text":"interacting or decelerating. See ``ScrollPhase`` for more information"},{"text":"on the phases of a scroll view."},{"text":""},{"text":"When the phase of a scroll view changes, the system invokes the action"},{"text":"you provide. In the following example, a selection binding is updated"},{"text":"when the scroll view transitions to the ``ScrollPhase/decelerating``"},{"text":"or ``ScrollPhase/idle`` phase."},{"text":""},{"text":" @Binding var selection: SelectionValue?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { _, newPhase in"},{"text":" if newPhase == .decelerating || newPhase == .idle {"},{"text":" selection = updateSelection()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system can also provide you with a context containing"},{"text":"the geometry of the scroll view at the time of the phase change."},{"text":"You can use the geometry to understand where the scroll view"},{"text":"has come or gone between the phase changes and update"},{"text":"dependent state on that information. In the following example,"},{"text":"whether toolbar content is hidden is determined based on"},{"text":"the direction of the last user initiated scroll."},{"text":""},{"text":" @Binding var hidesToolbarContent: Bool"},{"text":" @State private var lastOffset: CGFloat = 0.0"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollPhaseChange { oldPhase, newPhase, context in"},{"text":" if newPhase == .interacting {"},{"text":" lastOffset = context.geometry.contentOffset.y"},{"text":" }"},{"text":" if oldPhase == .interacting, newPhase != .animating,"},{"text":" context.geometry.contentOffset.y - lastOffset < 0.0"},{"text":" {"},{"text":" hidesToolbarContent = true"},{"text":" } else {"},{"text":" hidesToolbarContent = false"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its phase changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollPhaseChange { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the scroll phase changes."},{"text":" - term oldPhase: The old scroll phase."},{"text":" - term newPhase: The new scroll phase."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollPhaseChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhase","preciseIdentifier":"s:7SwiftUI11ScrollPhaseO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollPhaseChangeContext","preciseIdentifier":"s:7SwiftUI24ScrollPhaseChangeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onScrollGeometryChange(for:of:action:)"],"names":{"title":"onScrollGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"scroll geometry, changes."},{"text":""},{"text":"The geometry of a scroll view changes frequently while scrolling."},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``ScrollGeometry`` to a"},{"text":" your own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know when the user scrolls"},{"text":"a scroll view beyond the top of its content. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" @Binding var isBeyondZero: Bool"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .onScrollGeometryChange(for: Bool.self) { geometry in"},{"text":" geometry.contentOffset.y < geometry.contentInsets.top"},{"text":" } action: { wasBeyondZero, isBeyondZero in"},{"text":" self.isBeyondZero = isBeyondZero"},{"text":" }"},{"text":""},{"text":"If multiple scroll views are found within the view hierarchy,"},{"text":"only the first one will invoke the closure you provide and a runtime"},{"text":"issue will be logged. For example, in the following view, only the"},{"text":"vertical scroll view will have its geometry changes invoke the provided"},{"text":"closure."},{"text":""},{"text":" VStack {"},{"text":" ScrollView(.vertical) { ... }"},{"text":" ScrollView(.horizontal) { ... }"},{"text":" }"},{"text":" .onScrollGeometryChange(for: Bool.self) { geometry in"},{"text":" ..."},{"text":" } action: { oldValue, newValue in"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"For responding to non-scroll geometry changes, see the"},{"text":"``View/onGeometryChange(for:of:action:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a ``ScrollGeometry``."},{"text":" - transform: A closure that transforms a ``ScrollGeometry``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term oldValue: The old value that failed the comparison check."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onScrollGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollGeometry","preciseIdentifier":"s:7SwiftUI14ScrollGeometryV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewBottomAccessory(content:)"],"names":{"title":"tabViewBottomAccessory(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a view as the bottom accessory of the tab view."},{"text":""},{"text":"On iPhone, the placement of the bottom accessory depends on the tab bar"},{"text":"size: when the tab bar is normal size, the accessory appears above"},{"text":"it; when the tab bar is collapsed, the accessory displays inline."},{"text":"Use the ``EnvironmentValues/tabViewBottomAccessoryPlacement``"},{"text":"environment value to adjust the accessory's content based on its"},{"text":"placement."},{"text":""},{"text":"The following example sets a status view as the `TabView`"},{"text":"bottom accessory."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewBottomAccessory {"},{"text":" HomeStatusView()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewBottomAccessory(isEnabled:content:)"],"names":{"title":"tabViewBottomAccessory(isEnabled:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a view as the bottom accessory of the tab view. Use"},{"text":"this modifier to dynamically show and hide the accessory view."},{"text":""},{"text":"On iPhone, the placement of the bottom accessory depends on the tab bar"},{"text":"size: when the tab bar is normal size, the accessory appears above"},{"text":"it; when the tab bar is collapsed, the accessory displays inline."},{"text":"Use the ``EnvironmentValues/tabViewBottomAccessoryPlacement``"},{"text":"environment value to adjust the accessory's content based on its"},{"text":"placement."},{"text":""},{"text":"The following example shows a status view in the `TabView`"},{"text":"bottom accessory when there's a status update."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewBottomAccessory(isEnabled: hasStatusUpdate) {"},{"text":" HomeStatusView()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isEnabled: If true, the bottom accessory is shown; otherwise,"},{"text":" the bottom accessory is hidden."},{"text":" - content: The content view of the tab view accessory."},{"text":""}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewBottomAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":1}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuActionDismissBehavior(_:)"],"names":{"title":"menuActionDismissBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuActionDismissBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Tells a menu whether to dismiss after performing an action."},{"text":""},{"text":"Use this modifier to control the dismissal behavior of a menu."},{"text":"In the example below, the menu doesn't dismiss after someone"},{"text":"chooses either the increase or decrease action:"},{"text":""},{"text":" Menu(\"Font size\") {"},{"text":" Button(action: increase) {"},{"text":" Label(\"Increase\", systemImage: \"plus.magnifyingglass\")"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":" Button(\"Reset\", action: reset)"},{"text":""},{"text":" Button(action: decrease) {"},{"text":" Label(\"Decrease\", systemImage: \"minus.magnifyingglass\")"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":" }"},{"text":""},{"text":"You can use this modifier on any controls that present a menu, like a"},{"text":"``Picker`` that uses the ``PickerStyle/menu`` style or a"},{"text":"``ControlGroup``. For example, the code below creates a picker that"},{"text":"disables dismissal when someone selects one of the options:"},{"text":""},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue.capitalized)"},{"text":" .tag(flavor)"},{"text":" }"},{"text":" }"},{"text":" .pickerStyle(.menu)"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":"You can also use this modifier on context menus. The example below"},{"text":"creates a context menu that stays presented after someone selects an"},{"text":"action to run:"},{"text":""},{"text":" Text(\"Favorite Card Suit\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button(\"♥️ - Hearts\", action: increaseHeartsCount)"},{"text":" Button(\"♣️ - Clubs\", action: increaseClubsCount)"},{"text":" Button(\"♠️ - Spades\", action: increaseSpadesCount)"},{"text":" Button(\"♦️ - Diamonds\", action: increaseDiamondsCount)"},{"text":" }"},{"text":" .menuActionDismissBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: The menu action dismissal behavior to apply."},{"text":""},{"text":"- Returns: A view that has the specified menu dismissal behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuActionDismissBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MenuActionDismissBehavior","preciseIdentifier":"s:7SwiftUI25MenuActionDismissBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","asyncImageURLSession(_:)"],"names":{"title":"asyncImageURLSession(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"asyncImageURLSession"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A modifier that adds a URL session for asynchronous images contained"},{"text":"in the view to use when fetching image data."},{"text":""},{"text":"- Parameters:"},{"text":" - urlSession: An instance of"},{"text":" "},{"text":" for ``AsyncImage`` instances to use for image download data tasks."}]},"functionSignature":{"parameters":[{"name":"urlSession","declarationFragments":[{"kind":"identifier","spelling":"urlSession"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"asyncImageURLSession"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"urlSession"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URLSession","preciseIdentifier":"c:objc(cs)NSURLSession"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchSuggestions(_:for:)"],"names":{"title":"searchSuggestions(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures how to display search suggestions within this view."},{"text":""},{"text":"SwiftUI presents search suggestions differently depending on several"},{"text":"factors, like the platform, the position of the search field, and the"},{"text":"size class. Use this modifier when you want to only display suggestions"},{"text":"in certain ways under certain conditions. For example, you might choose"},{"text":"to display suggestions in a menu when possible, but directly filter"},{"text":"your data source otherwise."},{"text":""},{"text":" enum FruitSuggestion: String, Identifiable {"},{"text":" case apple, banana, orange"},{"text":" var id: Self { self }"},{"text":" }"},{"text":""},{"text":" @State private var text = \"\""},{"text":" @State private var suggestions: [FruitSuggestion] = []"},{"text":""},{"text":" var body: some View {"},{"text":" MainContent()"},{"text":" .searchable(text: $text) {"},{"text":" ForEach(suggestions) { suggestion"},{"text":" Text(suggestion.rawValue)"},{"text":" .searchCompletion(suggestion.rawValue)"},{"text":" }"},{"text":" .searchSuggestions(.hidden, for: .content)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of the search suggestions"},{"text":" for the specified locations."},{"text":" - placements: The set of locations in which to set the visibility of"},{"text":" search suggestions."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"placements","declarationFragments":[{"kind":"identifier","spelling":"placements"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchSuggestions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placements"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchSuggestionsPlacement","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI26SearchSuggestionsPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedTransitionSource(id:in:)"],"names":{"title":"matchedTransitionSource(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Identifies this view as the source of a navigation transition, such"},{"text":"as a zoom transition."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an ``Namespace`` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedTransitionSource(id:in:configuration:)"],"names":{"title":"matchedTransitionSource(id:in:configuration:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Identifies this view as the source of a navigation transition, such"},{"text":"as a zoom transition."},{"text":""},{"text":"The appearance of the source can be configured using the"},{"text":"`configuration` trailing closure. Any modifiers applied will"},{"text":"be smoothly interpolated when a zoom transition originates from"},{"text":"this matched transition source."},{"text":""},{"text":"```"},{"text":"MyView()"},{"text":" .matchedTransitionSource(id: someID, in: someNamespace) { source in"},{"text":" source"},{"text":" .cornerRadius(8.0)"},{"text":" }"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an ``Namespace`` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."},{"text":" - configuration: A closure that you can use to apply styling to the source."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]},{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"some MatchedTransitionSourceConfiguration","rhs":"MatchedTransitionSourceConfiguration","rhsPrecise":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedTransitionSource"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyMatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI41EmptyMatchedTransitionSourceConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MatchedTransitionSourceConfiguration","preciseIdentifier":"s:7SwiftUI36MatchedTransitionSourceConfigurationP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:)"],"names":{"title":"navigationDocument(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:preview:)"],"names":{"title":"navigationDocument(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I2"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - document: The transferable content associated to the"},{"text":" navigation title."},{"text":" - preview: The preview of the document to use when sharing."}]},"functionSignature":{"parameters":[{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"}]},{"name":"preview","declarationFragments":[{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"I1","index":1,"depth":1},{"name":"I2","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I1","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"I2","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"I2"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SharePreview","preciseIdentifier":"s:7SwiftUI12SharePreviewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"I2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDocument(_:)"],"names":{"title":"navigationDocument(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's document for purposes of navigation."},{"text":""},{"text":"In iOS, iPadOS, this populates the title menu with a header"},{"text":"previewing the document. In macOS, this populates a proxy icon."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation document modifiers."},{"text":""},{"text":"- Parameters:"},{"text":" - url: The URL content associated to the"},{"text":" navigation title."}]},"functionSignature":{"parameters":[{"name":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDocument"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(removing:)"],"names":{"title":"toolbar(removing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Remove a toolbar item present by default"},{"text":""},{"text":"Use this modifier to remove toolbar items other `View`s add"},{"text":"by default. For example, to remove the sidebar toggle toolbar"},{"text":"item provided by `NavigationSplitView`:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" SidebarView()"},{"text":" .toolbar(removing: .sidebarToggle)"},{"text":" } detail: {"},{"text":" DetailView()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - defaultItemKind: The kind of default item to remove"}]},"functionSignature":{"parameters":[{"name":"removing","internalName":"defaultItemKind","declarationFragments":[{"kind":"identifier","spelling":"defaultItemKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removing"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultItemKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarDefaultItemKind","preciseIdentifier":"s:7SwiftUI22ToolbarDefaultItemKindV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaBar(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaBar(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Shows the specified content as a custom bar above or below the modified"},{"text":"view."},{"text":""},{"text":"Similar to the ``View/safeAreaInset(edge:alignment:spacing:content:)-4s51l``"},{"text":"modifier, the `content` view is anchored to the specified vertical"},{"text":"edge of the parent view and its height insets the safe area."},{"text":""},{"text":"Additionally, it extends the edge effect of any scroll views affected by"},{"text":"the inset safe area."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The vertical edge of the view on which `content` is placed."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" horizontally."},{"text":" - content: A content builder function providing the view to display as a"},{"text":" custom bar."},{"text":""},{"text":"- Returns: A new view that displays `content` above or below the"},{"text":" modified view,"},{"text":" making space for the `content` view by vertically insetting the"},{"text":" modified view, adjusting the safe area and scroll edge effects to"},{"text":" match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaBar(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaBar(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Shows the specified content as a custom bar beside the modified view."},{"text":""},{"text":"Similar to the ``View/safeAreaInset(edge:alignment:spacing:content:)-6gwby``"},{"text":"modifier, the `content` view is anchored to the specified horizontal"},{"text":"edge of the parent view and its width insets the safe area."},{"text":""},{"text":"Additionally, it extends the edge effect of any scroll views affected by"},{"text":"the inset safe area."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The horizontal edge of the view on which `content` is placed."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" vertically."},{"text":" - content: A content builder function providing the view to display as a"},{"text":" custom bar."},{"text":""},{"text":"- Returns: A new view that displays `content` beside the modified view,"},{"text":" making space for the `content` view by horizontally insetting the"},{"text":" modified view, adjusting the safe area and scroll edge effects to"},{"text":" match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaBar"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation, using a string"},{"text":"binding."},{"text":""},{"text":"In iOS, iPadOS, and macOS, this allows editing the navigation title"},{"text":"when the title is displayed in the toolbar."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The text of the title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defersSystemGestures(on:)"],"names":{"title":"defersSystemGestures(on:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defersSystemGestures"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"on"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the screen edge from which you want your gesture to take"},{"text":"precedence over the system gesture."},{"text":""},{"text":"The following code defers the vertical screen edges system gestures"},{"text":"of a given canvas."},{"text":""},{"text":" struct DeferredView: View {"},{"text":" var body: some View {"},{"text":" Canvas()"},{"text":" .defersSystemGestures(on: .vertical)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter edges: A value that indicates the screen edge from which"},{"text":" you want your gesture to take precedence over the system gesture."}]},"functionSignature":{"parameters":[{"name":"on","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defersSystemGestures"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"on"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textContentType(_:)"],"names":{"title":"textContentType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the text content type for this view, which the system uses to"},{"text":"offer suggestions while the user enters text on an iOS or tvOS device."},{"text":""},{"text":"Use this method to set the content type for input text."},{"text":"For example, you can configure a ``TextField`` for the entry of email"},{"text":"addresses:"},{"text":""},{"text":" TextField(\"Enter your email\", text: $emailAddress)"},{"text":" .textContentType(.emailAddress)"},{"text":""},{"text":"- Parameter textContentType: One of the content types available in the"},{"text":" "},{"text":" structure that identify the semantic meaning expected for a text-entry"},{"text":" area. These include support for email addresses, location names, URLs,"},{"text":" and telephone numbers, to name just a few."}]},"functionSignature":{"parameters":[{"name":"textContentType","declarationFragments":[{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textContentType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textContentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UITextContentType","preciseIdentifier":"c:@T@UITextContentType"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarTitleMenu(content:)"],"names":{"title":"toolbarTitleMenu(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configure the title menu of a toolbar."},{"text":""},{"text":"A title menu represent common functionality that can be done on the"},{"text":"content represented by your app's toolbar or navigation title. This"},{"text":"menu may be populated from your app's commands like"},{"text":"``CommandGroupPlacement/saveItem`` or"},{"text":"``CommandGroupPlacement/printItem``."},{"text":""},{"text":" ContentView()"},{"text":" .toolbar {"},{"text":" ToolbarTitleMenu()"},{"text":" }"},{"text":""},{"text":"You can provide your own set of actions to override this behavior."},{"text":""},{"text":" ContentView()"},{"text":" .toolbarTitleMenu {"},{"text":" DuplicateButton()"},{"text":" PrintButton()"},{"text":" }"},{"text":""},{"text":"In iOS and iPadOS, this will construct a menu that can be presented by"},{"text":"tapping the navigation title in the app's navigation bar."},{"text":""},{"text":"- Parameter content: The content associated to the toolbar title menu."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchPresentationToolbarBehavior(_:)"],"names":{"title":"searchPresentationToolbarBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchPresentationToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the search toolbar presentation behavior for any"},{"text":"searchable modifiers within this view."},{"text":""},{"text":"By default on iOS, a toolbar may hide parts of its content when"},{"text":"presenting search to focus on searching. You can override"},{"text":"this behavior by providing a value of"},{"text":"``SearchPresentationToolbarBehavior/avoidHidingContent``"},{"text":"to this modifer."},{"text":""},{"text":" @State private var searchText = \"\""},{"text":""},{"text":" List {"},{"text":" // ... content"},{"text":" }"},{"text":" .searchable(text: $searchText)"},{"text":" .searchPresentationToolbarBehavior(.avoidHidingContent)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchPresentationToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchPresentationToolbarBehavior","preciseIdentifier":"s:7SwiftUI33SearchPresentationToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":1}},{"domain":"macOS","introduced":{"major":14,"minor":1}},{"domain":"tvOS","introduced":{"major":17,"minor":1}},{"domain":"watchOS","introduced":{"major":10,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchToolbarBehavior(_:)"],"names":{"title":"searchToolbarBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior for search in the toolbar."},{"text":""},{"text":"This modifier can be used to change the default behavior of a search"},{"text":"field that appears in the toolbar. Place this modifier after the"},{"text":"``View/searchable(text:isPresented:placement:prompt:)`` modifier that"},{"text":"renders search in the toolbar."},{"text":""},{"text":"On iPhone, the search field in the bottom toolbar can be configured to"},{"text":"appear as a button-like control when inactive:"},{"text":""},{"text":" @State private var searchText = \"\""},{"text":""},{"text":" NavigationStack {"},{"text":" RecipeList()"},{"text":" .searchable($searchText)"},{"text":" .searchToolbarBehavior(.minimized)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchToolbarBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchToolbarBehavior","preciseIdentifier":"s:7SwiftUI21SearchToolbarBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchDictationBehavior(_:)"],"names":{"title":"searchDictationBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchDictationBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the dictation behavior for any search fields configured"},{"text":"by the searchable modifier."},{"text":""},{"text":"By default, search fields on visionOS will automatically start"},{"text":"dictation when looking at the dictation button in the search field."},{"text":"You can change this behavior by providing a value of"},{"text":"``TextInputDictationBehavior/preventDictation`` to this modifier."},{"text":""},{"text":"See the ``TextInputDictationBehavior`` type for more information"},{"text":"on the available dictation behaviors."}]},"functionSignature":{"parameters":[{"name":"dictationBehavior","declarationFragments":[{"kind":"identifier","spelling":"dictationBehavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchDictationBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"dictationBehavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputDictationBehavior","preciseIdentifier":"s:7SwiftUI26TextInputDictationBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:_:)"],"names":{"title":"focusedValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by injecting a value that you provide for use by"},{"text":"other views whose state depends on the focused view hierarchy."},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of exported focus values."},{"text":" - value: The focus value to export."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedValue(_:_:)"],"names":{"title":"focusedValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided value to other views whose"},{"text":"state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneValue(_:_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated"},{"text":"values, and you need an app- or scene-scoped element like a command or"},{"text":"toolbar item that operates on the value associated with whichever view"},{"text":"currently has focus. Each focusable view can supply its own value:"},{"text":""},{"text":""},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of exported focus values."},{"text":" - value: The focus value to export, or `nil` if no value is"},{"text":" currently available."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:_:)"],"names":{"title":"focusedSceneValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by injecting a value that you provide for use by"},{"text":"other views whose state depends on the focused scene."},{"text":""},{"text":"Use this method instead of ``View/focusedValue(_:_:)`` for values that"},{"text":"must be visible regardless of where focus is located in the active"},{"text":"scene. For example, if an app needs a command for moving focus to a"},{"text":"particular text field in the sidebar, it could use this modifier to"},{"text":"publish a button action that's visible to command views as long as the"},{"text":"scene is active, and regardless of where focus happens to be in it."},{"text":""},{"text":" struct Sidebar: View {"},{"text":" @FocusState var isFiltering: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused(when: $isFiltering)"},{"text":" .focusedSceneValue(\\.filterAction) {"},{"text":" isFiltering = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct NavigationCommands: Commands {"},{"text":" @FocusedValue(\\.filterAction) var filterAction"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Navigate\") {"},{"text":" Button(\"Filter in Sidebar\") {"},{"text":" filterAction?()"},{"text":" }"},{"text":" }"},{"text":" .disabled(filterAction == nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" extension FocusedValues {"},{"text":" @Entry var filterAction: (() -> Void)?"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of published focus values."},{"text":" - value: The focus value to publish."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneValue(_:_:)"],"names":{"title":"focusedSceneValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided value to other views whose"},{"text":"state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedValue(_:_:)`` for values that"},{"text":"must be visible regardless of where focus is located in the active"},{"text":"scene. For example, if an app needs a command for moving focus to a"},{"text":"particular text field in the sidebar, it could use this modifier to"},{"text":"publish a button action that's visible to command views as long as the"},{"text":"scene is active, and regardless of where focus happens to be in it."},{"text":""},{"text":" struct Sidebar: View {"},{"text":" @FocusState var isFiltering: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(...)"},{"text":" .focused(when: $isFiltering)"},{"text":" .focusedSceneValue(\\.filterAction) {"},{"text":" isFiltering = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct NavigationCommands: Commands {"},{"text":" @FocusedValue(\\.filterAction) var filterAction"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Navigate\") {"},{"text":" Button(\"Filter in Sidebar\") {"},{"text":" filterAction?()"},{"text":" }"},{"text":" }"},{"text":" .disabled(filterAction == nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" extension FocusedValues {"},{"text":" @Entry var filterAction: (() -> Void)?"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: The key path to associate `value` with when adding"},{"text":" it to the existing table of published focus values."},{"text":" - value: The focus value to publish, or `nil` if no value is"},{"text":" currently available."},{"text":"- Returns: A modified representation of this view."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"FocusedValues","preciseIdentifier":"s:7SwiftUI13FocusedValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarTitleDisplayMode(_:)"],"names":{"title":"toolbarTitleDisplayMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the toolbar title display mode for this view."},{"text":""},{"text":"Use this modifier to override the default toolbar title display"},{"text":"mode."},{"text":""},{"text":" NavigationStack {"},{"text":" ContentView()"},{"text":" .toolbarTitleDisplayMode(.inlineLarge)"},{"text":" }"},{"text":""},{"text":"See ``ToolbarTitleDisplayMode`` for more information on the"},{"text":"different kinds of display modes. This modifier has no effect"},{"text":"on macOS."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarTitleDisplayMode","preciseIdentifier":"s:7SwiftUI23ToolbarTitleDisplayModeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","autocorrectionDisabled(_:)"],"names":{"title":"autocorrectionDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocorrectionDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to disable autocorrection for this view."},{"text":""},{"text":"Use this method when the effect of autocorrection would"},{"text":"make it more difficult for the user to input information. The entry of"},{"text":"proper names and street addresses are examples where autocorrection can"},{"text":"negatively affect the user's ability complete a data entry task."},{"text":""},{"text":"The example below configures a ``TextField`` with the default"},{"text":"keyboard. Disabling autocorrection allows the user to enter arbitrary"},{"text":"text without the autocorrection system offering suggestions or"},{"text":"attempting to override their input."},{"text":""},{"text":" TextField(\"1234 Main St.\", text: $address)"},{"text":" .keyboardType(.default)"},{"text":" .autocorrectionDisabled(true)"},{"text":""},{"text":"- Parameter disable: A Boolean value that indicates whether"},{"text":" autocorrection is disabled for this view. The default value is `true`."}]},"functionSignature":{"parameters":[{"name":"disable","declarationFragments":[{"kind":"identifier","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"autocorrectionDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disableAutocorrection(_:)"],"names":{"title":"disableAutocorrection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disableAutocorrection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to disable autocorrection for this view."},{"text":""},{"text":"Use `disableAutocorrection(_:)` when the effect of autocorrection would"},{"text":"make it more difficult for the user to input information. The entry of"},{"text":"proper names and street addresses are examples where autocorrection can"},{"text":"negatively affect the user's ability complete a data entry task."},{"text":""},{"text":"In the example below configures a ``TextField`` with the `.default`"},{"text":"keyboard. Disabling autocorrection allows the user to enter arbitrary"},{"text":"text without the autocorrection system offering suggestions or"},{"text":"attempting to override their input."},{"text":""},{"text":" TextField(\"1234 Main St.\", text: $address)"},{"text":" .keyboardType(.default)"},{"text":" .disableAutocorrection(true)"},{"text":""},{"text":"- Parameter disable: A Boolean value that indicates whether"},{"text":" autocorrection is disabled for this view."}]},"functionSignature":{"parameters":[{"name":"disable","declarationFragments":[{"kind":"identifier","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disableAutocorrection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"autocorrectionDisabled(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollPosition(_:anchor:)"],"names":{"title":"scrollPosition(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a binding to a scroll position with a scroll view within this"},{"text":"view."},{"text":""},{"text":"Use this modifier to control where a scroll view is positioned. You"},{"text":"can use the ``ScrollPosition`` type to scroll in a variety of ways:"},{"text":" - scroll to a view with a provided identity"},{"text":" - scroll to a concrete offset"},{"text":" - scroll to an edge"},{"text":""},{"text":"You can create a scroll position with a specified view identity type"},{"text":""},{"text":" @State private var position"},{"text":" = ScrollPosition(idType: MyItem.ID.self)"},{"text":""},{"text":"SwiftUI will use that along with the views in the scroll view's"},{"text":"scroll target layout to programmatically scroll to those views and to"},{"text":"update the ``ScrollPosition/viewID`` property as the user scrolls."},{"text":"Use the ``View/scrollTargetLayout(isEnabled:)`` modifier to configure"},{"text":"which the layout that contains your scroll targets."},{"text":""},{"text":"When scrolling to a view with an identifier, SwiftUI will update"},{"text":"the position with the value of the top-most view scrolled within"},{"text":"the visible region of the scroll view."},{"text":""},{"text":"In the following example, the position binding will update to reflect"},{"text":"the top-most ItemView as the scroll view scrolls."},{"text":""},{"text":" @Binding var items: [MyItem]"},{"text":" @State private var position: ScrollPosition"},{"text":" = .init(idType: MyItem.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":""},{"text":"You can then query the currently scrolled id by using the"},{"text":"``ScrollPosition/viewID(type:)``."},{"text":""},{"text":" let viewID: MyItem.ID = position.viewID(type: MyItem.ID.self)"},{"text":""},{"text":"While most use cases will use view identity based scrolling, you"},{"text":"can also use the scroll position type to scroll to offsets or edges."},{"text":"For example, you can create a button that scrolls to the bottom of"},{"text":"the scroll view by specifying an edge."},{"text":""},{"text":" Button(\"Scroll to bottom\") {"},{"text":" position.scrollTo(edge: .bottom)"},{"text":" }"},{"text":""},{"text":"When configuring a scroll position, SwiftUI will attempt to keep that"},{"text":"position stable. For an edge, that means keeping a top aligned"},{"text":"scroll view scrolled to the top if the content size changes."},{"text":"For a point, SwiftUI won't attempt to keep that exact offset scrolled"},{"text":"when the content size changes nor will it update to a new offset"},{"text":"when that changes."},{"text":""},{"text":"For view identity positions, SwiftUI will attempt to keep the view with"},{"text":"the identity specified in the provided binding visible when events occur"},{"text":"that might cause it to be scrolled out of view by the system."},{"text":"Some examples of these include:"},{"text":" - The data backing the content of a scroll view is re-ordered."},{"text":" - The size of the scroll view changes, like when a window is resized"},{"text":" on macOS or during a rotation on iOS."},{"text":" - The scroll view initially lays out it content defaulting to"},{"text":" the top most view, but the binding has a different view's identity."},{"text":""},{"text":"You can provide an anchor to a view identity based position to:"},{"text":" - Influence which view the system chooses as the view whose"},{"text":" identity value will update the providing binding as the scroll"},{"text":" view scrolls."},{"text":" - Control the alignment of the view when scrolling to a view"},{"text":" when writing a new binding value."},{"text":""},{"text":"In the example below, the bottom most view will be chosen to update the"},{"text":"position binding with."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position, anchor: .bottom)"},{"text":""},{"text":"For example, providing a value of ``UnitPoint/bottom`` will prefer"},{"text":"to have the bottom-most view chosen and prefer to scroll to views"},{"text":"aligned to the bottom."}]},"functionSignature":{"parameters":[{"name":"position","declarationFragments":[{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ScrollPosition","preciseIdentifier":"s:7SwiftUI14ScrollPositionV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollPosition(id:anchor:)"],"names":{"title":"scrollPosition(id:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a binding to be updated when a scroll view within this"},{"text":"view scrolls."},{"text":""},{"text":"Use this modifier along with the ``View/scrollTargetLayout(isEnabled:)``"},{"text":"modifier to know the identity of the view that is actively scrolled."},{"text":"As the scroll view scrolls, the binding will be updated with the"},{"text":"identity of the leading-most / top-most view."},{"text":""},{"text":"Use the ``View/scrollTargetLayout(isEnabled:)`` modifier to configure"},{"text":"which the layout that contains your scroll targets. In the following"},{"text":"example, the top-most ItemView will update with the scrolledID"},{"text":"binding as the scroll view scrolls."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition(id: $scrolledID)"},{"text":""},{"text":"You can write to the binding to scroll to the view with"},{"text":"the provided identity."},{"text":""},{"text":" @Binding var items: [Item]"},{"text":" @Binding var scrolledID: Item.ID?"},{"text":""},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .scrollPosition(id: $scrolledID)"},{"text":" .toolbar {"},{"text":" Button(\"Scroll to Top\") {"},{"text":" scrolledID = items.first"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI will attempt to keep the view with the identity specified"},{"text":"in the provided binding visible when events occur that might cause it"},{"text":"to be scrolled out of view by the system. Some examples of these"},{"text":"include:"},{"text":" - The data backing the content of a scroll view is re-ordered."},{"text":" - The size of the scroll view changes, like when a window is resized"},{"text":" on macOS or during a rotation on iOS."},{"text":" - The scroll view initially lays out it content defaulting to"},{"text":" the top most view, but the binding has a different view's identity."},{"text":""},{"text":"You can provide an anchor to this modifier to both:"},{"text":" - Influence which view the system chooses as the view whose"},{"text":" identity value will update the providing binding as the scroll"},{"text":" view scrolls."},{"text":" - Control the alignment of the view when scrolling to a view"},{"text":" when writing a new binding value."},{"text":""},{"text":"For example, providing a value of ``UnitPoint/bottom`` will prefer"},{"text":"to have the bottom-most view chosen and prefer to scroll to views"},{"text":"aligned to the bottom."},{"text":""},{"text":"If no anchor has been provided, SwiftUI will scroll the minimal amount"},{"text":"when using the scroll position to programmatically scroll to a view."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Hashable","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollPosition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":")?>, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9focusableyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusable(_:)"],"names":{"title":"focusable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies if the view is focusable."},{"text":""},{"text":"- Parameter isFocusable: A Boolean value that indicates whether this"},{"text":" view is focusable."},{"text":""},{"text":"- Returns: A view that sets whether a view is focusable."}]},"functionSignature":{"parameters":[{"name":"isFocusable","declarationFragments":[{"kind":"identifier","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusable(_:interactions:)"],"names":{"title":"focusable(_:interactions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies if the view is focusable, and if so, what focus-driven"},{"text":"interactions it supports."},{"text":""},{"text":"By default, SwiftUI enables all possible focus interactions. However, on"},{"text":"macOS and iOS it is conventional for button-like views to only accept"},{"text":"focus when the user has enabled keyboard navigation system-wide in the"},{"text":"Settings app. Clients can reproduce this behavior with custom views by"},{"text":"only supporting `.activate` interactions."},{"text":""},{"text":" MyTapGestureView(...)"},{"text":" .focusable(interactions: .activate)"},{"text":""},{"text":"- Note: The focus interactions allowed for custom views changed in"},{"text":" macOS 14—previously, custom views could only become focused with"},{"text":" keyboard navigation enabled system-wide. Clients built using older"},{"text":" SDKs will continue to see the older focus behavior, while custom views"},{"text":" in clients built using macOS 14 or later will always be focusable"},{"text":" unless the client requests otherwise by specifying a restricted set of"},{"text":" focus interactions."},{"text":""},{"text":"- Parameters:"},{"text":" - isFocusable: `true` if the view should participate in focus;"},{"text":" `false` otherwise. The default value is `true`."},{"text":" - interactions: The types of focus interactions supported by the view."},{"text":" The default value is `.automatic`."},{"text":"- Returns: A view that sets whether its child is focusable."}]},"functionSignature":{"parameters":[{"name":"isFocusable","declarationFragments":[{"kind":"identifier","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"interactions","declarationFragments":[{"kind":"identifier","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocusable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"interactions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusInteractions","preciseIdentifier":"s:7SwiftUI17FocusInteractionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusEffectDisabled(_:)"],"names":{"title":"focusEffectDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition that controls whether this view can display focus"},{"text":"effects, such as a default focus ring or hover effect."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button does not display a focus"},{"text":"effect because the outer `focusEffectDisabled(_:)` modifier overrides"},{"text":"the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Press\") {}"},{"text":" .focusEffectDisabled(false)"},{"text":" }"},{"text":" .focusEffectDisabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether this view"},{"text":" can display focus effects."},{"text":"- Returns: A view that controls whether focus effects can be displayed"},{"text":" in this view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusEffectDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelsVisibility(_:)"],"names":{"title":"labelsVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls the visibility of labels of any controls contained within this"},{"text":"view."},{"text":""},{"text":"Use this modifier when you want to omit a label from one or more"},{"text":"labeled content in your user interface. For example, the first ``Toggle``"},{"text":"in the following example hides its label:"},{"text":""},{"text":" VStack {"},{"text":" Toggle(isOn: $toggle1) {"},{"text":" Text(\"Toggle 1\")"},{"text":" }"},{"text":" .labelsVisibility(.hidden)"},{"text":""},{"text":" Toggle(isOn: $toggle2) {"},{"text":" Text(\"Toggle 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``VStack`` in the example above centers the first toggle's control"},{"text":"element in the available space, while it centers the second toggle's"},{"text":"combined label and control element:"},{"text":""},{"text":"![A screenshot showing a view with two toggle controls where one label"},{"text":" is visible and the other label is hidden.](View-labelsHidden-1.png)"},{"text":""},{"text":"Always provide a label for controls, even when you hide the label,"},{"text":"because SwiftUI uses labels for other purposes, including accessibility."},{"text":""},{"text":"On iOS, a `Picker` within a `Menu` hides its label by default. You can use"},{"text":"this modifier to explicitly show the label in that context:"},{"text":""},{"text":" Menu {"},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" Text(\"Chocolate\").tag(Flavor.chocolate)"},{"text":" Text(\"Vanilla\").tag(Flavor.vanilla)"},{"text":" Text(\"Strawberry\").tag(Flavor.strawberry)"},{"text":" }"},{"text":" .labelsVisibility(.visible)"},{"text":" }"},{"text":""},{"text":"> Note: This modifier doesn't work for all labels. It applies to"},{"text":" ``LabeledContent`` elements, including controls like ``Picker`` and"},{"text":" ``Toggle``, but not to controls like a bordered button where the label"},{"text":" is inside the button's border."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarRole(_:)"],"names":{"title":"toolbarRole(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarRole"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the semantic role for the content populating the toolbar."},{"text":""},{"text":"Use this modifier to configure the semantic role for content"},{"text":"populating your app's toolbar. SwiftUI uses this role when"},{"text":"rendering the content of your app's toolbar."},{"text":""},{"text":" ContentView()"},{"text":" .navigationTitle(\"Browser\")"},{"text":" .toolbarRole(.browser)"},{"text":" .toolbar {"},{"text":" ToolbarItem(placement: .primaryAction) {"},{"text":" AddButton()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter role: The role of the toolbar."}]},"functionSignature":{"parameters":[{"name":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarRole"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarRole","preciseIdentifier":"s:7SwiftUI11ToolbarRoleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(addTraits:)"],"names":{"title":"accessibility(addTraits:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"addTraits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the given traits to the view."}]},"functionSignature":{"parameters":[{"name":"addTraits","internalName":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"addTraits"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityAddTraits(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibility(removeTraits:)"],"names":{"title":"accessibility(removeTraits:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removeTraits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Removes the given traits from this view."}]},"functionSignature":{"parameters":[{"name":"removeTraits","internalName":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"removeTraits"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"},{"domain":"watchOS","introduced":{"major":6},"deprecated":{"major":100000,"minor":0},"renamed":"accessibilityRemoveTraits(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the modified view `count` times. The action closure receives"},{"text":"the location of the interaction."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"The following code adds a tap gesture to a ``Circle`` that toggles the color"},{"text":"of the circle based on the tap location."},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" @State private var location: CGPoint = .zero"},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(self.location.y > 50 ? Color.blue : Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .onTapGesture { location in"},{"text":" self.location = location"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CoordinateSpace","preciseIdentifier":"s:7SwiftUI15CoordinateSpaceO"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"macOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"},{"domain":"watchOS","introduced":{"major":9,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use overload that accepts a CoordinateSpaceProtocol instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the modified view `count` times. The action closure receives"},{"text":"the location of the interaction."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"The following code adds a tap gesture to a ``Circle`` that toggles the color"},{"text":"of the circle based on the tap location."},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" @State private var location: CGPoint = .zero"},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(self.location.y > 50 ? Color.blue : Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .onTapGesture { location in"},{"text":" self.location = location"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values. Defaults to ``CoordinateSpace/local``."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","interactionActivityTrackingTag(_:)"],"names":{"title":"interactionActivityTrackingTag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactionActivityTrackingTag"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a tag that you use for tracking interactivity."},{"text":""},{"text":"The following example tracks the scrolling activity of a ``List``:"},{"text":""},{"text":" List {"},{"text":" Section(\"Today\") {"},{"text":" ForEach(messageStore.today) { message in"},{"text":" Text(message.title)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .interactionActivityTrackingTag(\"MessagesList\")"},{"text":""},{"text":"The resolved activity tracking tag is additive, so using the"},{"text":"modifier across the view hierarchy builds the tag from top to"},{"text":"bottom. The example below shows a hierarchical usage of this"},{"text":"modifier with the resulting tag `Home-Feed`:"},{"text":""},{"text":" var body: some View {"},{"text":" Home()"},{"text":" .interactionActivityTrackingTag(\"Home\")"},{"text":" }"},{"text":""},{"text":" struct Home: View {"},{"text":" var body: some View {"},{"text":" List {"},{"text":" Text(\"A List Item\")"},{"text":" Text(\"A Second List Item\")"},{"text":" Text(\"A Third List Item\")"},{"text":" }"},{"text":" .interactionActivityTrackingTag(\"Feed\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter tag: The tag used to track user interactions"},{"text":" hosted by this view as activities."},{"text":""},{"text":"- Returns: A view that uses a tracking tag."}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactionActivityTrackingTag"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","renameAction(_:)"],"names":{"title":"renameAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the rename action in the environment to update focus state."},{"text":""},{"text":"Use this modifier in conjunction with the ``RenameButton`` to implement"},{"text":"standard rename interactions. A rename button receives its action"},{"text":"from the environment. Use this modifier to customize the action"},{"text":"provided to the rename button."},{"text":""},{"text":" struct RowView: View {"},{"text":" @State private var text = \"\""},{"text":" @FocusState private var isFocused: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(text: $item.name) {"},{"text":" Text(\"Prompt\")"},{"text":" }"},{"text":" .focused($isFocused)"},{"text":" .contextMenu {"},{"text":" RenameButton()"},{"text":" // ... your own custom actions"},{"text":" }"},{"text":" .renameAction($isFocused)"},{"text":" }"},{"text":""},{"text":"When someone taps the rename button in the context menu, the rename"},{"text":"action focuses the text field by setting the `isFocused`"},{"text":"property to true."},{"text":""},{"text":"- Parameter isFocused: The focus binding to update when"},{"text":" activating the rename action."},{"text":""},{"text":"- Returns: A view that has the specified rename action."}]},"functionSignature":{"parameters":[{"name":"isFocused","declarationFragments":[{"kind":"identifier","spelling":"isFocused"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isFocused"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12renameActionyQryycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","renameAction(_:)"],"names":{"title":"renameAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a closure to run for the rename action."},{"text":""},{"text":"Use this modifier in conjunction with the ``RenameButton`` to implement"},{"text":"standard rename interactions. A rename button receives its action"},{"text":"from the environment. Use this modifier to customize the action"},{"text":"provided to the rename button."},{"text":""},{"text":" struct RowView: View {"},{"text":" @State private var text = \"\""},{"text":" @FocusState private var isFocused: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(text: $item.name) {"},{"text":" Text(\"Prompt\")"},{"text":" }"},{"text":" .focused($isFocused)"},{"text":" .contextMenu {"},{"text":" RenameButton()"},{"text":" // ... your own custom actions"},{"text":" }"},{"text":" .renameAction { isFocused = true }"},{"text":" }"},{"text":""},{"text":"When the user taps the rename button in the context menu, the rename"},{"text":"action focuses the text field by setting the `isFocused`"},{"text":"property to true."},{"text":""},{"text":"- Parameter action: A closure to run when renaming."},{"text":""},{"text":"- Returns: A view that has the specified rename action."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"renameAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarOverflowMenu(content:)"],"names":{"title":"toolbarOverflowMenu(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarOverflowMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the overflow menu of a toolbar."},{"text":""},{"text":"An overflow menu represents actions that are always placed in the"},{"text":"toolbar's overflow menu, regardless of the toolbar mode, platform,"},{"text":"or customizability."},{"text":""},{"text":" ContentView()"},{"text":" .toolbarOverflowMenu {"},{"text":" Button(\"Action 1\") { }"},{"text":" Button(\"Action 2\") { }"},{"text":" }"},{"text":""},{"text":"In iOS and visionOS, this content is placed into the overflow menu"},{"text":"in the navigation bar."},{"text":""},{"text":"- Parameter content: The content of the overflow menu."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarOverflowMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDragSessionUpdated(_:)"],"names":{"title":"onDragSessionUpdated(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDragSessionUpdated"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action to perform on each update of an ongoing dragging operation"},{"text":"activated by `draggable(_:)` or anther drag modifiers."},{"text":""},{"text":"Below is an example of a view that displays a book and supports"},{"text":"dragging to copy, move, and delete. If the session ends"},{"text":"with moving or deleting the item, in the `onUpdate` closure,"},{"text":"the view lets the model layer know that the book should be deleted"},{"text":"from the source."},{"text":""},{"text":" struct DraggableBookView: View {"},{"text":" var id: UUID"},{"text":""},{"text":" var body: some View {"},{"text":" BookView()"},{"text":" .draggable(Book(id: id))"},{"text":" .dragConfiguration("},{"text":" DragConfiguration("},{"text":" operationsWithinApp: .init(allowMove: true, allowDelete: true),"},{"text":" operationsOutsideApp: .init(allowMove: true, allowDelete: true)"},{"text":" ))"},{"text":" .onDragSessionUpdated { session in"},{"text":" switch session.phase {"},{"text":" case .ended(at: _, with: let operation):"},{"text":" if operation == .move || operation == .delete {"},{"text":" if let id = session.draggedItemIDs(type: UUID.self).first {"},{"text":" removeBook(id: id)"},{"text":" }"},{"text":" }"},{"text":" default:"},{"text":" break"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func removeBook(id: UUID) { }"},{"text":""},{"text":"The `onUpdate` closure is called when the closest drag session"},{"text":"in the child view hierarchy becomes active."}]},"functionSignature":{"parameters":[{"name":"onUpdate","declarationFragments":[{"kind":"identifier","spelling":"onUpdate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDragSessionUpdated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"onUpdate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DragSession","preciseIdentifier":"s:7SwiftUI11DragSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragConfiguration(_:)"],"names":{"title":"dragConfiguration(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragConfiguration"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures a drag session."},{"text":""},{"text":"Below is a simplified example of a view that supports copy, move and delete"},{"text":"operations for drag."},{"text":""},{"text":"### Drag to delete into trash bin"},{"text":""},{"text":"If a view wants to support drag-to-delete into the trash bin or another"},{"text":"location that has similar semantics, it should specify the"},{"text":"support for this operation in a drag configuration:"},{"text":""},{"text":" @State private var photos: [Photo] = []"},{"text":" @State private var selectedPhotos: [Photo.ID] = []"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" LazyVGrid(columns: gridColumns) {"},{"text":" ForEach(photos) { photo in"},{"text":" PhotoView(photo: photo)"},{"text":" .draggable(containerItemID: photo.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Photo.self) { draggedIDs in"},{"text":" photos(ids: draggedIDs)"},{"text":" }"},{"text":" .dragContainerSelection(selectedPhotos)"},{"text":" .dragConfiguration(DragConfiguration(allowMove: false, allowDelete: true))"},{"text":" .onDragSessionUpdated { session in"},{"text":" if session.phase == .ended(.delete) {"},{"text":" let ids = session.draggedItemIDs(for: Photo.ID.self)"},{"text":" removeAndTrash(ids)"},{"text":" }"},{"text":" }"},{"text":" .dragPreviewsFormation(.stack)"},{"text":" }"},{"text":""},{"text":" func removeAndTrash(_ ids: [Photo.ID]) {"},{"text":" ids.forEach { id"},{"text":" if let idx = photos.firstIndex(where: { $0.id == id }) {"},{"text":" let photo = photos[idx]"},{"text":" photos.remove(at: idx)"},{"text":" try? FileManager.default.trashItem("},{"text":" at: photo.fileURL, resultingItemURL: nil"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Note, that any drag supports copy operation by default."},{"text":" In the snippet above, the view supports both copy and delete"},{"text":" operations."},{"text":""},{"text":"- Parameter configuration: A value that describes the configuration"},{"text":"of a drag session."},{"text":"- Returns: A view that configures a drag session in a way, described"},{"text":"by the `configuration` parameter."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragConfiguration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DragConfiguration","preciseIdentifier":"s:7SwiftUI17DragConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","blendMode(_:)"],"names":{"title":"blendMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the blend mode for compositing this view with overlapping views."},{"text":""},{"text":"Use `blendMode(_:)` to combine overlapping views and use a different"},{"text":"visual effect to produce the result. The ``BlendMode`` enumeration"},{"text":"defines many possible effects."},{"text":""},{"text":"In the example below, the two overlapping rectangles have a"},{"text":"``BlendMode/colorBurn`` effect applied, which effectively removes the"},{"text":"non-overlapping portion of the second image:"},{"text":""},{"text":" HStack {"},{"text":" Color.yellow.frame(width: 50, height: 50, alignment: .center)"},{"text":""},{"text":" Color.red.frame(width: 50, height: 50, alignment: .center)"},{"text":" .rotationEffect(.degrees(45))"},{"text":" .padding(-20)"},{"text":" .blendMode(.colorBurn)"},{"text":" }"},{"text":""},{"text":"![Two overlapping rectangles showing the effect of the blend mode view"},{"text":"modifier applying the colorBurn effect.](SwiftUI-blendMode.png)"},{"text":""},{"text":"- Parameter blendMode: The ``BlendMode`` for compositing this view."},{"text":""},{"text":"- Returns: A view that applies `blendMode` to this view."}]},"functionSignature":{"parameters":[{"name":"blendMode","declarationFragments":[{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blendMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"blendMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BlendMode","preciseIdentifier":"s:7SwiftUI9BlendModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","privacySensitive(_:)"],"names":{"title":"privacySensitive(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"privacySensitive"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Marks the view as containing sensitive, private user data."},{"text":""},{"text":"SwiftUI redacts views marked with this modifier when you apply the"},{"text":"``RedactionReasons/privacy`` redaction reason."},{"text":""},{"text":" struct BankAccountView: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Account #\")"},{"text":""},{"text":" Text(accountNumber)"},{"text":" .font(.headline)"},{"text":" .privacySensitive() // Hide only the account number."},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"sensitive","declarationFragments":[{"kind":"identifier","spelling":"sensitive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"privacySensitive"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sensitive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8contrastyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contrast(_:)"],"names":{"title":"contrast(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contrast"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the contrast and separation between similar colors in this view."},{"text":""},{"text":"Apply contrast to a view to increase or decrease the separation between"},{"text":"similar colors in the view."},{"text":""},{"text":"In the example below, the `contrast(_:)` modifier is applied to a set of"},{"text":"red squares each containing a contrasting green inner circle. At each"},{"text":"step in the loop, the `contrast(_:)` modifier changes the contrast of"},{"text":"the circle/square view in 20% increments. This ranges from -20% contrast"},{"text":"(yielding inverted colors — turning the red square to pale-green and the"},{"text":"green circle to mauve), to neutral-gray at 0%, to 100% contrast"},{"text":"(bright-red square / bright-green circle). Applying negative contrast"},{"text":"values, as shown in the -20% square, will apply contrast in addition to"},{"text":"inverting colors."},{"text":""},{"text":" struct CircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 25, height: 25, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Contrast: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(-1..<6) {"},{"text":" Color.red.frame(width: 50, height: 50, alignment: .center)"},{"text":" .overlay(CircleView(), alignment: .center)"},{"text":" .contrast(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Demonstration of the effect of contrast on a view applying contrast"},{"text":"values from -20% to 100% contrast.](SwiftUI-View-contrast.png)"},{"text":""},{"text":"- Parameter amount: The intensity of color contrast to apply. negative"},{"text":" values invert colors in addition to applying contrast."},{"text":""},{"text":"- Returns: A view that applies color contrast to this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contrast"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","matchedGeometryEffect(id:in:properties:anchor:isSource:)"],"names":{"title":"matchedGeometryEffect(id:in:properties:anchor:isSource:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedGeometryEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Defines a group of views with synchronized geometry using an"},{"text":"identifier and namespace that you provide."},{"text":""},{"text":"This method sets the geometry of each view in the group from the"},{"text":"inserted view with `isSource = true` (known as the \"source\" view),"},{"text":"updating the values marked by `properties`."},{"text":""},{"text":"If inserting a view in the same transaction that another view"},{"text":"with the same key is removed, the system will interpolate their"},{"text":"frame rectangles in window space to make it appear that there"},{"text":"is a single view moving from its old position to its new"},{"text":"position. The usual transition mechanisms define how each of"},{"text":"the two views is rendered during the transition (e.g. fade"},{"text":"in/out, scale, etc), the `matchedGeometryEffect()` modifier"},{"text":"only arranges for the geometry of the views to be linked, not"},{"text":"their rendering."},{"text":""},{"text":"If the number of currently-inserted views in the group with"},{"text":"`isSource = true` is not exactly one results are undefined, due"},{"text":"to it not being clear which is the source view."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The identifier, often derived from the identifier of"},{"text":" the data being displayed by the view."},{"text":" - namespace: The namespace in which defines the `id`. New"},{"text":" namespaces are created by adding an `@Namespace` variable"},{"text":" to a ``View`` type and reading its value in the view's body"},{"text":" method."},{"text":" - properties: The properties to copy from the source view."},{"text":" - anchor: The relative location in the view used to produce"},{"text":" its shared position value."},{"text":" - isSource: True if the view should be used as the source of"},{"text":" geometry for other views in the group."},{"text":""},{"text":"- Returns: A new view that defines an entry in the global"},{"text":" database of views synchronizing their geometry."},{"text":""}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]},{"name":"properties","declarationFragments":[{"kind":"identifier","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"isSource","declarationFragments":[{"kind":"identifier","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"matchedGeometryEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"properties"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MatchedGeometryProperties","preciseIdentifier":"s:7SwiftUI25MatchedGeometryPropertiesV"},{"kind":"text","spelling":" = .frame, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"isSource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environment(_:_:)"],"names":{"title":"environment(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the environment value of the specified key path to the given value."},{"text":""},{"text":"Use this modifier to set one of the writable properties of the"},{"text":"``EnvironmentValues`` structure, including custom values that you"},{"text":"create. For example, you can set the value associated with the"},{"text":"``EnvironmentValues/truncationMode`` key:"},{"text":""},{"text":" MyView()"},{"text":" .environment(\\.truncationMode, .head)"},{"text":""},{"text":"You then read the value inside `MyView` or one of its descendants"},{"text":"using the ``Environment`` property wrapper:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @Environment(\\.truncationMode) var truncationMode: Text.TruncationMode"},{"text":""},{"text":" var body: some View { ... }"},{"text":" }"},{"text":""},{"text":"SwiftUI provides dedicated view modifiers for setting most"},{"text":"environment values, like the ``View/truncationMode(_:)``"},{"text":"modifier which sets the ``EnvironmentValues/truncationMode`` value:"},{"text":""},{"text":" MyView()"},{"text":" .truncationMode(.head)"},{"text":""},{"text":"Prefer the dedicated modifier when available, and offer your own when"},{"text":"defining custom environment values, as described in"},{"text":"``Entry()``."},{"text":""},{"text":"This modifier affects the given view,"},{"text":"as well as that view's descendant views. It has no effect"},{"text":"outside the view hierarchy on which you call it."},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: A key path that indicates the property of the"},{"text":" ``EnvironmentValues`` structure to update."},{"text":" - value: The new value to set for the item specified by `keyPath`."},{"text":""},{"text":"- Returns: A view that has the given value set in its environment."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:alignment:)"],"names":{"title":"overlay(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Overlay"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers a secondary view in front of this view."},{"text":""},{"text":"When you apply an overlay to a view, the original view continues to"},{"text":"provide the layout characteristics for the resulting view. In the"},{"text":"following example, the heart image is shown overlaid in front of, and"},{"text":"aligned to the bottom of the folder image."},{"text":""},{"text":" Image(systemName: \"folder\")"},{"text":" .font(.system(size: 55, weight: .thin))"},{"text":" .overlay(Text(\"❤️\"), alignment: .bottom)"},{"text":""},{"text":"![View showing placement of a heart overlaid onto a folder"},{"text":"icon.](View-overlay-1)"},{"text":""},{"text":"- Parameters:"},{"text":" - overlay: The view to layer in front of this view."},{"text":" - alignment: The alignment for `overlay` in relation to this view."},{"text":""},{"text":"- Returns: A view that layers `overlay` in front of the view."}]},"functionSignature":{"parameters":[{"name":"overlay","declarationFragments":[{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Overlay"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Overlay","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Overlay"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"overlay"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Overlay"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `overlay(alignment:content:)` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","border(_:width:)"],"names":{"title":"border(_:width:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"border"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a border to this view with the specified style and width."},{"text":""},{"text":"Use this modifier to draw a border of a specified width around the"},{"text":"view's frame. By default, the border appears inside the bounds of this"},{"text":"view. For example, you can add a four-point wide border covers the text:"},{"text":""},{"text":" Text(\"Purple border inside the view bounds.\")"},{"text":" .border(Color.purple, width: 4)"},{"text":""},{"text":"![A screenshot showing the text Purple border inside the view bounds."},{"text":"The text is surrounded by a purple border that outlines the text,"},{"text":"but isn't quite big enough and encroaches on the text.](View-border-1)"},{"text":""},{"text":"To place a border around the outside of this view, apply padding of the"},{"text":"same width before adding the border:"},{"text":""},{"text":" Text(\"Purple border outside the view bounds.\")"},{"text":" .padding(4)"},{"text":" .border(Color.purple, width: 4)"},{"text":""},{"text":"![A screenshot showing the text Purple border outside the view bounds."},{"text":"The text is surrounded by a purple border that outlines the text"},{"text":"without touching the text.](View-border-2)"},{"text":""},{"text":"- Parameters:"},{"text":" - content: A value that conforms to the ``ShapeStyle`` protocol,"},{"text":" like a ``Color`` or ``HierarchicalShapeStyle``, that SwiftUI"},{"text":" uses to fill the border."},{"text":" - width: The thickness of the border. The default is 1 pixel."},{"text":""},{"text":"- Returns: A view that adds a border with the specified style and width"},{"text":" to this view."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"border"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(alignment:content:)"],"names":{"title":"overlay(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the views that you specify in front of this view."},{"text":""},{"text":"Use this modifier to place one or more views in front of another view."},{"text":"For example, you can place a group of stars on a ``RoundedRectangle``:"},{"text":""},{"text":" RoundedRectangle(cornerRadius: 8)"},{"text":" .frame(width: 200, height: 100)"},{"text":" .overlay(alignment: .topLeading) { Star(color: .red) }"},{"text":" .overlay(alignment: .topTrailing) { Star(color: .yellow) }"},{"text":" .overlay(alignment: .bottomLeading) { Star(color: .green) }"},{"text":" .overlay(alignment: .bottomTrailing) { Star(color: .blue) }"},{"text":""},{"text":"The example above assumes that you've defined a `Star` view with a"},{"text":"parameterized color:"},{"text":""},{"text":" struct Star: View {"},{"text":" var color = Color.yellow"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"star.fill\")"},{"text":" .foregroundStyle(color)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By setting different `alignment` values for each modifier, you make the"},{"text":"stars appear in different places on the rectangle:"},{"text":""},{"text":"![A screenshot of a rounded rectangle with a star in each corner. The"},{"text":"star in the upper-left is red; the start in the upper-right is yellow;"},{"text":"the star in the lower-left is green; the star the lower-right is"},{"text":"blue.](View-overlay-2)"},{"text":""},{"text":"If you specify more than one view in the `content` closure, the modifier"},{"text":"collects all of the views in the closure into an implicit ``ZStack``,"},{"text":"taking them in order from back to front. For example, you can place a"},{"text":"star and a ``Circle`` on a field of ``ShapeStyle/blue``:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":""},{"text":"Both the overlay modifier and the implicit ``ZStack`` composed from the"},{"text":"overlay content --- the circle and the star --- use a default"},{"text":"``Alignment/center`` alignment. The star appears centered on the circle,"},{"text":"and both appear as a composite view centered in front of the square:"},{"text":""},{"text":"![A screenshot of a star centered on a circle, which is"},{"text":"centered on a square.](View-overlay-3)"},{"text":""},{"text":"If you specify an alignment for the overlay, it applies to the implicit"},{"text":"stack rather than to the individual views in the closure. You can see"},{"text":"this if you add the ``Alignment/bottom`` alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay(alignment: .bottom) {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":""},{"text":"The circle and the star move down as a unit to align the stack's bottom"},{"text":"edge with the bottom edge of the square, while the star remains"},{"text":"centered on the circle:"},{"text":""},{"text":"![A screenshot of a star centered on a circle, which is on a square."},{"text":"The circle's bottom edge is aligned with the square's bottom"},{"text":"edge.](View-overlay-3a)"},{"text":""},{"text":"To control the placement of individual items inside the `content`"},{"text":"closure, either use a different overlay modifier for each item, as the"},{"text":"earlier example of stars in the corners of a rectangle demonstrates, or"},{"text":"add an explicit ``ZStack`` inside the content closure with its own"},{"text":"alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 200)"},{"text":" .overlay(alignment: .bottom) {"},{"text":" ZStack(alignment: .bottom) {"},{"text":" Circle()"},{"text":" .frame(width: 100, height: 100)"},{"text":" Star()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The stack alignment ensures that the star's bottom edge aligns with the"},{"text":"circle's, while the overlay aligns the composite view with the square:"},{"text":""},{"text":"![A screenshot of a star, a circle, and a square with all their"},{"text":"bottom edges aligned.](View-overlay-4)"},{"text":""},{"text":"You can achieve layering without an overlay modifier by putting both the"},{"text":"modified view and the overlay content into a ``ZStack``. This can"},{"text":"produce a simpler view hierarchy, but changes the layout priority that"},{"text":"SwiftUI applies to the views. Use the overlay modifier when you want the"},{"text":"modified view to dominate the layout."},{"text":""},{"text":"If you want to specify a ``ShapeStyle`` like a ``Color`` or a"},{"text":"``Material`` as the overlay, use"},{"text":"``View/overlay(_:ignoresSafeAreaEdges:)`` instead. To specify a"},{"text":"``Shape``, use ``View/overlay(_:in:fillStyle:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the foreground views. The default"},{"text":" is ``Alignment/center``."},{"text":" - content: A ``ContentBuilder`` that you use to declare the views to"},{"text":" draw in front of this view, stacked in the order that you list them."},{"text":" The last view that you list appears at the front of the stack."},{"text":""},{"text":"- Returns: A view that uses the specified content as a foreground."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:ignoresSafeAreaEdges:)"],"names":{"title":"overlay(_:ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the specified style in front of this view."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``ShapeStyle``"},{"text":"protocol, like a ``Color``, ``Material``, or ``HierarchicalShapeStyle``,"},{"text":"in front of a view. For example, you can overlay the"},{"text":"``ShapeStyle/ultraThinMaterial`` over a ``Circle``:"},{"text":""},{"text":" struct CoveredCircle: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .frame(width: 300, height: 200)"},{"text":" .overlay(.ultraThinMaterial)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI anchors the style to the view's bounds. For the example above,"},{"text":"the overlay fills the entirety of the circle's frame (which happens"},{"text":"to be wider than the circle is tall):"},{"text":""},{"text":"![A screenshot of a circle showing through a rectangle that imposes"},{"text":"a blurring effect.](View-overlay-5)"},{"text":""},{"text":"SwiftUI also limits the style's extent to the view's"},{"text":"container-relative shape. You can see this effect if you constrain the"},{"text":"`CoveredCircle` view with a ``View/containerShape(_:)`` modifier:"},{"text":""},{"text":" CoveredCircle()"},{"text":" .containerShape(RoundedRectangle(cornerRadius: 30))"},{"text":""},{"text":"The overlay takes on the specified container shape:"},{"text":""},{"text":"![A screenshot of a circle showing through a rounded rectangle that"},{"text":"imposes a blurring effect.](View-overlay-6)"},{"text":""},{"text":"By default, the overlay ignores safe area insets on all edges, but you"},{"text":"can provide a specific set of edges to ignore, or an empty set to"},{"text":"respect safe area insets on all edges:"},{"text":""},{"text":" Rectangle()"},{"text":" .overlay("},{"text":" .secondary,"},{"text":" ignoresSafeAreaEdges: []) // Ignore no safe area insets."},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the overlay"},{"text":"rather than a style, use ``View/overlay(alignment:content:)`` instead."},{"text":"If you want to specify a ``Shape``, use"},{"text":"``View/overlay(_:in:fillStyle:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: An instance of a type that conforms to ``ShapeStyle`` that"},{"text":" SwiftUI layers in front of the modified view."},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the overlay. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the specified style drawn in front of it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlay(_:in:fillStyle:)"],"names":{"title":"overlay(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers a shape that you specify in front of this view."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``Shape``"},{"text":"protocol --- like a ``Rectangle``, ``Circle``, or ``Capsule`` --- in"},{"text":"front of a view. Specify a ``ShapeStyle`` that's used to fill the shape."},{"text":"For example, you can overlay the outline of one rectangle in front of"},{"text":"another:"},{"text":""},{"text":" Rectangle()"},{"text":" .frame(width: 200, height: 100)"},{"text":" .overlay(.teal, in: Rectangle().inset(by: 10).stroke(lineWidth: 5))"},{"text":""},{"text":"The example above uses the ``InsettableShape/inset(by:)`` method to"},{"text":"slightly reduce the size of the overlaid rectangle, and the"},{"text":"``Shape/stroke(lineWidth:)`` method to fill only the shape's outline."},{"text":"This creates an inset border:"},{"text":""},{"text":"![A screenshot of a rectangle with a teal border that's"},{"text":"inset from the edge.](View-overlay-7)"},{"text":""},{"text":"This modifier is a convenience method for layering a shape over a view."},{"text":"To handle the more general case of overlaying a ``View`` --- or a stack"},{"text":"of views --- with control over the position, use"},{"text":"``View/overlay(alignment:content:)`` instead. To cover a view with a"},{"text":"``ShapeStyle``, use ``View/overlay(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws in front of the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn in front of it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlay"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonSizing(_:)"],"names":{"title":"buttonSizing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonSizing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"The preferred sizing behavior of buttons in the view hierarchy."},{"text":""},{"text":"Views may use the specified button sizing when determining the size they"},{"text":"choose to be in their primary axis within their parent view's proposed"},{"text":"size."},{"text":""},{"text":"Many built-in controls that display as a button adapt to this view"},{"text":"modifier. For example, you can make certain styles of ``Button``,"},{"text":"``Picker``, ``ControlGroup``, and ``Toggle`` flexible by applying"},{"text":"this modifier to them or their container."},{"text":""},{"text":"This example creates a button that spans the width of its container,"},{"text":"which you may want to do if the button is placed in a narrow context,"},{"text":"like the sidebar of a welcome window."},{"text":""},{"text":" Button(\"Open Document…\", action: openDocument)"},{"text":" .buttonSizing(.flexible)"},{"text":""},{"text":"Your own views and styles can adapt to this view modifier by reading the"},{"text":"``EnvironmentValues/buttonSizing`` environment value and applying an"},{"text":"appropriate frame."},{"text":""},{"text":" struct CustomButtonStyle: ButtonStyle {"},{"text":" @Environment(\\.buttonSizing) private var buttonSizing"},{"text":""},{"text":" private var maxWidth: CGFloat {"},{"text":" switch buttonSizing {"},{"text":" case .flexible: .infinity"},{"text":" case .fitted, _: nil"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func makeBody(configuration: Configuration) -> some View {"},{"text":" configuration.content"},{"text":" .frame(maxWidth: maxWidth)"},{"text":" .background(.tint, in: Capsule())"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter sizing: A button sizing behavior that may be used to"},{"text":" influence the primary axis size of buttons capable of adapting to it."}]},"functionSignature":{"parameters":[{"name":"sizing","declarationFragments":[{"kind":"identifier","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonSizing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonSizing","preciseIdentifier":"s:7SwiftUI12ButtonSizingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","blur(radius:opaque:)"],"names":{"title":"blur(radius:opaque:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blur"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a Gaussian blur to this view."},{"text":""},{"text":"Use `blur(radius:opaque:)` to apply a gaussian blur effect to the"},{"text":"rendering of this view."},{"text":""},{"text":"The example below shows two ``Text`` views, the first with no blur"},{"text":"effects, the second with `blur(radius:opaque:)` applied with the"},{"text":"`radius` set to `2`. The larger the radius, the more diffuse the"},{"text":"effect."},{"text":""},{"text":" struct Blur: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"This is some text.\")"},{"text":" .padding()"},{"text":" Text(\"This is some blurry text.\")"},{"text":" .blur(radius: 2.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of applying gaussian blur effect to"},{"text":"the rendering of a view.](SwiftUI-View-blurRadius.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - radius: The radial size of the blur. A blur is more diffuse when its"},{"text":" radius is large."},{"text":" - opaque: A Boolean value that indicates whether the blur renderer"},{"text":" permits transparency in the blur output. Set to `true` to create an"},{"text":" opaque blur, or set to `false` to permit transparency."}]},"functionSignature":{"parameters":[{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"opaque","declarationFragments":[{"kind":"identifier","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blur"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorInvertQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorInvert()"],"names":{"title":"colorInvert()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorInvert"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Inverts the colors in this view."},{"text":""},{"text":"The `colorInvert()` modifier inverts all of the colors in a view so that"},{"text":"each color displays as its complementary color. For example, blue"},{"text":"converts to yellow, and white converts to black."},{"text":""},{"text":"In the example below, two red squares each have an interior green"},{"text":"circle. The inverted square shows the effect of the square's colors:"},{"text":"complimentary colors for red and green — teal and purple."},{"text":""},{"text":" struct InnerCircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 40, height: 40, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ColorInvert: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .overlay(Text(\"Normal\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .colorInvert()"},{"text":" .overlay(Text(\"Inverted\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" .padding(50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Two red squares with centered green circles with one showing the"},{"text":"effect of color inversion, which yields teal and purple replacing the"},{"text":"red and green colors.](SwiftUI-View-colorInvert.png)"},{"text":""},{"text":"- Returns: A view that inverts its colors."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorInvert"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","grayscale(_:)"],"names":{"title":"grayscale(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"grayscale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a grayscale effect to this view."},{"text":""},{"text":"A grayscale effect reduces the intensity of colors in this view."},{"text":""},{"text":"The example below shows a series of red squares with their grayscale"},{"text":"effect increasing from 0 (reddest) to 99% (fully desaturated) in"},{"text":"approximate 20% increments:"},{"text":""},{"text":" struct Saturation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .grayscale(Double($0) * 0.1999)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.1999 * 100, specifier: \"%.4f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of grayscale adjustments in"},{"text":"approximately 20% increments from fully-red at 0% to fully desaturated"},{"text":"at 99%.](SwiftUI-View-grayscale.png)"},{"text":""},{"text":"- Parameter amount: The intensity of grayscale to apply from 0.0 to less"},{"text":" than 1.0. Values closer to 0.0 are more colorful, and values closer to"},{"text":" 1.0 are less colorful."},{"text":""},{"text":"- Returns: A view that adds a grayscale effect to this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"grayscale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","rotation3DEffect(_:axis:anchor:anchorZ:perspective:)"],"names":{"title":"rotation3DEffect(_:axis:anchor:anchorZ:perspective:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotation3DEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"), "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Renders a view's content as if it's rotated in three dimensions around"},{"text":"the specified axis."},{"text":""},{"text":"Use this method to create the effect of rotating a view in three"},{"text":"dimensions around a specified axis of rotation. The modifier projects"},{"text":"the rotated content onto the original view's plane. Use the"},{"text":"`perspective` value to control the renderer's vanishing point. The"},{"text":"following example creates the appearance of rotating text 45˚ about"},{"text":"the y-axis:"},{"text":""},{"text":" Text(\"Rotation by passing an angle in degrees\")"},{"text":" .rotation3DEffect("},{"text":" .degrees(45),"},{"text":" axis: (x: 0.0, y: 1.0, z: 0.0),"},{"text":" anchor: .center,"},{"text":" anchorZ: 0,"},{"text":" perspective: 1)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of text in a grey box. The text says Rotation by passing an angle in degrees. The text is rendered in a way that makes it appear farther from the viewer on the right side and closer on the left, as if the text is angled to face someone sitting on the viewer's right.](SwiftUI-View-rotation3DEffect)"},{"text":""},{"text":"> Important: In visionOS, create this effect with"},{"text":" ``perspectiveRotationEffect(_:axis:anchor:anchorZ:perspective:)``"},{"text":" instead. To truly rotate a view in three dimensions,"},{"text":" use a 3D rotation modifier without a perspective input like"},{"text":" ``rotation3DEffect(_:axis:anchor:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - angle: The angle by which to rotate the view's content."},{"text":" - axis: The axis of rotation, specified as a tuple with named"},{"text":" elements for each of the three spatial dimensions."},{"text":" - anchor: A two dimensional unit point within the view about which to"},{"text":" perform the rotation. The default value is ``UnitPoint/center``."},{"text":" - anchorZ: The location on the z-axis around which to rotate the"},{"text":" content. The default is `0`."},{"text":" - perspective: The relative vanishing point for the rotation. The"},{"text":" default is `1`."},{"text":"- Returns: A view with rotated content."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":")"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"anchorZ","declarationFragments":[{"kind":"identifier","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"perspective","declarationFragments":[{"kind":"identifier","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rotation3DEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", z"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"), "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"anchorZ"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"perspective"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutDirectionBehavior(_:)"],"names":{"title":"layoutDirectionBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutDirectionBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the behavior of this view for different layout directions."},{"text":""},{"text":"Use `layoutDirectionBehavior(_:)` when you need the system to"},{"text":"horizontally mirror the contents of the view when presented in a"},{"text":"layout direction."},{"text":""},{"text":"To override the layout direction for a specific view, use the"},{"text":"``View/environment(_:_:)`` view modifier to explicitly override"},{"text":"the ``EnvironmentValues/layoutDirection`` environment value for"},{"text":"the view."},{"text":""},{"text":"- Parameter behavior: A LayoutDirectionBehavior value that indicates"},{"text":" whether this view should mirror in a particular layout direction. By"},{"text":" default, views will adjust their layouts automatically in a"},{"text":" right-to-left context and do not need to be mirrored."},{"text":""},{"text":"- Returns: A view that conditionally mirrors its contents"},{"text":" horizontally in a given layout direction."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutDirectionBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LayoutDirectionBehavior","preciseIdentifier":"s:7SwiftUI23LayoutDirectionBehaviorO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7opacityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","opacity(_:)"],"names":{"title":"opacity(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the transparency of this view."},{"text":""},{"text":"Apply opacity to reveal views that are behind another view or to"},{"text":"de-emphasize a view."},{"text":""},{"text":"When applying the `opacity(_:)` modifier to a view that has already had"},{"text":"its opacity transformed, the modifier multiplies the effect of the"},{"text":"underlying opacity transformation."},{"text":""},{"text":"The example below shows yellow and red rectangles configured to overlap."},{"text":"The top yellow rectangle has its opacity set to 50%, allowing the"},{"text":"occluded portion of the bottom rectangle to be visible:"},{"text":""},{"text":" struct Opacity: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.yellow.frame(width: 100, height: 100, alignment: .center)"},{"text":" .zIndex(1)"},{"text":" .opacity(0.5)"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .padding(-40)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Two overlaid rectangles, where the topmost has its opacity set to 50%,"},{"text":"which allows the occluded portion of the bottom rectangle to be"},{"text":"visible.](SwiftUI-View-opacity.png)"},{"text":""},{"text":"- Parameter opacity: A value between 0 (fully transparent) and 1 (fully"},{"text":" opaque)."},{"text":""},{"text":"- Returns: A view that sets the transparency of this view."}]},"functionSignature":{"parameters":[{"name":"opacity","declarationFragments":[{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"opacity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"opacity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","shadow(color:radius:x:y:)"],"names":{"title":"shadow(color:radius:x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shadow"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a shadow to this view."},{"text":""},{"text":"Use this modifier to add a shadow of a specified color behind a view."},{"text":"You can offset the shadow from its view independently in the horizontal"},{"text":"and vertical dimensions using the `x` and `y` parameters. You can also"},{"text":"blur the edges of the shadow using the `radius` parameter. Use a"},{"text":"radius of zero to create a sharp shadow. Larger radius values produce"},{"text":"softer shadows."},{"text":""},{"text":"The example below creates a grid of boxes with varying offsets and blur."},{"text":"Each box displays its radius and offset values for reference."},{"text":""},{"text":" struct Shadow: View {"},{"text":" let steps = [0, 5, 10]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" ForEach(steps, id: \\.self) { offset in"},{"text":" HStack(spacing: 50) {"},{"text":" ForEach(steps, id: \\.self) { radius in"},{"text":" Color.blue"},{"text":" .shadow("},{"text":" color: .primary,"},{"text":" radius: CGFloat(radius),"},{"text":" x: CGFloat(offset), y: CGFloat(offset))"},{"text":" .overlay {"},{"text":" VStack {"},{"text":" Text(\"\\(radius)\")"},{"text":" Text(\"(\\(offset), \\(offset))\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A three by three grid of blue boxes with shadows."},{"text":"All the boxes display an integer that indicates the shadow's radius and"},{"text":"an ordered pair that indicates the shadow's offset. The boxes in the"},{"text":"first row show zero offset and have shadows directly below the box;"},{"text":"the boxes in the second row show an offset of five in both directions"},{"text":"and have shadows with a small offset toward the right and down; the"},{"text":"boxes in the third row show an offset of ten in both directions and have"},{"text":"shadows with a large offset toward the right and down. The boxes in"},{"text":"the first column show a radius of zero have shadows with sharp edges;"},{"text":"the boxes in the second column show a radius of five and have shadows"},{"text":"with slightly blurry edges; the boxes in the third column show a radius"},{"text":"of ten and have very blurry edges. Because the shadow of the box in the"},{"text":"upper left is both completely sharp and directly below the box, it isn't"},{"text":"visible.](View-shadow-1-iOS)"},{"text":""},{"text":"The example above uses ``Color/primary`` as the color to make the"},{"text":"shadow easy to see for the purpose of illustration. In practice,"},{"text":"you might prefer something more subtle, like ``Color/gray-8j2b``."},{"text":"If you don't specify a color, the method uses a semi-transparent"},{"text":"black."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The shadow's color."},{"text":" - radius: A measure of how much to blur the shadow. Larger values"},{"text":" result in more blur."},{"text":" - x: An amount to offset the shadow horizontally from the view."},{"text":" - y: An amount to offset the shadow vertically from the view."},{"text":""},{"text":"- Returns: A view that adds a shadow to this view."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"}]},{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shadow"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":" = Color(.sRGBLinear, white: 0, opacity: 0.33), "},{"kind":"externalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","drawingGroup(opaque:colorMode:)"],"names":{"title":"drawingGroup(opaque:colorMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drawingGroup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Composites this view's contents into an offscreen image before final"},{"text":"display."},{"text":""},{"text":"The `drawingGroup(opaque:colorMode:)` modifier flattens a subtree of"},{"text":"views into a single view before rendering it."},{"text":""},{"text":"In the example below, the contents of the view are composited to a"},{"text":"single bitmap; the bitmap is then displayed in place of the view:"},{"text":""},{"text":" VStack {"},{"text":" ZStack {"},{"text":" Text(\"DrawingGroup\")"},{"text":" .foregroundColor(.black)"},{"text":" .padding(20)"},{"text":" .background(Color.red)"},{"text":" Text(\"DrawingGroup\")"},{"text":" .blur(radius: 2)"},{"text":" }"},{"text":" .font(.largeTitle)"},{"text":" .compositingGroup()"},{"text":" .opacity(1.0)"},{"text":" }"},{"text":" .background(Color.white)"},{"text":" .drawingGroup()"},{"text":""},{"text":"- Important: The visual result of a drawing group only includes views"},{"text":" that SwiftUI rasterizes directly using its own drawing primitives,"},{"text":" such as text, images, shapes, and composite views of these types."},{"text":" It will not include views whose contents are composited by Core"},{"text":" Animation layers, such as more complex controls and containers, web"},{"text":" views, media players, and most types of UIKit and AppKit views. In"},{"text":" those cases, the output displays a placeholder image instead."},{"text":" Whether a particular view is rendered using SwiftUI's own drawing"},{"text":" primitives or composited by Core Animation may change in future"},{"text":" releases. However, any view that is currently supported is"},{"text":" guaranteed to remain supported."},{"text":""},{"text":"![A screenshot showing the effects on several stacks configured as a"},{"text":"drawing group.](SwiftUI-View-drawingGroup.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - opaque: A Boolean value that indicates whether the image is opaque."},{"text":" The default is `false`; if set to `true`, the alpha channel of the"},{"text":" image must be `1`."},{"text":" - colorMode: One of the working color space and storage formats"},{"text":" defined in ``ColorRenderingMode``. The default is"},{"text":" ``ColorRenderingMode/nonLinear``."},{"text":""},{"text":"- Returns: A view that composites this view's contents into an offscreen"},{"text":" image before display."}]},"functionSignature":{"parameters":[{"name":"opaque","declarationFragments":[{"kind":"identifier","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"colorMode","declarationFragments":[{"kind":"identifier","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drawingGroup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"opaque"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"colorMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorRenderingMode","preciseIdentifier":"s:7SwiftUI18ColorRenderingModeO"},{"kind":"text","spelling":" = .nonLinear) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","brightness(_:)"],"names":{"title":"brightness(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"brightness"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Brightens this view by the specified amount."},{"text":""},{"text":"Use `brightness(_:)` to brighten the intensity of the colors in a view."},{"text":"The example below shows a series of red squares, with their brightness"},{"text":"increasing from 0 (fully red) to 100% (white) in 20% increments."},{"text":""},{"text":" struct Brightness: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .brightness(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of brightness adjustments in 20%"},{"text":"increments from fully-red to white.](SwiftUI-View-brightness.png)"},{"text":""},{"text":"- Parameter amount: A value between 0 (no effect) and 1 (full white"},{"text":" brightening) that represents the intensity of the brightness effect."},{"text":""},{"text":"- Returns: A view that brightens this view by the specified amount."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"brightness"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13geometryGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","geometryGroup()"],"names":{"title":"geometryGroup()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"geometryGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Isolates the geometry (e.g. position and size) of the view"},{"text":"from its parent view."},{"text":""},{"text":"By default SwiftUI views push position and size changes down"},{"text":"through the view hierarchy, so that only views that draw"},{"text":"something (known as leaf views) apply the current animation to"},{"text":"their frame rectangle. However in some cases this coalescing"},{"text":"behavior can give undesirable results; inserting a geometry"},{"text":"group can correct that. A group acts as a barrier between the"},{"text":"parent view and its subviews, forcing the position and size"},{"text":"values to be resolved and animated by the parent, before being"},{"text":"passed down to each subview."},{"text":""},{"text":"The example below shows one use of this function: ensuring that"},{"text":"the member views of each row in the stack apply (and animate"},{"text":"as) a single geometric transform from their ancestor view,"},{"text":"rather than letting the effects of the ancestor views be"},{"text":"applied separately to each leaf view. If the members of"},{"text":"`ItemView` may be added and removed at different times the"},{"text":"group ensures that they stay locked together as animations are"},{"text":"applied."},{"text":""},{"text":" VStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item: item)"},{"text":" .geometryGroup()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Returns: a new view whose geometry is isolated from that of its"},{"text":"parent view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"geometryGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environmentObject(_:)"],"names":{"title":"environmentObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environmentObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Supplies an observable object to a view's hierarchy."},{"text":""},{"text":"Use this modifier to add an observable object to a view's environment."},{"text":"The object must conform to the"},{"text":""},{"text":"protocol."},{"text":""},{"text":"Adding an object to a view's environment makes the object available to"},{"text":"subviews in the view's hierarchy. To retrieve the object in a subview,"},{"text":"use the ``EnvironmentObject`` property wrapper."},{"text":""},{"text":"> Note: If the observable object conforms to the"},{"text":""},{"text":"protocol, use either ``View/environment(_:)`` or the"},{"text":"``View/environment(_:_:)`` modifier to add the object to the view's"},{"text":"environment."},{"text":""},{"text":"- Parameter object: The object to store and make available to"},{"text":" the view's hierarchy."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environmentObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","mask(alignment:_:)"],"names":{"title":"mask(alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Masks this view using the alpha channel of the given view."},{"text":""},{"text":"Use `mask(_:)` when you want to apply the alpha (opacity) value of"},{"text":"another view to the current view."},{"text":""},{"text":"This example shows an image masked by rectangle with a 10% opacity:"},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .foregroundColor(Color.blue)"},{"text":" .font(.system(size: 128, weight: .regular))"},{"text":" .mask {"},{"text":" Rectangle().opacity(0.1)"},{"text":" }"},{"text":""},{"text":"![A screenshot of a view masked by a rectangle with 10%"},{"text":"opacity.](SwiftUI-View-mask.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment for `mask` in relation to this view."},{"text":" - mask: The view whose alpha the rendering system applies to"},{"text":" the specified view."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"mask","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Mask"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Mask","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","mask(_:)"],"names":{"title":"mask(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Masks this view using the alpha channel of the given view."},{"text":""},{"text":"Use `mask(_:)` when you want to apply the alpha (opacity) value of"},{"text":"another view to the current view."},{"text":""},{"text":"This example shows an image masked by rectangle with a 10% opacity:"},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .foregroundColor(Color.blue)"},{"text":" .font(.system(size: 128, weight: .regular))"},{"text":" .mask(Rectangle().opacity(0.1))"},{"text":""},{"text":"![A screenshot of a view masked by a rectangle with 10%"},{"text":"opacity.](SwiftUI-View-mask.png)"},{"text":""},{"text":"- Parameter mask: The view whose alpha the rendering system applies to"},{"text":" the specified view."}]},"functionSignature":{"parameters":[{"name":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Mask"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Mask","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Mask"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Mask"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"visionOS","deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use overload where mask accepts a @ContentBuilder instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","edgesIgnoringSafeArea(_:)"],"names":{"title":"edgesIgnoringSafeArea(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"edgesIgnoringSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Changes the view's proposed area to extend outside the screen's safe"},{"text":"areas."},{"text":""},{"text":"Use `edgesIgnoringSafeArea(_:)` to change the area proposed for this"},{"text":"view so that — were the proposal accepted — this view could extend"},{"text":"outside the safe area to the bounds of the screen for the specified"},{"text":"edges."},{"text":""},{"text":"For example, you can propose that a text view ignore the safe area's top"},{"text":"inset:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"This text is outside of the top safe area.\")"},{"text":" .edgesIgnoringSafeArea([.top])"},{"text":" .border(Color.purple)"},{"text":" Text(\"This text is inside VStack.\")"},{"text":" .border(Color.yellow)"},{"text":" }"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a view whose bounds exceed the safe area of the"},{"text":"screen.](SwiftUI-View-edgesIgnoringSafeArea.png)"},{"text":""},{"text":"Depending on the surrounding view hierarchy, SwiftUI may not honor an"},{"text":"`edgesIgnoringSafeArea(_:)` request. This can happen, for example, if"},{"text":"the view is inside a container that respects the screen's safe area. In"},{"text":"that case you may need to apply `edgesIgnoringSafeArea(_:)` to the"},{"text":"container instead."},{"text":""},{"text":"- Parameter edges: The set of the edges in which to expand the size"},{"text":" requested for this view."},{"text":""},{"text":"- Returns: A view that may extend outside of the screen's safe area"},{"text":" on the edges specified by `edges`."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"edgesIgnoringSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use ignoresSafeArea(_:edges:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16compositingGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","compositingGroup()"],"names":{"title":"compositingGroup()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compositingGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Wraps this view in a compositing group."},{"text":""},{"text":"A compositing group makes compositing effects in this view's ancestor"},{"text":"views, such as opacity and the blend mode, take effect before this view"},{"text":"is rendered."},{"text":""},{"text":"Use `compositingGroup()` to apply effects to a parent view before"},{"text":"applying effects to this view."},{"text":""},{"text":"In the example below the `compositingGroup()` modifier separates the"},{"text":"application of effects into stages. It applies the ``View/opacity(_:)``"},{"text":"effect to the VStack before the `blur(radius:)` effect is applied to the"},{"text":"views inside the enclosed ``ZStack``. This limits the scope of the"},{"text":"opacity change to the outermost view."},{"text":""},{"text":" VStack {"},{"text":" ZStack {"},{"text":" Text(\"CompositingGroup\")"},{"text":" .foregroundColor(.black)"},{"text":" .padding(20)"},{"text":" .background(Color.red)"},{"text":" Text(\"CompositingGroup\")"},{"text":" .blur(radius: 2)"},{"text":" }"},{"text":" .font(.largeTitle)"},{"text":" .compositingGroup()"},{"text":" .opacity(0.9)"},{"text":" }"},{"text":""},{"text":"![A view showing the effect of the compositingGroup modifier in applying"},{"text":"compositing effects to parent views before child views are"},{"text":"rendered.](SwiftUI-View-compositingGroup.png)"},{"text":""},{"text":"- Returns: A view that wraps this view in a compositing group."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compositingGroup"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","position(_:)"],"names":{"title":"position(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions the center of this view at the specified point in its parent's"},{"text":"coordinate space."},{"text":""},{"text":"Use the `position(_:)` modifier to place the center of a view at a"},{"text":"specific coordinate in the parent view using a"},{"text":" to specify the `x`"},{"text":"and `y` offset."},{"text":""},{"text":" Text(\"Position by passing a CGPoint()\")"},{"text":" .position(CGPoint(x: 175, y: 100))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"- Parameter position: The point at which to place the center of this"},{"text":" view."},{"text":""},{"text":"- Returns: A view that fixes the center of this view at `position`."}]},"functionSignature":{"parameters":[{"name":"position","declarationFragments":[{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"position"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","position(x:y:)"],"names":{"title":"position(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions the center of this view at the specified coordinates in its"},{"text":"parent's coordinate space."},{"text":""},{"text":"Use the `position(x:y:)` modifier to place the center of a view at a"},{"text":"specific coordinate in the parent view using an `x` and `y` offset."},{"text":""},{"text":" Text(\"Position by passing the x and y coordinates\")"},{"text":" .position(x: 175, y: 100)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: The x-coordinate at which to place the center of this view."},{"text":" - y: The y-coordinate at which to place the center of this view."},{"text":""},{"text":"- Returns: A view that fixes the center of this view at `x` and `y`."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"position"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 0) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIgnoresInvertColors(_:)"],"names":{"title":"accessibilityIgnoresInvertColors(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIgnoresInvertColors"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether this view should ignore the system Smart Invert setting."},{"text":""},{"text":"Use this modifier to suppress Smart Invert in a view that shouldn't"},{"text":"be inverted. Or pass an `active` argument of `false` to begin following"},{"text":"the Smart Invert setting again when it was previously disabled."},{"text":""},{"text":"- Parameter active: A true value ignores the system Smart Invert"},{"text":" setting. A false value follows the system setting."}]},"functionSignature":{"parameters":[{"name":"active","declarationFragments":[{"kind":"identifier","spelling":"active"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIgnoresInvertColors"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"active"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","underline(_:pattern:color:)"],"names":{"title":"underline(_:pattern:color:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"underline"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies an underline to the text in this view."},{"text":""},{"text":"- Parameters:"},{"text":" - isActive: A Boolean value that indicates whether underline"},{"text":" is added. The default value is `true`."},{"text":" - pattern: The pattern of the line. The default value is `solid`."},{"text":" - color: The color of the underline. If `color` is `nil`, the"},{"text":" underline uses the default foreground color."},{"text":""},{"text":"- Returns: A view where text has a line running along its baseline."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"pattern","declarationFragments":[{"kind":"identifier","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"}]},{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"underline"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":" = .solid, "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","strikethrough(_:pattern:color:)"],"names":{"title":"strikethrough(_:pattern:color:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strikethrough"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a strikethrough to the text in this view."},{"text":""},{"text":"- Parameters:"},{"text":" - isActive: A Boolean value that indicates whether"},{"text":" strikethrough is added. The default value is `true`."},{"text":" - pattern: The pattern of the line. The default value is `solid`."},{"text":" - color: The color of the strikethrough. If `color` is `nil`, the"},{"text":" strikethrough uses the default foreground color."},{"text":""},{"text":"- Returns: A view where text has a line through its center."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"pattern","declarationFragments":[{"kind":"identifier","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"}]},{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strikethrough"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"pattern"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"LineStyle","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Pattern","preciseIdentifier":"s:7SwiftUI4TextV9LineStyleV7PatternV"},{"kind":"text","spelling":" = .solid, "},{"kind":"externalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAlwaysIncludesPunctuation(_:)"],"names":{"title":"speechAlwaysIncludesPunctuation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAlwaysIncludesPunctuation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether VoiceOver should always speak all punctuation in the text"},{"text":"view."},{"text":""},{"text":"Use this modifier to control whether the system speaks punctuation"},{"text":"characters in the text. You might use this for code or other text where"},{"text":"the punctuation is relevant, or where you want VoiceOver to speak a"},{"text":"verbatim transcription of the text you provide. For example, given the"},{"text":"text:"},{"text":""},{"text":" Text(\"All the world's a stage, \" +"},{"text":" \"And all the men and women merely players;\")"},{"text":" .speechAlwaysIncludesPunctuation()"},{"text":""},{"text":"VoiceOver would speak \"All the world apostrophe s a stage comma and all"},{"text":"the men and women merely players semicolon\"."},{"text":""},{"text":"By default, VoiceOver voices punctuation based on surrounding context."},{"text":""},{"text":"- Parameter value: A Boolean value that you set to `true` if"},{"text":" VoiceOver should speak all punctuation in the text. Defaults to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAlwaysIncludesPunctuation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechSpellsOutCharacters(_:)"],"names":{"title":"speechSpellsOutCharacters(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechSpellsOutCharacters"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether VoiceOver should speak the contents of the text view"},{"text":"character by character."},{"text":""},{"text":"Use this modifier when you want VoiceOver to speak text as individual"},{"text":"letters, character by character. This is important for text that is not"},{"text":"meant to be spoken together, like:"},{"text":"- An acronym that isn't a word, like APPL, spoken as \"A-P-P-L\"."},{"text":"- A number representing a series of digits, like 25, spoken as \"two-five\""},{"text":" rather than \"twenty-five\"."},{"text":""},{"text":"- Parameter value: A Boolean value that when `true` indicates"},{"text":" VoiceOver should speak text as individual characters. Defaults"},{"text":" to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechSpellsOutCharacters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAdjustedPitch(_:)"],"names":{"title":"speechAdjustedPitch(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAdjustedPitch"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Raises or lowers the pitch of spoken text."},{"text":""},{"text":"Use this modifier when you want to change the pitch of spoken text."},{"text":"The value indicates how much higher or lower to change the pitch."},{"text":""},{"text":"- Parameter value: The amount to raise or lower the pitch."},{"text":" Values between `-1` and `0` result in a lower pitch while"},{"text":" values between `0` and `1` result in a higher pitch."},{"text":" The method clamps values to the range `-1` to `1`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAdjustedPitch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","speechAnnouncementsQueued(_:)"],"names":{"title":"speechAnnouncementsQueued(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAnnouncementsQueued"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Controls whether to queue pending announcements behind existing speech"},{"text":"rather than interrupting speech in progress."},{"text":""},{"text":"Use this modifier when you want affect the order in which the"},{"text":"accessibility system delivers spoken text. Announcements can"},{"text":"occur automatically when the label or value of an accessibility"},{"text":"element changes."},{"text":""},{"text":"- Parameter value: A Boolean value that determines if VoiceOver speaks"},{"text":" changes to text immediately or enqueues them behind existing speech."},{"text":" Defaults to `true`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"speechAnnouncementsQueued"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onGeometryChange(for:of:action:)"],"names":{"title":"onGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"geometry proxy, changes."},{"text":""},{"text":"The geometry of a view can change frequently, especially if"},{"text":"the view is contained within a ``ScrollView`` and that scroll view"},{"text":"is scrolling."},{"text":""},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``GeometryProxy`` to"},{"text":" your own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know how much of a view"},{"text":"is visible on screen. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack {"},{"text":" ForEach(videos) { video in"},{"text":" VideoView(video)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct VideoView: View {"},{"text":" var video: VideoModel"},{"text":""},{"text":" var body: some View {"},{"text":" VideoPlayer(video)"},{"text":" .onGeometryChange(for: Bool.self) { proxy in"},{"text":" let frame = proxy.frame(in: .scrollView)"},{"text":" let bounds = proxy.bounds(of: .scrollView) ?? .zero"},{"text":" let intersection = frame.intersection("},{"text":" CGRect(origin: .zero, size: bounds.size))"},{"text":" let visibleHeight = intersection.size.height"},{"text":" return (visibleHeight / frame.size.height) > 0.75"},{"text":" } action: { isVisible in"},{"text":" video.updateAutoplayingState("},{"text":" isVisible: isVisible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"For easily responding to geometry changes of a scroll view, see the"},{"text":"``View/onScrollGeometryChange(for:of:action:)`` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a ``GeometryProxy``."},{"text":" - transform: A closure that transforms a ``GeometryProxy``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onGeometryChange(for:of:action:)"],"names":{"title":"onGeometryChange(for:of:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to be performed when a value, created from a"},{"text":"geometry proxy, changes."},{"text":""},{"text":"The geometry of a view can change frequently, especially if"},{"text":"the view is contained within a ``ScrollView`` and that scroll view"},{"text":"is scrolling."},{"text":""},{"text":"You should avoid updating large parts of your app whenever"},{"text":"the scroll geometry changes. To aid in this, you provide two"},{"text":"closures to this modifier:"},{"text":" * transform: This converts a value of ``GeometryProxy`` to your"},{"text":" own data type."},{"text":" * action: This provides the data type you created in `of`"},{"text":" and is called whenever the data type changes."},{"text":""},{"text":"For example, you can use this modifier to know how much of a view"},{"text":"is visible on screen. In the following example,"},{"text":"the data type you convert to is a ``Bool`` and the action is called"},{"text":"whenever the ``Bool`` changes."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack {"},{"text":" ForEach(videos) { video in"},{"text":" VideoView(video)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct VideoView: View {"},{"text":" var video: VideoModel"},{"text":""},{"text":" var body: some View {"},{"text":" VideoPlayer(video)"},{"text":" .onGeometryChange(for: Bool.self) { proxy in"},{"text":" let frame = proxy.frame(in: .scrollView)"},{"text":" let bounds = proxy.bounds(of: .scrollView) ?? .zero"},{"text":" let intersection = frame.intersection("},{"text":" CGRect(origin: .zero, size: bounds.size))"},{"text":" let visibleHeight = intersection.size.height"},{"text":" return (visibleHeight / frame.size.height) > 0.75"},{"text":" } action: { isVisible in"},{"text":" video.updateAutoplayingState("},{"text":" isVisible: isVisible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - type: The type of value transformed from a geometry proxy."},{"text":" - transform: A closure that transforms a ``GeometryProxy``"},{"text":" to your type."},{"text":" - action: A closure to run when the transformed data changes."},{"text":" - term oldValue: The old value that failed the comparison check."},{"text":" - term newValue: The new value that failed the comparison check."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"of","internalName":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onGeometryChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","redacted(reason:)"],"names":{"title":"redacted(reason:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"redacted"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a reason to apply a redaction to this view hierarchy."},{"text":""},{"text":"Adding a redaction is an additive process: any redaction"},{"text":"provided will be added to the reasons provided by the parent."}]},"functionSignature":{"parameters":[{"name":"reason","declarationFragments":[{"kind":"identifier","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"redacted"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"reason"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"RedactionReasons","preciseIdentifier":"s:7SwiftUI16RedactionReasonsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10unredactedQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","unredacted()"],"names":{"title":"unredacted()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unredacted"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Removes any reason to apply a redaction to this view hierarchy."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unredacted"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","controlSize(_:)"],"names":{"title":"controlSize(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the size for controls within this view."},{"text":""},{"text":"Use `controlSize(_:)` to override the system default size for controls"},{"text":"in this view. In this example, a view displays several typical controls"},{"text":"at `.mini`, `.small` and `.regular` sizes."},{"text":""},{"text":" struct ControlSize: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" MyControls(label: \"Mini\")"},{"text":" .controlSize(.mini)"},{"text":" MyControls(label: \"Small\")"},{"text":" .controlSize(.small)"},{"text":" MyControls(label: \"Regular\")"},{"text":" .controlSize(.regular)"},{"text":" }"},{"text":" .padding()"},{"text":" .frame(width: 450)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct MyControls: View {"},{"text":" var label: String"},{"text":" @State private var value = 3.0"},{"text":" @State private var selected = 1"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Text(label + \":\")"},{"text":" Picker(\"Selection\", selection: $selected) {"},{"text":" Text(\"option 1\").tag(1)"},{"text":" Text(\"option 2\").tag(2)"},{"text":" Text(\"option 3\").tag(3)"},{"text":" }"},{"text":" Slider(value: $value, in: 1...10)"},{"text":" Button(\"OK\") { }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing several controls of various"},{"text":"sizes.](SwiftUI-View-controlSize.png)"},{"text":""},{"text":"- Parameter controlSize: One of the control sizes specified in the"},{"text":" ``ControlSize`` enumeration."}]},"functionSignature":{"parameters":[{"name":"controlSize","declarationFragments":[{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"controlSize"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ControlSize","preciseIdentifier":"s:7SwiftUI11ControlSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","materialActiveAppearance(_:)"],"names":{"title":"materialActiveAppearance(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"materialActiveAppearance"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets an explicit active appearance for materials in this view."}]},"functionSignature":{"parameters":[{"name":"appearance","declarationFragments":[{"kind":"identifier","spelling":"appearance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"materialActiveAppearance"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"appearance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"MaterialActiveAppearance","preciseIdentifier":"s:7SwiftUI24MaterialActiveAppearanceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformEffect(_:)"],"names":{"title":"transformEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies an affine transformation to this view's rendered output."},{"text":""},{"text":"Use `transformEffect(_:)` to rotate, scale, translate, or skew the"},{"text":"output of the view according to the provided"},{"text":"."},{"text":""},{"text":"In the example below, the text is rotated at -30˚ on the `y` axis."},{"text":""},{"text":" let transform = CGAffineTransform(rotationAngle: -30 * (.pi / 180))"},{"text":""},{"text":" Text(\"Projection effect using transforms\")"},{"text":" .transformEffect(transform)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot of a view showing text that is rotated at -30 degrees on"},{"text":"the y axis.](SwiftUI-View-transformEffect.png)"},{"text":""},{"text":"- Parameter transform: A"},{"text":" to"},{"text":"apply to the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGAffineTransform","preciseIdentifier":"c:@S@CGAffineTransform"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","coordinateSpace(name:)"],"names":{"title":"coordinateSpace(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Assigns a name to the view's coordinate space, so other code can operate"},{"text":"on dimensions like points and sizes relative to the named space."},{"text":""},{"text":"Use `coordinateSpace(name:)` to allow another function to find and"},{"text":"operate on a view and operate on dimensions relative to that view."},{"text":""},{"text":"The example below demonstrates how a nested view can find and operate on"},{"text":"its enclosing view's coordinate space:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var location = CGPoint.zero"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red.frame(width: 100, height: 100)"},{"text":" .overlay(circle)"},{"text":" Text(\"Location: \\(Int(location.x)), \\(Int(location.y))\")"},{"text":" }"},{"text":" .coordinateSpace(name: \"stack\")"},{"text":" }"},{"text":""},{"text":" var circle: some View {"},{"text":" Circle()"},{"text":" .frame(width: 25, height: 25)"},{"text":" .gesture(drag)"},{"text":" .padding(5)"},{"text":" }"},{"text":""},{"text":" var drag: some Gesture {"},{"text":" DragGesture(coordinateSpace: .named(\"stack\"))"},{"text":" .onChanged { info in location = info.location }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Here, the ``VStack`` in the `ContentView` named “stack” is composed of a"},{"text":"red frame with a custom ``Circle`` view ``View/overlay(_:alignment:)``"},{"text":"at its center."},{"text":""},{"text":"The `circle` view has an attached ``DragGesture`` that targets the"},{"text":"enclosing VStack's coordinate space. As the gesture recognizer's closure"},{"text":"registers events inside `circle` it stores them in the shared `location`"},{"text":"state variable and the ``VStack`` displays the coordinates in a ``Text``"},{"text":"view."},{"text":""},{"text":"![A screenshot showing an example of finding a named view and tracking"},{"text":"relative locations in that view.](SwiftUI-View-coordinateSpace.png)"},{"text":""},{"text":"- Parameter name: A name used to identify this coordinate space."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use coordinateSpace(_:) instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","coordinateSpace(_:)"],"names":{"title":"coordinateSpace(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Assigns a name to the view's coordinate space, so other code can operate"},{"text":"on dimensions like points and sizes relative to the named space."},{"text":""},{"text":"Use `coordinateSpace(_:)` to allow another function to find and"},{"text":"operate on a view and operate on dimensions relative to that view."},{"text":""},{"text":"The example below demonstrates how a nested view can find and operate on"},{"text":"its enclosing view's coordinate space:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var location = CGPoint.zero"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Color.red.frame(width: 100, height: 100)"},{"text":" .overlay(circle)"},{"text":" Text(\"Location: \\(Int(location.x)), \\(Int(location.y))\")"},{"text":" }"},{"text":" .coordinateSpace(.named(\"stack\"))"},{"text":" }"},{"text":""},{"text":" var circle: some View {"},{"text":" Circle()"},{"text":" .frame(width: 25, height: 25)"},{"text":" .gesture(drag)"},{"text":" .padding(5)"},{"text":" }"},{"text":""},{"text":" var drag: some Gesture {"},{"text":" DragGesture(coordinateSpace: .named(\"stack\"))"},{"text":" .onChanged { info in location = info.location }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Here, the ``VStack`` in the `ContentView` named “stack” is composed of a"},{"text":"red frame with a custom ``Circle`` view ``View/overlay(_:alignment:)``"},{"text":"at its center."},{"text":""},{"text":"The `circle` view has an attached ``DragGesture`` that targets the"},{"text":"enclosing VStack's coordinate space. As the gesture recognizer's closure"},{"text":"registers events inside `circle` it stores them in the shared `location`"},{"text":"state variable and the ``VStack`` displays the coordinates in a ``Text``"},{"text":"view."},{"text":""},{"text":"![A screenshot showing an example of finding a named view and tracking"},{"text":"relative locations in that view.](SwiftUI-View-coordinateSpace.png)"},{"text":""},{"text":"- Parameter name: A name used to identify this coordinate space."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NamedCoordinateSpace","preciseIdentifier":"s:7SwiftUI20NamedCoordinateSpaceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolRenderingMode(_:)"],"names":{"title":"symbolRenderingMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolRenderingMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the rendering mode for symbol images within this view."},{"text":""},{"text":"- Parameter mode: The symbol rendering mode to use."},{"text":""},{"text":"- Returns: A view that uses the rendering mode you supply."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolRenderingMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolRenderingMode","preciseIdentifier":"s:7SwiftUI19SymbolRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolVariableValueMode(_:)"],"names":{"title":"symbolVariableValueMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariableValueMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the variable value mode mode for symbol images within this view."},{"text":""},{"text":"- Parameter mode: The symbol variable value mode to use."},{"text":""},{"text":"- Returns: A view that uses the symbol variable value mode you supply."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariableValueMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariableValueMode","preciseIdentifier":"s:7SwiftUI23SymbolVariableValueModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolColorRenderingMode(_:)"],"names":{"title":"symbolColorRenderingMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolColorRenderingMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the color rendering mode for symbol images."},{"text":""},{"text":"- Parameter mode: The color rendering mode, or nil to use the"},{"text":" default mode."},{"text":""},{"text":"- Returns: A view that specifies the color rendering mode for"},{"text":" symbol images."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolColorRenderingMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolColorRenderingMode","preciseIdentifier":"s:7SwiftUI24SymbolColorRenderingModeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorEffect(_:isEnabled:)"],"names":{"title":"colorEffect(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a filter"},{"text":"effect on the color of each pixel."},{"text":""},{"text":"For a shader function to act as a color filter it must have a"},{"text":"function signature matching:"},{"text":""},{"text":" [[ stitchable ]] half4 name(float2 position, half4 color, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the pixel"},{"text":"applied to the shader and `color` its source color, as a"},{"text":"pre-multiplied color in the destination color space. `args...`"},{"text":"should be compatible with the uniform arguments bound to"},{"text":"`shader`. The function should return the modified color value."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply to `self` as a color filter."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a color filter."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","distortionEffect(_:maxSampleOffset:isEnabled:)"],"names":{"title":"distortionEffect(_:maxSampleOffset:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"distortionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a"},{"text":"geometric distortion effect on the location of each pixel."},{"text":""},{"text":"For a shader function to act as a distortion effect it must"},{"text":"have a function signature matching:"},{"text":""},{"text":" [[ stitchable ]] float2 name(float2 position, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the"},{"text":"destination pixel applied to the shader. `args...` should be"},{"text":"compatible with the uniform arguments bound to `shader`. The"},{"text":"function should return the user-space coordinates of the"},{"text":"corresponding source pixel."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply as a distortion effect."},{"text":" - maxSampleOffset: The maximum distance in each axis between"},{"text":" the returned source pixel position and the destination pixel"},{"text":" position, for all source pixels."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a distortion effect."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"maxSampleOffset","declarationFragments":[{"kind":"identifier","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"distortionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layerEffect(_:maxSampleOffset:isEnabled:)"],"names":{"title":"layerEffect(_:maxSampleOffset:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layerEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view that applies `shader` to `self` as a filter"},{"text":"on the raster layer created from `self`."},{"text":""},{"text":"For a shader function to act as a layer effect it must"},{"text":"have a function signature matching:"},{"text":""},{"text":" [[ stitchable ]] half4 name(float2 position,"},{"text":" SwiftUI::Layer layer, args...)"},{"text":""},{"text":"where `position` is the user-space coordinates of the"},{"text":"destination pixel applied to the shader, and `layer` is a"},{"text":"subregion of the rasterized contents of `self`. `args...`"},{"text":"should be compatible with the uniform arguments bound to"},{"text":"`shader`."},{"text":""},{"text":"The `SwiftUI::Layer` type is defined in the"},{"text":"`` header file. It exports a single"},{"text":"`sample()` function that returns a linearly-filtered pixel"},{"text":"value from a position in the source content, as a premultiplied"},{"text":"RGBA pixel value:"},{"text":""},{"text":" namespace SwiftUI {"},{"text":" struct Layer {"},{"text":" half4 sample(float2 position) const;"},{"text":" };"},{"text":" };"},{"text":""},{"text":"The function should return the color mapping to the destination"},{"text":"pixel, typically by sampling one or more pixels from `layer` at"},{"text":"location(s) derived from `position` and them applying some kind"},{"text":"of transformation to produce a new color."},{"text":""},{"text":"> Important: Views backed by AppKit or UIKit views may not"},{"text":" render into the filtered layer. Instead, they log a warning"},{"text":" and display a placeholder image to highlight the error."},{"text":""},{"text":"- Parameters:"},{"text":" - shader: The shader to apply as a layer effect."},{"text":" - maxSampleOffset: If the shader function samples from the"},{"text":" layer at locations not equal to the destination position,"},{"text":" this value must specify the maximum sampling distance in"},{"text":" each axis, for all source pixels."},{"text":" - isEnabled: Whether the effect is enabled or not."},{"text":""},{"text":"- Returns: A new view that renders `self` with the shader"},{"text":" applied as a distortion effect."}]},"functionSignature":{"parameters":[{"name":"shader","declarationFragments":[{"kind":"identifier","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"}]},{"name":"maxSampleOffset","declarationFragments":[{"kind":"identifier","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layerEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shader"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Shader","preciseIdentifier":"s:7SwiftUI6ShaderV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maxSampleOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","aspectRatio(_:contentMode:)"],"names":{"title":"aspectRatio(_:contentMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Constrains this view's dimensions to the specified aspect ratio."},{"text":""},{"text":"Use `aspectRatio(_:contentMode:)` to constrain a view's dimensions to an"},{"text":"aspect ratio specified by a"},{"text":""},{"text":"using the specified content mode."},{"text":""},{"text":"If this view is resizable, the resulting view will have `aspectRatio` as"},{"text":"its aspect ratio. In this example, the purple ellipse has a 3:4"},{"text":"width-to-height ratio, and scales to fit its frame:"},{"text":""},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .aspectRatio(0.75, contentMode: .fit)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A view showing a purple ellipse that has a 3:4 width-to-height ratio,"},{"text":"and scales to fit its frame.](SwiftUI-View-aspectRatio-cgfloat.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - aspectRatio: The ratio of width to height to use for the resulting"},{"text":" view. Use `nil` to maintain the current aspect ratio in the"},{"text":" resulting view."},{"text":" - contentMode: A flag that indicates whether this view fits or fills"},{"text":" the parent context."},{"text":""},{"text":"- Returns: A view that constrains this view's dimensions to the aspect"},{"text":" ratio of the given size using `contentMode` as its scaling algorithm."}]},"functionSignature":{"parameters":[{"name":"aspectRatio","declarationFragments":[{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"contentMode","declarationFragments":[{"kind":"identifier","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","aspectRatio(_:contentMode:)"],"names":{"title":"aspectRatio(_:contentMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Constrains this view's dimensions to the aspect ratio of the given size."},{"text":""},{"text":"Use `aspectRatio(_:contentMode:)` to constrain a view's dimensions to"},{"text":"an aspect ratio specified by a"},{"text":"."},{"text":""},{"text":"If this view is resizable, the resulting view uses `aspectRatio` as its"},{"text":"own aspect ratio. In this example, the purple ellipse has a 3:4"},{"text":"width-to-height ratio, and scales to fill its frame:"},{"text":""},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .aspectRatio(CGSize(width: 3, height: 4), contentMode: .fill)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A view showing a purple ellipse that has a 3:4 width-to-height ratio,"},{"text":"and scales to fill its frame.](SwiftUI-View-aspectRatio.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - aspectRatio: A size that specifies the ratio of width to height to"},{"text":" use for the resulting view."},{"text":" - contentMode: A flag indicating whether this view should fit or fill"},{"text":" the parent context."},{"text":""},{"text":"- Returns: A view that constrains this view's dimensions to"},{"text":" `aspectRatio`, using `contentMode` as its scaling algorithm."}]},"functionSignature":{"parameters":[{"name":"aspectRatio","declarationFragments":[{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"contentMode","declarationFragments":[{"kind":"identifier","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"aspectRatio"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"aspectRatio"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentMode","preciseIdentifier":"s:7SwiftUI11ContentModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaledToFitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaledToFit()"],"names":{"title":"scaledToFit()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view to fit its parent."},{"text":""},{"text":"Use `scaledToFit()` to scale this view to fit its parent, while"},{"text":"maintaining the view's aspect ratio as the view scales."},{"text":""},{"text":" Circle()"},{"text":" .fill(Color.pink)"},{"text":" .scaledToFit()"},{"text":" .frame(width: 300, height: 150)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A screenshot of pink circle scaled to fit its"},{"text":"frame.](SwiftUI-View-scaledToFit-1.png)"},{"text":""},{"text":"This method is equivalent to calling"},{"text":"``View/aspectRatio(_:contentMode:)`` with a `nil` aspectRatio and"},{"text":"a content mode of ``ContentMode/fit``."},{"text":""},{"text":"- Returns: A view that scales this view to fit its parent, maintaining"},{"text":" this view's aspect ratio."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scaledToFillQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaledToFill()"],"names":{"title":"scaledToFill()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFill"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view to fill its parent."},{"text":""},{"text":"Use `scaledToFill()` to scale this view to fill its parent, while"},{"text":"maintaining the view's aspect ratio as the view scales:"},{"text":""},{"text":" Circle()"},{"text":" .fill(Color.pink)"},{"text":" .scaledToFill()"},{"text":" .frame(width: 300, height: 150)"},{"text":" .border(Color(white: 0.75))"},{"text":""},{"text":"![A screenshot of pink circle scaled to fill its"},{"text":"frame.](SwiftUI-View-scaledToFill-1.png)"},{"text":""},{"text":"This method is equivalent to calling"},{"text":"``View/aspectRatio(_:contentMode:)`` with a `nil` aspectRatio and"},{"text":"a content mode of ``ContentMode/fill``."},{"text":""},{"text":"- Returns: A view that scales this view to fill its parent, maintaining"},{"text":" this view's aspect ratio."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaledToFill"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayPreferenceValue(_:alignment:_:)"],"names":{"title":"overlayPreferenceValue(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as an overlay to the"},{"text":"original view."},{"text":""},{"text":"The values of the preference key from both views"},{"text":"are combined and made visible to the parent view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - alignment: An optional alignment to use when positioning the"},{"text":" overlay view relative to the original view."},{"text":" - transform: A function that produces the overlay view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view in front of the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundPreferenceValue(_:alignment:_:)"],"names":{"title":"backgroundPreferenceValue(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as the background of the"},{"text":"original view."},{"text":""},{"text":"The values of the preference key from both views"},{"text":"are combined and made visible to the parent view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - alignment: An optional alignment to use when positioning the"},{"text":" background view relative to the original view."},{"text":" - transform: A function that produces the background view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view behind the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","overlayPreferenceValue(_:_:)"],"names":{"title":"overlayPreferenceValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type, ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as an overlay to the"},{"text":"original view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - transform: A function that produces the overlay view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view in front of the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Key","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Key","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"overlayPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type = Key.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundPreferenceValue(_:_:)"],"names":{"title":"backgroundPreferenceValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type, ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Reads the specified preference value from the view, using it to"},{"text":"produce a second view that is applied as the background of the"},{"text":"original view."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The preference key type whose value is to be read."},{"text":" - transform: A function that produces the background view from"},{"text":" the preference value read from the original view."},{"text":""},{"text":"- Returns: A view that layers a second view behind the view."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type"}]},{"name":"transform","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Key","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Key","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundPreferenceValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Key"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":".Type = Key.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Key"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","zIndex(_:)"],"names":{"title":"zIndex(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zIndex"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Controls the display order of overlapping views."},{"text":""},{"text":"Use `zIndex(_:)` when you want to control the front-to-back ordering of"},{"text":"views."},{"text":""},{"text":"In this example there are two overlapping rotated rectangles. The"},{"text":"frontmost is represented by the larger index value."},{"text":""},{"text":" VStack {"},{"text":" Rectangle()"},{"text":" .fill(Color.yellow)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .zIndex(1) // Top layer."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(Color.red)"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .rotationEffect(.degrees(45))"},{"text":" // Here a zIndex of 0 is the default making"},{"text":" // this the bottom layer."},{"text":" }"},{"text":""},{"text":"![A screenshot showing two overlapping rectangles. The frontmost view is"},{"text":"represented by the larger zIndex value.](SwiftUI-View-zIndex.png)"},{"text":""},{"text":"- Parameter value: A relative front-to-back ordering for this view; the"},{"text":" default is `0`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zIndex"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutValue(key:value:)"],"names":{"title":"layoutValue(key:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a value with a custom layout property."},{"text":""},{"text":"Use this method to set a value for a custom property that"},{"text":"you define with ``LayoutValueKey``. For example, if you define"},{"text":"a `Flexibility` key, you can set the key on a ``Text`` view"},{"text":"using the key's type and a value:"},{"text":""},{"text":" Text(\"Another View\")"},{"text":" .layoutValue(key: Flexibility.self, value: 3)"},{"text":""},{"text":"For convenience, you might define a method that does this in an"},{"text":"extension to ``View``:"},{"text":""},{"text":" extension View {"},{"text":" func layoutFlexibility(_ value: CGFloat?) -> some View {"},{"text":" layoutValue(key: Flexibility.self, value: value)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This method makes the call site easier to read:"},{"text":""},{"text":" Text(\"Another View\")"},{"text":" .layoutFlexibility(3)"},{"text":""},{"text":"If you perform layout operations in a type that conforms to the"},{"text":"``Layout`` protocol, you can read the key's associated value for"},{"text":"each subview of your custom layout type. Do this by indexing the"},{"text":"subview's proxy with the key. For more information, see"},{"text":"``LayoutValueKey``."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The type of the key that you want to set a value for."},{"text":" Create the key as a type that conforms to the ``LayoutValueKey``"},{"text":" protocol."},{"text":" - value: The value to assign to the key for this view."},{"text":" The value must be of the type that you establish for the key's"},{"text":" associated value when you implement the key's"},{"text":" ``LayoutValueKey/defaultValue`` property."},{"text":""},{"text":"- Returns: A view that has the specified value for the specified key."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"LayoutValueKey","rhsPrecise":"s:7SwiftUI14LayoutValueKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP0D0Qa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LayoutValueKey","preciseIdentifier":"s:7SwiftUI14LayoutValueKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","multilineTextAlignment(_:)"],"names":{"title":"multilineTextAlignment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the alignment of a text view that contains multiple lines of text."},{"text":""},{"text":"Use this modifier to set an alignment for a multiline block of text."},{"text":"For example, the modifier centers the contents of the following"},{"text":"``Text`` view:"},{"text":""},{"text":" Text(\"This is a block of text that shows up in a text element as multiple lines.\\(\"\\n\") Here we have chosen to center this text.\")"},{"text":" .frame(width: 200)"},{"text":" .multilineTextAlignment(.center)"},{"text":""},{"text":"The text in the above example spans more than one line because:"},{"text":""},{"text":"* The newline character introduces a line break."},{"text":"* The frame modifier limits the space available to the text view, and"},{"text":" by default a text view wraps lines that don't fit in the available"},{"text":" width. As a result, the text before the explicit line break wraps to"},{"text":" three lines, and the text after uses two lines."},{"text":""},{"text":"The modifier applies the alignment to the all the lines of text in"},{"text":"the view, regardless of why wrapping occurs:"},{"text":""},{"text":"![A block of text that spans 5 lines. The lines of text are center-aligned.](View-multilineTextAlignment-1-iOS)"},{"text":""},{"text":"The modifier has no effect on a ``Text`` view that contains only one"},{"text":"line of text, because a text view has a width that exactly matches the"},{"text":"width of its widest line. If you want to align an entire text view"},{"text":"rather than its contents, set the aligment of its container, like a"},{"text":"``VStack`` or a frame that you create with the"},{"text":"``View/frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)``"},{"text":"modifier."},{"text":""},{"text":"> Note: You can use this modifier to control the alignment of a ``Text``"},{"text":" view that you create with the ``Text/init(_:style:)`` initializer"},{"text":" to display localized dates and times, including when the view uses"},{"text":" only a single line, but only when that view appears in a widget."},{"text":""},{"text":"The modifier also affects the content alignment of other text container"},{"text":"types, like ``TextEditor`` and ``TextField``. In those cases, the"},{"text":"modifier sets the alignment even when the view contains only a single"},{"text":"line because view's width isn't dictated by the width of the text it"},{"text":"contains."},{"text":""},{"text":"The modifier operates by setting the"},{"text":"``EnvironmentValues/multilineTextAlignment`` value in the environment,"},{"text":"so it affects all the text containers in the modified view hierarchy."},{"text":"For example, you can apply the modifier to a ``VStack`` to"},{"text":"configure all the text views inside the stack."},{"text":""},{"text":"- Parameter alignment: A value that you use to align multiple lines of"},{"text":" text within a view."},{"text":""},{"text":"- Returns: A view that aligns the lines of multiline ``Text`` instances"},{"text":" it contains."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"multilineTextAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextAlignment","preciseIdentifier":"s:7SwiftUI13TextAlignmentO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","truncationMode(_:)"],"names":{"title":"truncationMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"truncationMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the truncation mode for lines of text that are too long to fit in"},{"text":"the available space."},{"text":""},{"text":"Use the `truncationMode(_:)` modifier to determine whether text in a"},{"text":"long line is truncated at the beginning, middle, or end. Truncation is"},{"text":"indicated by adding an ellipsis (…) to the line when removing text to"},{"text":"indicate to readers that text is missing."},{"text":""},{"text":"In the example below, the bounds of text view constrains the amount of"},{"text":"text that the view displays and the `truncationMode(_:)` specifies from"},{"text":"which direction and where to display the truncation indicator:"},{"text":""},{"text":" Text(\"This is a block of text that will show up in a text element as multiple lines. The text will fill the available space, and then, eventually, be truncated.\")"},{"text":" .frame(width: 150, height: 150)"},{"text":" .truncationMode(.tail)"},{"text":""},{"text":"![A screenshot showing the effect of truncation mode on text in a"},{"text":"view.](SwiftUI-view-truncationMode.png)"},{"text":""},{"text":"- Parameter mode: The truncation mode that specifies where to truncate"},{"text":" the text within the text view, if needed. You can truncate at the"},{"text":" beginning, middle, or end of the text view."},{"text":""},{"text":"- Returns: A view that truncates text at different points in a line"},{"text":" depending on the mode you select."}]},"functionSignature":{"parameters":[{"name":"mode","declarationFragments":[{"kind":"identifier","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"truncationMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TruncationMode","preciseIdentifier":"s:7SwiftUI4TextV14TruncationModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineSpacing(_:)"],"names":{"title":"lineSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the amount of space between lines of text in this view."},{"text":""},{"text":"Use `lineSpacing(_:)` to set the amount of spacing from the bottom of"},{"text":"one line to the top of the next for text elements in the view."},{"text":""},{"text":"In the ``Text`` view in the example below, 10 points separate the bottom"},{"text":"of one line to the top of the next as the text field wraps inside this"},{"text":"view. Applying `lineSpacing(_:)` to a view hierarchy applies the line"},{"text":"spacing to all text elements contained in the view."},{"text":""},{"text":" Text(\"This is a string in a TextField with 10 point spacing applied between the bottom of one line and the top of the next.\")"},{"text":" .frame(width: 200, height: 200, alignment: .leading)"},{"text":" .lineSpacing(10)"},{"text":""},{"text":"![A screenshot showing the effects of setting line spacing on the text"},{"text":"in a view.](SwiftUI-view-lineSpacing.png)"},{"text":""},{"text":"- Parameter lineSpacing: The amount of space between the bottom of one"},{"text":" line and the top of the next line in points."}]},"functionSignature":{"parameters":[{"name":"lineSpacing","declarationFragments":[{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"lineSpacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsTightening(_:)"],"names":{"title":"allowsTightening(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsTightening"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets whether text in this view can compress the space between characters"},{"text":"when necessary to fit text in a line."},{"text":""},{"text":"Use `allowsTightening(_:)` to enable the compression of inter-character"},{"text":"spacing of text in a view to try to fit the text in the view's bounds."},{"text":""},{"text":"In the example below, two identically configured text views show the"},{"text":"effects of `allowsTightening(_:)` on the compression of the spacing"},{"text":"between characters:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"This is a wide text element\")"},{"text":" .font(.body)"},{"text":" .frame(width: 200, height: 50, alignment: .leading)"},{"text":" .lineLimit(1)"},{"text":" .allowsTightening(true)"},{"text":""},{"text":" Text(\"This is a wide text element\")"},{"text":" .font(.body)"},{"text":" .frame(width: 200, height: 50, alignment: .leading)"},{"text":" .lineLimit(1)"},{"text":" .allowsTightening(false)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of enabling text tightening in a"},{"text":"view.](SwiftUI-view-allowsTightening.png)"},{"text":""},{"text":"- Parameter flag: A Boolean value that indicates whether the space"},{"text":" between characters compresses when necessary."},{"text":""},{"text":"- Returns: A view that can compress the space between characters when"},{"text":" necessary to fit text in a line."}]},"functionSignature":{"parameters":[{"name":"flag","declarationFragments":[{"kind":"identifier","spelling":"flag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsTightening"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"flag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","minimumScaleFactor(_:)"],"names":{"title":"minimumScaleFactor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minimumScaleFactor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the minimum amount that text in this view scales down to fit in the"},{"text":"available space."},{"text":""},{"text":"Use the `minimumScaleFactor(_:)` modifier if the text you place in a"},{"text":"view doesn't fit and it's okay if the text shrinks to accommodate. For"},{"text":"example, a label with a minimum scale factor of `0.5` draws its text in"},{"text":"a font size as small as half of the actual font if needed."},{"text":""},{"text":"In the example below, the ``HStack`` contains a ``Text`` label with a"},{"text":"line limit of `1`, that is next to a ``TextField``. To allow the label"},{"text":"to fit into the available space, the `minimumScaleFactor(_:)` modifier"},{"text":"shrinks the text as needed to fit into the available space."},{"text":""},{"text":" HStack {"},{"text":" Text(\"This is a long label that will be scaled to fit:\")"},{"text":" .lineLimit(1)"},{"text":" .minimumScaleFactor(0.5)"},{"text":" TextField(\"My Long Text Field\", text: $myTextField)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of setting a minimumScaleFactor on"},{"text":"text in a view.](SwiftUI-View-minimumScaleFactor.png)"},{"text":""},{"text":"- Parameter factor: A fraction between 0 and 1 (inclusive) you use to"},{"text":" specify the minimum amount of text scaling that this view permits."},{"text":""},{"text":"- Returns: A view that limits the amount of text downscaling."}]},"functionSignature":{"parameters":[{"name":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minimumScaleFactor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textCase(_:)"],"names":{"title":"textCase(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a transform for the case of the text contained in this view when"},{"text":"displayed."},{"text":""},{"text":"The default value is `nil`, displaying the text without any case"},{"text":"changes."},{"text":""},{"text":"- Parameter textCase: One of the ``Text/Case`` enumerations; the"},{"text":" default is `nil`."},{"text":"- Returns: A view that transforms the case of the text."}]},"functionSignature":{"parameters":[{"name":"textCase","declarationFragments":[{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textCase"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textCase"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Case","preciseIdentifier":"s:7SwiftUI4TextV4CaseO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typesettingLanguage(_:isEnabled:)"],"names":{"title":"typesettingLanguage(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Specifies the language for typesetting."},{"text":""},{"text":"In some cases `Text` may contain text of a particular language which"},{"text":"doesn't match the device UI language. In that case it's useful to"},{"text":"specify a language so line height, line breaking and spacing will"},{"text":"respect the script used for that language. For example:"},{"text":""},{"text":" Text(verbatim: \"แอปเปิล\")"},{"text":" .typesettingLanguage(.init(languageCode: .thai))"},{"text":""},{"text":"Note: this language does not affect text localization."},{"text":""},{"text":"- Parameters:"},{"text":" - language: The explicit language to use for typesetting."},{"text":" - isEnabled: A Boolean value that indicates whether text language is"},{"text":" added"},{"text":"- Returns: A view with the typesetting language set to the value you"},{"text":" supply."}]},"functionSignature":{"parameters":[{"name":"language","declarationFragments":[{"kind":"identifier","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Locale","preciseIdentifier":"s:10Foundation6LocaleV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Language","preciseIdentifier":"s:10Foundation6LocaleV8LanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typesettingLanguage(_:isEnabled:)"],"names":{"title":"typesettingLanguage(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Specifies the language for typesetting."},{"text":""},{"text":"In some cases `Text` may contain text of a particular language which"},{"text":"doesn't match the device UI language. In that case it's useful to"},{"text":"specify a language so line height, line breaking and spacing will"},{"text":"respect the script used for that language. For example:"},{"text":""},{"text":" Text(verbatim: \"แอปเปิล\").typesettingLanguage("},{"text":" .explicit(.init(languageCode: .thai)))"},{"text":""},{"text":"Note: this language does not affect text localized localization."},{"text":""},{"text":"- Parameters:"},{"text":" - language: The language to use for typesetting."},{"text":" - isEnabled: A Boolean value that indicates whether text language is"},{"text":" added"},{"text":"- Returns: A view with the typesetting language set to the value you"},{"text":" supply."}]},"functionSignature":{"parameters":[{"name":"language","declarationFragments":[{"kind":"identifier","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typesettingLanguage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"language"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TypesettingLanguage","preciseIdentifier":"s:7SwiftUI19TypesettingLanguageV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineLimit(_:)"],"names":{"title":"lineLimit(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the maximum number of lines that text can occupy in this view."},{"text":""},{"text":"Use this modifier to cap the number of lines that an individual text"},{"text":"element can display."},{"text":""},{"text":"The line limit applies to all ``Text`` instances within a hierarchy. For"},{"text":"example, an ``HStack`` with multiple pieces of text longer than three"},{"text":"lines caps each piece of text to three lines rather than capping the"},{"text":"total number of lines across the ``HStack``."},{"text":""},{"text":"In the example below, the modifier limits the very long"},{"text":"line in the ``Text`` element to the 2 lines that fit within the view's"},{"text":"bounds:"},{"text":""},{"text":" Text(\"This is a long string that demonstrates the effect of SwiftUI's lineLimit(:_) operator.\")"},{"text":" .frame(width: 200, height: 200, alignment: .leading)"},{"text":" .lineLimit(2)"},{"text":""},{"text":"![A screenshot showing showing the effect of the line limit operator on"},{"text":"a very long string in a view.](SwiftUI-view-lineLimit.png)"},{"text":""},{"text":"- Parameter number: The line limit. If `nil`, no line limit applies."},{"text":""},{"text":"- Returns: A view that limits the number of lines that ``Text``"},{"text":" instances display."}]},"functionSignature":{"parameters":[{"name":"number","declarationFragments":[{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"number"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","lineLimit(_:reservesSpace:)"],"names":{"title":"lineLimit(_:reservesSpace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a limit for the number of lines text can occupy in this view."},{"text":""},{"text":"Use this modifier to specify a limit to the lines that a"},{"text":"``Text`` or a vertical ``TextField`` may occupy. If passed a"},{"text":"value of true for the `reservesSpace` parameter, and the text of such"},{"text":"views occupies less space than the provided limit, that view expands"},{"text":"to occupy the minimum number of lines. When the text occupies"},{"text":"more space than the provided limit, a ``Text`` view truncates its"},{"text":"content while a ``TextField`` becomes scrollable."},{"text":""},{"text":" GroupBox {"},{"text":" Text(\"Title\")"},{"text":" .font(.headline)"},{"text":" .lineLimit(2, reservesSpace: true)"},{"text":" Text(\"Subtitle\")"},{"text":" .font(.subheadline)"},{"text":" .lineLimit(4, reservesSpace: true)"},{"text":" }"},{"text":""},{"text":"- Parameter limit: The line limit."},{"text":"- Parameter reservesSpace: Whether text reserves space so that"},{"text":" it always occupies the height required to display the specified"},{"text":" number of lines."}]},"functionSignature":{"parameters":[{"name":"limit","declarationFragments":[{"kind":"identifier","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"reservesSpace","declarationFragments":[{"kind":"identifier","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lineLimit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"reservesSpace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alignmentGuide(_:computeValue:)"],"names":{"title":"alignmentGuide(_:computeValue:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's horizontal alignment."},{"text":""},{"text":"Use `alignmentGuide(_:computeValue:)` to calculate specific offsets"},{"text":"to reposition views in relationship to one another. You can return a"},{"text":"constant or can use the ``ViewDimensions`` argument to the closure to"},{"text":"calculate a return value."},{"text":""},{"text":"In the example below, the ``HStack`` is offset by a constant of 50"},{"text":"points to the right of center:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Today's Weather\")"},{"text":" .font(.title)"},{"text":" .border(.gray)"},{"text":" HStack {"},{"text":" Text(\"🌧\")"},{"text":" Text(\"Rain & Thunderstorms\")"},{"text":" Text(\"⛈\")"},{"text":" }"},{"text":" .alignmentGuide(HorizontalAlignment.center) { _ in 50 }"},{"text":" .border(.gray)"},{"text":" }"},{"text":" .border(.gray)"},{"text":""},{"text":"Changing the alignment of one view may have effects on surrounding"},{"text":"views. Here the offset values inside a stack and its contained views is"},{"text":"the difference of their absolute offsets."},{"text":""},{"text":"![A view showing the two emoji offset from a text element using a"},{"text":"horizontal alignment guide.](SwiftUI-View-HAlignmentGuide.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - g: A ``HorizontalAlignment`` value at which to base the offset."},{"text":" - computeValue: A closure that returns the offset value to apply to"},{"text":" this view."},{"text":""},{"text":"- Returns: A view modified with respect to its horizontal alignment"},{"text":" according to the computation performed in the method's closure."}]},"functionSignature":{"parameters":[{"name":"g","declarationFragments":[{"kind":"identifier","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"computeValue","declarationFragments":[{"kind":"identifier","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alignmentGuide(_:computeValue:)"],"names":{"title":"alignmentGuide(_:computeValue:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's vertical alignment."},{"text":""},{"text":"Use `alignmentGuide(_:computeValue:)` to calculate specific offsets"},{"text":"to reposition views in relationship to one another. You can return a"},{"text":"constant or can use the ``ViewDimensions`` argument to the closure to"},{"text":"calculate a return value."},{"text":""},{"text":"In the example below, the weather emoji are offset 20 points from the"},{"text":"vertical center of the ``HStack``."},{"text":""},{"text":" VStack {"},{"text":" Text(\"Today's Weather\")"},{"text":" .font(.title)"},{"text":" .border(.gray)"},{"text":""},{"text":" HStack {"},{"text":" Text(\"🌧\")"},{"text":" .alignmentGuide(VerticalAlignment.center) { _ in -20 }"},{"text":" .border(.gray)"},{"text":" Text(\"Rain & Thunderstorms\")"},{"text":" .border(.gray)"},{"text":" Text(\"⛈\")"},{"text":" .alignmentGuide(VerticalAlignment.center) { _ in 20 }"},{"text":" .border(.gray)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Changing the alignment of one view may have effects on surrounding"},{"text":"views. Here the offset values inside a stack and its contained views is"},{"text":"the difference of their absolute offsets."},{"text":""},{"text":"![A view showing the two emoji offset from a text element using a"},{"text":"vertical alignment guide.](SwiftUI-View-VAlignmentGuide.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - g: A ``VerticalAlignment`` value at which to base the offset."},{"text":" - computeValue: A closure that returns the offset value to apply to"},{"text":" this view."},{"text":""},{"text":"- Returns: A view modified with respect to its vertical alignment"},{"text":" according to the computation performed in the method's closure."}]},"functionSignature":{"parameters":[{"name":"g","declarationFragments":[{"kind":"identifier","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"computeValue","declarationFragments":[{"kind":"identifier","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alignmentGuide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"g"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"computeValue"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"ViewDimensions","preciseIdentifier":"s:7SwiftUI14ViewDimensionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","backgroundStyle(_:)"],"names":{"title":"backgroundStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the specified style to render backgrounds within the view."},{"text":""},{"text":"The following example uses this modifier to set the"},{"text":"``EnvironmentValues/backgroundStyle`` environment value to a"},{"text":"``ShapeStyle/blue`` color that includes a subtle ``Color/gradient``."},{"text":"SwiftUI fills the ``Circle`` shape that acts as a background element"},{"text":"with this style:"},{"text":""},{"text":" Image(systemName: \"swift\")"},{"text":" .padding()"},{"text":" .background(in: Circle())"},{"text":" .backgroundStyle(.blue.gradient)"},{"text":""},{"text":"![An image of the Swift logo inside a circle that's blue with a slight"},{"text":"linear gradient. The blue color is slightly lighter at the top of the"},{"text":"circle and slightly darker at the bottom.](View-backgroundStyle-1-iOS)"},{"text":""},{"text":"To restore the default background style, set the"},{"text":"``EnvironmentValues/backgroundStyle`` environment value to"},{"text":"`nil` using the ``View/environment(_:_:)`` modifer:"},{"text":""},{"text":" .environment(\\.backgroundStyle, nil)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"backgroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:)"],"names":{"title":"foregroundStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a view's foreground elements to use a given style."},{"text":""},{"text":"Use this method to style"},{"text":"foreground content like text, shapes, and template images"},{"text":"(including symbols):"},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"triangle.fill\")"},{"text":" Text(\"Hello, world!\")"},{"text":" RoundedRectangle(cornerRadius: 5)"},{"text":" .frame(width: 40, height: 20)"},{"text":" }"},{"text":" .foregroundStyle(.teal)"},{"text":""},{"text":"The example above creates a row of ``ShapeStyle/teal`` foreground"},{"text":"elements:"},{"text":""},{"text":"![A screenshot of a teal triangle, string, and rounded"},{"text":"rectangle.](View-foregroundStyle-1)"},{"text":""},{"text":"You can use any style that conforms to the ``ShapeStyle`` protocol,"},{"text":"like the ``ShapeStyle/teal`` color in the example above, or the"},{"text":"``ShapeStyle/linearGradient(colors:startPoint:endPoint:)`` gradient"},{"text":"shown below:"},{"text":""},{"text":" Text(\"Gradient Text\")"},{"text":" .font(.largeTitle)"},{"text":" .foregroundStyle("},{"text":" .linearGradient("},{"text":" colors: [.yellow, .blue],"},{"text":" startPoint: .top,"},{"text":" endPoint: .bottom"},{"text":" )"},{"text":" )"},{"text":""},{"text":"![A screenshot of the words Gradient Text, with letters that"},{"text":" appear yellow at the top, and transition to blue"},{"text":" toward the bottom.](View-foregroundStyle-2)"},{"text":""},{"text":"> Tip: If you want to fill a single ``Shape`` instance with a style,"},{"text":"use the ``Shape/fill(style:)`` shape modifier instead because it's more"},{"text":"efficient."},{"text":""},{"text":"SwiftUI creates a context-dependent render for a given style."},{"text":"For example, a ``Color`` that you load from an asset catalog"},{"text":"can have different light and dark appearances, while some styles"},{"text":"also vary by platform."},{"text":""},{"text":"Hierarchical foreground styles like ``ShapeStyle/secondary``"},{"text":"don't impose a style of their own, but instead modify other styles."},{"text":"In particular, they modify the primary"},{"text":"level of the current foreground style to the degree given by"},{"text":"the hierarchical style's name."},{"text":"To find the current foreground style to modify, SwiftUI looks for"},{"text":"the innermost containing style that you apply with the"},{"text":"`foregroundStyle(_:)` or the ``View/foregroundColor(_:)`` modifier."},{"text":"If you haven't specified a style, SwiftUI uses the default foreground"},{"text":"style, as in the following example:"},{"text":""},{"text":" VStack(alignment: .leading) {"},{"text":" Label(\"Primary\", systemImage: \"1.square.fill\")"},{"text":" Label(\"Secondary\", systemImage: \"2.square.fill\")"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":""},{"text":"![A screenshot of two labels with the text primary and secondary."},{"text":"The first appears in a brighter shade than the"},{"text":"second, both in a grayscale color.](View-foregroundStyle-3)"},{"text":""},{"text":"If you add a foreground style on the enclosing"},{"text":"``VStack``, the hierarchical styling responds accordingly:"},{"text":""},{"text":" VStack(alignment: .leading) {"},{"text":" Label(\"Primary\", systemImage: \"1.square.fill\")"},{"text":" Label(\"Secondary\", systemImage: \"2.square.fill\")"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":" .foregroundStyle(.blue)"},{"text":""},{"text":"![A screenshot of two labels with the text primary and secondary."},{"text":"The first appears in a brighter shade than the"},{"text":"second, both tinted blue.](View-foregroundStyle-4)"},{"text":""},{"text":"When you apply a custom style to a view, the view disables the vibrancy"},{"text":"effect for foreground elements in that view, or in any of its child"},{"text":"views, that it would otherwise gain from adding a background material"},{"text":"--- for example, using the ``View/background(_:ignoresSafeAreaEdges:)``"},{"text":"modifier. However, hierarchical styles applied to the default foreground"},{"text":"don't disable vibrancy."},{"text":""},{"text":"- Parameter style: The color or pattern to use when filling in the"},{"text":" foreground elements. To indicate a specific value, use ``Color`` or"},{"text":" ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":""},{"text":"- Returns: A view that uses the given foreground style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:_:)"],"names":{"title":"foregroundStyle(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the primary and secondary levels of the foreground"},{"text":"style in the child view."},{"text":""},{"text":"SwiftUI uses these styles when rendering child views"},{"text":"that don't have an explicit rendering style, like images,"},{"text":"text, shapes, and so on."},{"text":""},{"text":"Symbol images within the view hierarchy use the"},{"text":"``SymbolRenderingMode/palette`` rendering mode when you apply this"},{"text":"modifier, if you don't explicitly specify another mode."},{"text":""},{"text":"- Parameters:"},{"text":" - primary: The primary color or pattern to use when filling in"},{"text":" the foreground elements. To indicate a specific value, use ``Color``"},{"text":" or ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":" - secondary: The secondary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":""},{"text":"- Returns: A view that uses the given foreground styles."}]},"functionSignature":{"parameters":[{"name":"primary","declarationFragments":[{"kind":"identifier","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"}]},{"name":"secondary","declarationFragments":[{"kind":"identifier","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S1","index":0,"depth":1},{"name":"S2","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S1","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S2","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","foregroundStyle(_:_:_:)"],"names":{"title":"foregroundStyle(_:_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S3"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the primary, secondary, and tertiary levels of"},{"text":"the foreground style."},{"text":""},{"text":"SwiftUI uses these styles when rendering child views"},{"text":"that don't have an explicit rendering style, like images,"},{"text":"text, shapes, and so on."},{"text":""},{"text":"Symbol images within the view hierarchy use the"},{"text":"``SymbolRenderingMode/palette`` rendering mode when you apply this"},{"text":"modifier, if you don't explicitly specify another mode."},{"text":""},{"text":"- Parameters:"},{"text":" - primary: The primary color or pattern to use when filling in"},{"text":" the foreground elements. To indicate a specific value, use ``Color``"},{"text":" or ``ShapeStyle/image(_:sourceRect:scale:)``, or one of the gradient"},{"text":" types, like"},{"text":" ``ShapeStyle/linearGradient(colors:startPoint:endPoint:)``. To set a"},{"text":" style that’s relative to the containing view's style, use one of the"},{"text":" semantic styles, like ``ShapeStyle/primary``."},{"text":" - secondary: The secondary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":" - tertiary: The tertiary color or pattern to use when"},{"text":" filling in the foreground elements."},{"text":""},{"text":"- Returns: A view that uses the given foreground styles."}]},"functionSignature":{"parameters":[{"name":"primary","declarationFragments":[{"kind":"identifier","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"}]},{"name":"secondary","declarationFragments":[{"kind":"identifier","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"}]},{"name":"tertiary","declarationFragments":[{"kind":"identifier","spelling":"tertiary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S3"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S1","index":0,"depth":1},{"name":"S2","index":1,"depth":1},{"name":"S3","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S1","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S2","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"S3","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"foregroundStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"S3"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"primary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"secondary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tertiary"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S1"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S2"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S3"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformPreference(_:_:)"],"names":{"title":"transformPreference(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a transformation to a preference value."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"callback","declarationFragments":[{"kind":"identifier","spelling":"callback"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"callback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","preference(key:value:)"],"names":{"title":"preference(key:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the given preference."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","luminanceToAlpha()"],"names":{"title":"luminanceToAlpha()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"luminanceToAlpha"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a luminance to alpha effect to this view."},{"text":""},{"text":"Use this modifier to create a semitransparent mask, with the opacity of"},{"text":"each part of the modified view controlled by the luminance of the"},{"text":"corresponding part of the original view. Regions of lower luminance"},{"text":"become more transparent, while higher luminance yields greater"},{"text":"opacity."},{"text":""},{"text":"In particular, the modifier maps the red, green, and blue components of"},{"text":"each input pixel's color to a grayscale value, and that value becomes"},{"text":"the alpha component of a black pixel in the output. This modifier"},{"text":"produces an effect that's equivalent to using the `feColorMatrix`"},{"text":"filter primitive with the `luminanceToAlpha` type attribute, as defined"},{"text":"by the [Scalable Vector Graphics (SVG) 2](https://www.w3.org/TR/SVG2/)"},{"text":"specification."},{"text":""},{"text":"The example below defines a `Palette` view as a series of rectangles,"},{"text":"each composed as a ``Color`` with a particular white value,"},{"text":"and then displays two versions of the palette over a blue background:"},{"text":""},{"text":" struct Palette: View {"},{"text":" var body: some View {"},{"text":" HStack(spacing: 0) {"},{"text":" ForEach(0..<10) { index in"},{"text":" Color(white: Double(index) / Double(9))"},{"text":" .frame(width: 20, height: 40)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct LuminanceToAlphaExample: View {"},{"text":" var body: some View {"},{"text":" VStack(spacing: 20) {"},{"text":" Palette()"},{"text":""},{"text":" Palette()"},{"text":" .luminanceToAlpha()"},{"text":" }"},{"text":" .padding()"},{"text":" .background(.blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The unmodified version of the palette contains rectangles that range"},{"text":"from solid black to solid white, thus with increasing luminance. The"},{"text":"second version of the palette, which has the `luminanceToAlpha()`"},{"text":"modifier applied, allows the background to show through in an amount"},{"text":"that corresponds inversely to the luminance of the input."},{"text":""},{"text":"![A screenshot of a blue background with two wide rectangles on it,"},{"text":"arranged vertically, with one above the other. Each is composed of a"},{"text":"series of smaller rectangles arranged from left to right. The component"},{"text":"rectangles of the first large rectangle range from black to white as"},{"text":"you scan from left to right, with each successive component rectangle"},{"text":"slightly whiter than the previous. The component rectangles of the"},{"text":"second large rectangle range from fully transparent to fully opaque,"},{"text":"scanning in the same direction.](View-luminanceToAlpha-1-iOS)"},{"text":""},{"text":"- Returns: A view with the luminance to alpha effect applied."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"luminanceToAlpha"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:alignment:)"],"names":{"title":"containerRelativeFrame(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use this modifier to specify a size for a view's width, height,"},{"text":"or both that is dependent on the size of the nearest container."},{"text":"Different things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:count:span:spacing:alignment:)``"},{"text":"modifier to size a view such that multiple views will be visible in"},{"text":"the container. When using this modifier, the count refers to the"},{"text":"total number of rows or columns that the length of the container size"},{"text":"in a particular axis should be divided into. The span refers to the"},{"text":"number of rows or columns that the modified view should actually"},{"text":"occupy. Thus the size of the element can be described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:_:)``"},{"text":"modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:count:span:spacing:alignment:)"],"names":{"title":"containerRelativeFrame(_:count:span:spacing:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:)`` modifier"},{"text":"to specify a size for a view's width, height, or both that"},{"text":"is dependent on the size of the nearest container. Different"},{"text":"things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use this modifier to size a view such that multiple views will be"},{"text":"visible in the container. When using this modifier, the count refers"},{"text":"to the total number of rows or columns that the length of the"},{"text":"container size in a particular axis should be divided into. The span"},{"text":"refers to the number of rows or columns that the modified view"},{"text":"should actually occupy. Thus the size of the element can be"},{"text":"described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:_:)``"},{"text":"modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"span","declarationFragments":[{"kind":"identifier","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"span"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerRelativeFrame(_:alignment:_:)"],"names":{"title":"containerRelativeFrame(_:alignment:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with a size relative"},{"text":"to the nearest container."},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:alignment:)`` modifier"},{"text":"to specify a size for a view's width, height, or both that"},{"text":"is dependent on the size of the nearest container. Different"},{"text":"things can represent a \"container\" including:"},{"text":" - The window presenting a view on iPadOS or macOS, or the"},{"text":" screen of a device on iOS."},{"text":" - A column of a NavigationSplitView"},{"text":" - A NavigationStack"},{"text":" - A tab of a TabView"},{"text":" - A scrollable view like ScrollView or List"},{"text":""},{"text":"The size provided to this modifier is the size of a container like"},{"text":"the ones listed above subtracting any safe area insets that might"},{"text":"be applied to that container."},{"text":""},{"text":"The following example will have each purple rectangle occupy the full"},{"text":"size of the screen on iOS:"},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 0.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .containerRelativeFrame([.horizontal, .vertical])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``View/containerRelativeFrame(_:count:span:spacing:alignment:)``"},{"text":"modifier to size a view such that multiple views will be"},{"text":"visible in the container. When using this modifier, the count"},{"text":"refers to the total number of rows or columns that the length of"},{"text":"the container size in a particular axis should be divided into."},{"text":"The span refers to the number of rows or columns that the modified"},{"text":"view should actually occupy. Thus the size of the element can"},{"text":"be described like so:"},{"text":""},{"text":" let availableWidth = (containerWidth - (spacing * (count - 1)))"},{"text":" let columnWidth = (availableWidth / count)"},{"text":" let itemWidth = (columnWidth * span) + ((span - 1) * spacing)"},{"text":""},{"text":"The following example only uses the nearest container size in the"},{"text":"horizontal axis, allowing the vertical axis to be determined using"},{"text":"the ``View/aspectRatio(_:contentMode:)`` modifier."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" LazyHStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(3.0 / 2.0, contentMode: .fit)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, count: 4, span: 3, spacing: 10.0)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"Use this modifier to apply your own custom logic to adjust the size"},{"text":"of the nearest container for your view. The following example will"},{"text":"result in the container frame's width being divided by 3 and using"},{"text":"that value as the width of the purple rectangle."},{"text":""},{"text":" Rectangle()"},{"text":" .fill(.purple)"},{"text":" .aspectRatio(1.0, contentMode: .fill)"},{"text":" .containerRelativeFrame("},{"text":" .horizontal, alignment: .topLeading"},{"text":" ) { length, axis in"},{"text":" if axis == .vertical {"},{"text":" return length / 3.0"},{"text":" } else {"},{"text":" return length / 5.0"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerRelativeFrame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onAppear(perform:)"],"names":{"title":"onAppear(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform before this view appears."},{"text":""},{"text":"The exact moment that SwiftUI calls this method"},{"text":"depends on the specific view type that you apply it to, but"},{"text":"the `action` closure completes before the first"},{"text":"rendered frame appears."},{"text":""},{"text":"- Parameter action: The action to perform. If `action` is `nil`, the"},{"text":" call has no effect."},{"text":""},{"text":"- Returns: A view that triggers `action` before it appears."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onAppear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDisappear(perform:)"],"names":{"title":"onDisappear(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDisappear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform after this view disappears."},{"text":""},{"text":"The exact moment that SwiftUI calls this method"},{"text":"depends on the specific view type that you apply it to, but"},{"text":"the `action` closure doesn't execute until the view"},{"text":"disappears from the interface."},{"text":""},{"text":"- Parameter action: The action to perform. If `action` is `nil`, the"},{"text":" call has no effect."},{"text":""},{"text":"- Returns: A view that triggers `action` after it disappears."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDisappear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformEnvironment(_:transform:)"],"names":{"title":"transformEnvironment(_:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEnvironment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Transforms the environment value of the specified key path with the"},{"text":"given function."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformEnvironment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EnvironmentValues","preciseIdentifier":"s:7SwiftUI17EnvironmentValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tag(_:includeOptional:)"],"names":{"title":"tag(_:includeOptional:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the unique tag value of this view."},{"text":""},{"text":"Use this modifier to differentiate among certain selectable views,"},{"text":"like the possible values of a ``Picker`` or the tabs of a ``TabView``."},{"text":"Tag values can be of any type that conforms to the"},{"text":" protocol."},{"text":""},{"text":"This modifier will write the tag value for the type `V`, as well as"},{"text":"`Optional` if `includeOptional` is enabled. Containers checking for"},{"text":"tags of either type will see the value as set."},{"text":""},{"text":"In the example below, the ``ForEach`` loop in the ``Picker`` view"},{"text":"builder iterates over the `Flavor` enumeration. It extracts the string"},{"text":"value of each enumeration element for use in constructing the row"},{"text":"label, and uses the enumeration value as input to the `tag(_:)`"},{"text":"modifier."},{"text":""},{"text":" struct FlavorPicker: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" case chocolate, vanilla, strawberry"},{"text":" var id: Self { self }"},{"text":" }"},{"text":""},{"text":" @State private var selectedFlavor: Flavor? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" Picker(\"Flavor\", selection: $selectedFlavor) {"},{"text":" ForEach(Flavor.allCases) { flavor in"},{"text":" Text(flavor.rawValue)"},{"text":" .tag(flavor)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The selection type of the ``Picker`` is an `Optional` and so it"},{"text":"will look for tags on its contents of `Optional` type. Since the"},{"text":"tag modifier defaults to having `includeOptional` enabled, even though"},{"text":"the tag for each option is a non-optional `Flavor`, the tag modifier"},{"text":"writes values for both the non-optional, and optional versions of the"},{"text":"value, allowing the contents to be selectable by the ``Picker``."},{"text":""},{"text":"A ``ForEach`` automatically applies a default tag to each enumerated"},{"text":"view using the `id` parameter of the corresponding element. If"},{"text":"the element's `id` parameter and the picker's `selection` input"},{"text":"have exactly the same type, or the same type but optional, you can omit"},{"text":"the explicit tag modifier."},{"text":""},{"text":"To see examples that don't require an explicit tag, see ``Picker``."},{"text":""},{"text":"- Parameter tag: A "},{"text":" value to use as the view's tag."},{"text":"- Parameter includeOptional: If the tag value for `Optional` should"},{"text":" also be set."},{"text":""},{"text":"- Returns: A view with the specified tag set."}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"includeOptional","declarationFragments":[{"kind":"identifier","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"includeOptional"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dynamicTypeSize(_:)"],"names":{"title":"dynamicTypeSize(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dynamicTypeSize"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the Dynamic Type size within the view to the given value."},{"text":""},{"text":"As an example, you can set a Dynamic Type size in `ContentView` to be"},{"text":"``DynamicTypeSize/xLarge`` (this can be useful in previews to see your"},{"text":"content at a different size) like this:"},{"text":""},{"text":" ContentView()"},{"text":" .dynamicTypeSize(.xLarge)"},{"text":""},{"text":"If a Dynamic Type size range is applied after setting a value,"},{"text":"the value is limited by that range:"},{"text":""},{"text":" ContentView() // Dynamic Type size will be .large"},{"text":" .dynamicTypeSize(...DynamicTypeSize.large)"},{"text":" .dynamicTypeSize(.xLarge)"},{"text":""},{"text":"When limiting the Dynamic Type size, consider if adding a"},{"text":"large content view with ``View/accessibilityShowsLargeContentViewer()``"},{"text":"would be appropriate."},{"text":""},{"text":"- Parameter size: The size to set for this view."},{"text":""},{"text":"- Returns: A view that sets the Dynamic Type size to the specified"},{"text":" `size`."}]},"functionSignature":{"parameters":[{"name":"size","declarationFragments":[{"kind":"identifier","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dynamicTypeSize"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"DynamicTypeSize","preciseIdentifier":"s:7SwiftUI15DynamicTypeSizeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerValue(_:_:)"],"names":{"title":"containerValue(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a particular container value of a view."},{"text":""},{"text":"Use this modifier to set one of the writable properties of the"},{"text":"``ContainerValues`` structure, including custom values that you"},{"text":"create."},{"text":""},{"text":"Like preferences, container values are able to be read by views above"},{"text":"the view they're set on. Unlike preferences, however, container values"},{"text":"don't have merging behavior because they don't escape their closest"},{"text":"container. In the following example, the container value is set"},{"text":"on the contained view, but is dropped when it reaches the containing"},{"text":" ``VStack``."},{"text":""},{"text":" VStack {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1) // myCustomValue = 1"},{"text":" Text(\"B\")"},{"text":" .containerValue(\\.myCustomValue, 2) // myCustomValue = 2"},{"text":" // container values are unaffected by views that aren't containers:"},{"text":" Text(\"C\")"},{"text":" .containerValue(\\.myCustomValue, 3)"},{"text":" .padding() // myCustomValue = 3"},{"text":" } // myCustomValue = its default value, values do not escape the container"},{"text":""},{"text":"Even if a stack has only one child, container values still won't"},{"text":"be readable outside of the `VStack`. Container values don't escape a"},{"text":"container even if the container has only one child."},{"text":""},{"text":"In this example, a direct subview writes a container value, allowing its"},{"text":"direct container view to read it back:"},{"text":""},{"text":" @ContentBuilder var content: some View {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1)"},{"text":" }"},{"text":""},{"text":" ForEach(subviews: content) { subview in"},{"text":" Text(\"value = \\(subview.containerValues.myCustomValue)\") // shows \"value = 1\""},{"text":" }"},{"text":""},{"text":"However in the next example, the wrapping `VStack` means the `Text` view"},{"text":"is not a direct subview of the outer container, so that container cannot"},{"text":"read the changed value:"},{"text":""},{"text":" @ContentBuilder var containedContent: some View {"},{"text":" VStack {"},{"text":" Text(\"A\")"},{"text":" .containerValue(\\.myCustomValue, 1)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" ForEach(subviews: containedContent) { subviews in"},{"text":" Text(\"value = \\(subview.containerValues.myCustomValue)\") // shows the default value"},{"text":" }"},{"text":""},{"text":"The container values modifier can also be used to modify mutable"},{"text":"subfields of container values."},{"text":""},{"text":" struct PinPosition {"},{"text":" var rotation: Double = 0"},{"text":" var xOffset: Int = 0"},{"text":" }"},{"text":""},{"text":" extension ContainerValues {"},{"text":" @Entry var pinPosition: PinPosition = .init()"},{"text":" }"},{"text":""},{"text":" // pinPosition.rotation = 0, pinPosition.xOffset = 3"},{"text":" Text(\"A\").containerValue(\\.pinPosition.xOffset, 3)"},{"text":""},{"text":" // pinPosition.rotation = 10, pinPosition.xOffset = 5"},{"text":" Text(\"B\")"},{"text":" .containerValue(\\.pinPosition.rotation, 10)"},{"text":" .containerValue(\\.pinPosition.xOffset, 5)"},{"text":""},{"text":"This allows you to group multiple related container values into"},{"text":"structs while maintaining separate modifiers to write each value."},{"text":""},{"text":" extension View {"},{"text":" func pinRotation(_ rotation: Double) -> some View {"},{"text":" containerValue(\\.pinPosition.rotation, rotation)"},{"text":" }"},{"text":""},{"text":" func pinXOffset(_ xOffset: Int) -> some View {"},{"text":" containerValue(\\.pinPosition.xOffset, xOffset)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - keyPath: A key path that indicates the property of the"},{"text":" ``ContainerValues`` structure to update."},{"text":" - value: The new value to set for the item specified by `keyPath`."},{"text":""},{"text":"- Returns: A view that has the given value set in its containerValues."}]},"functionSignature":{"parameters":[{"name":"keyPath","declarationFragments":[{"kind":"identifier","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"keyPath"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WritableKeyPath","preciseIdentifier":"s:s15WritableKeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ContainerValues","preciseIdentifier":"s:7SwiftUI15ContainerValuesV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","anchorPreference(key:value:transform:)"],"names":{"title":"anchorPreference(key:value:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"anchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the specified preference key, the value is a"},{"text":"function of a geometry value tied to the current coordinate"},{"text":"space, allowing readers of the value to convert the geometry to"},{"text":"their local coordinates."},{"text":""},{"text":"- Parameters:"},{"text":" - key: the preference key type."},{"text":" - value: the geometry value in the current coordinate space."},{"text":" - transform: the function to produce the preference value."},{"text":""},{"text":"- Returns: a new version of the view that writes the preference."}]},"functionSignature":{"parameters":[{"name":"key","internalName":"_","declarationFragments":[{"kind":"identifier","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"K","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"anchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame(width:height:alignment:)"],"names":{"title":"frame(width:height:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame with the specified size."},{"text":""},{"text":"Use this method to specify a fixed size for a view's width, height, or"},{"text":"both. If you only specify one of the dimensions, the resulting view"},{"text":"assumes this view's sizing behavior in the other dimension."},{"text":""},{"text":"For example, the following code lays out an ellipse in a fixed 200 by"},{"text":"100 frame. Because a shape always occupies the space offered to it by"},{"text":"the layout system, the first ellipse is 200x100 points. The second"},{"text":"ellipse is laid out in a frame with only a fixed height, so it occupies"},{"text":"that height, and whatever width the layout system offers to its parent."},{"text":""},{"text":" VStack {"},{"text":" Ellipse()"},{"text":" .fill(Color.purple)"},{"text":" .frame(width: 200, height: 100)"},{"text":" Ellipse()"},{"text":" .fill(Color.blue)"},{"text":" .frame(height: 100)"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the effect of frame size options: a purple"},{"text":"ellipse shows the effect of a fixed frame size, while a blue ellipse"},{"text":"shows the effect of constraining a view in one"},{"text":"dimension.](SwiftUI-View-frame-1.png)"},{"text":""},{"text":"`The alignment` parameter specifies this view's alignment within the"},{"text":"frame."},{"text":""},{"text":" Text(\"Hello world!\")"},{"text":" .frame(width: 200, height: 30, alignment: .topLeading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"In the example above, the text is positioned at the top, leading corner"},{"text":"of the frame. If the text is taller than the frame, its bounds may"},{"text":"extend beyond the bottom of the frame's bounds."},{"text":""},{"text":"![A screenshot showing the effect of frame size options on a text view"},{"text":"showing a fixed frame size with a specified"},{"text":"alignment.](SwiftUI-View-frame-2.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - width: A fixed width for the resulting view. If `width` is `nil`,"},{"text":" the resulting view assumes this view's sizing behavior."},{"text":" - height: A fixed height for the resulting view. If `height` is `nil`,"},{"text":" the resulting view assumes this view's sizing behavior."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with fixed dimensions of `width` and `height`, for the"},{"text":" parameters that are non-`nil`."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"height","declarationFragments":[{"kind":"identifier","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frameQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame()"],"names":{"title":"frame()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame."},{"text":""},{"text":"Use ``SwiftUI/View/frame(width:height:alignment:)`` or"},{"text":"``SwiftUI/View/frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)``"},{"text":"instead."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"*","message":"Please pass one or more parameters.","isUnconditionallyDeprecated":true},{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)"],"names":{"title":"frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Positions this view within an invisible frame having the specified size"},{"text":"constraints."},{"text":""},{"text":"Always specify at least one size characteristic when calling this"},{"text":"method. Pass `nil` or leave out a characteristic to indicate that the"},{"text":"frame should adopt this view's sizing behavior, constrained by the other"},{"text":"non-`nil` arguments."},{"text":""},{"text":"The size proposed to this view is the size proposed to the frame,"},{"text":"limited by any constraints specified, and with any ideal dimensions"},{"text":"specified replacing any corresponding unspecified dimensions in the"},{"text":"proposal."},{"text":""},{"text":"If no minimum or maximum constraint is specified in a given dimension,"},{"text":"the frame adopts the sizing behavior of its child in that dimension. If"},{"text":"both constraints are specified in a dimension, the frame unconditionally"},{"text":"adopts the size proposed for it, clamped to the constraints. Otherwise,"},{"text":"the size of the frame in either dimension is:"},{"text":""},{"text":"- If a minimum constraint is specified and the size proposed for the"},{"text":" frame by the parent is less than the size of this view, the proposed"},{"text":" size, clamped to that minimum."},{"text":"- If a maximum constraint is specified and the size proposed for the"},{"text":" frame by the parent is greater than the size of this view, the"},{"text":" proposed size, clamped to that maximum."},{"text":"- Otherwise, the size of this view."},{"text":""},{"text":"- Parameters:"},{"text":" - minWidth: The minimum width of the resulting frame."},{"text":" - idealWidth: The ideal width of the resulting frame."},{"text":" - maxWidth: The maximum width of the resulting frame."},{"text":" - minHeight: The minimum height of the resulting frame."},{"text":" - idealHeight: The ideal height of the resulting frame."},{"text":" - maxHeight: The maximum height of the resulting frame."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with flexible dimensions given by the call's non-`nil`"},{"text":" parameters."}]},"functionSignature":{"parameters":[{"name":"minWidth","declarationFragments":[{"kind":"identifier","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealWidth","declarationFragments":[{"kind":"identifier","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxWidth","declarationFragments":[{"kind":"identifier","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"minHeight","declarationFragments":[{"kind":"identifier","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"idealHeight","declarationFragments":[{"kind":"identifier","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"maxHeight","declarationFragments":[{"kind":"identifier","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"frame"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxWidth"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"minHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"idealHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"maxHeight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textRenderer(_:)"],"names":{"title":"textRenderer(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textRenderer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view such that any text views within it will use"},{"text":"`renderer` to draw themselves."},{"text":""},{"text":"- Parameter renderer: the renderer value."},{"text":""},{"text":"- Returns: a new view that will use `renderer` to draw its text"},{"text":" views."}]},"functionSignature":{"parameters":[{"name":"renderer","declarationFragments":[{"kind":"identifier","spelling":"renderer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"TextRenderer","rhsPrecise":"s:7SwiftUI12TextRendererP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textRenderer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"renderer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextRenderer","preciseIdentifier":"s:7SwiftUI12TextRendererP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textScale(_:isEnabled:)"],"names":{"title":"textScale(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textScale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a text scale to text in the view."},{"text":""},{"text":"- Parameters:"},{"text":" - scale: The text scale to apply."},{"text":" - isEnabled: If true the text scale is applied; otherwise text scale"},{"text":" is unchanged."},{"text":"- Returns: A view with the specified text scale applied."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textScale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI4TextV5ScaleV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentShape(_:eoFill:)"],"names":{"title":"contentShape(_:eoFill:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Defines the content shape for hit testing."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: The hit testing shape for the view."},{"text":" - eoFill: A Boolean that indicates whether the shape is interpreted"},{"text":" with the even-odd winding number rule."},{"text":""},{"text":"- Returns: A view that uses the given shape for hit testing."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"eoFill","declarationFragments":[{"kind":"identifier","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentShape(_:_:eoFill:)"],"names":{"title":"contentShape(_:_:eoFill:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the content shape for this view."},{"text":""},{"text":"The content shape has a variety of uses. You can control the kind of the"},{"text":"content shape by specifying one in `kind`. The following example sets"},{"text":"the focus ring shape of the view, without affecting its shape for"},{"text":"hit-testing:"},{"text":""},{"text":" MyFocusableView()"},{"text":" .contentShape(.focusEffect, Circle())"},{"text":""},{"text":"You can apply multiple kinds of content shapes to the same view. For"},{"text":"example, apply a ``ContentShapeKinds/interaction`` shape and"},{"text":"``ContentShapeKinds/focusEffect`` shape together to set both the"},{"text":"hit-testing shape and focus ring shape on a view."},{"text":""},{"text":"## Context Menu & Drag Previews"},{"text":""},{"text":"You can control the preview shown by the system for context menus or"},{"text":"drags using the relevant content shape kind, like"},{"text":"``ContentShapeKinds/dragPreview`` and"},{"text":"``ContentShapeKinds/contextMenuPreview``."},{"text":""},{"text":"The following example creates a ``VStack`` of an ``Image`` and ``Text``"},{"text":"that has a context menu with a custom content shape:"},{"text":""},{"text":" VStack {"},{"text":" Image(\"turtlerock\")"},{"text":" .contentShape(.contextMenuPreview,"},{"text":" RoundedRectangle(cornerRadius: 10))"},{"text":" Text(\"Turtle Rock\")"},{"text":" }"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system uses the ``Image`` as the preview for"},{"text":"the context menu, applying the requested corner radius."},{"text":""},{"text":"The content shape also supports applying modifiers such as"},{"text":"``InsettableShape/inset(by:)`` to add padding."},{"text":""},{"text":"> Note: Similar to ``ContentShapeKinds/focusEffect``,"},{"text":"the ``ContentShapeKinds/contextMenuPreview`` and"},{"text":"``ContentShapeKinds/dragPreview`` content shapes do not impact the"},{"text":"hit-testing shape. In this example, someone can touch and hold anywhere"},{"text":"on the ``VStack`` to activate the menu. If you only want the ``Image``"},{"text":"to activate the menu, apply ``View/contextMenu(menuItems:)`` to the"},{"text":"``Image`` instead."},{"text":""},{"text":"- Parameters:"},{"text":" - kind: The kinds to apply to this content shape."},{"text":" - shape: The shape to use."},{"text":" - eoFill: A Boolean that indicates whether the shape is interpreted"},{"text":" with the even-odd winding number rule."},{"text":""},{"text":"- Returns: A view that uses the given shape for the specified kind."}]},"functionSignature":{"parameters":[{"name":"kind","declarationFragments":[{"kind":"identifier","spelling":"kind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"}]},{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"eoFill","declarationFragments":[{"kind":"identifier","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"kind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentShapeKinds","preciseIdentifier":"s:7SwiftUI17ContentShapeKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"eoFill"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffect(_:options:isActive:)"],"names":{"title":"symbolEffect(_:options:isActive:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view with a symbol effect added to it."},{"text":""},{"text":"The following example adds a repeating pulse effect to two"},{"text":"symbol images:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\")"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\")"},{"text":" }"},{"text":" .symbolEffect(.pulse)"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A symbol effect to add to the view. Existing effects"},{"text":" added by ancestors of the view are preserved, but may be"},{"text":" overridden by the new effect. Added effects will be applied"},{"text":" to the ``SwiftUI/Image`` views contained by the child view."},{"text":" - options: A set of options that configure how effects apply to"},{"text":" symbol-based images."},{"text":" - isActive: whether the effect is active or inactive."},{"text":""},{"text":"- Returns: a copy of the view with a symbol effect added."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"}]},{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"IndefiniteSymbolEffect","rhsPrecise":"s:7Symbols22IndefiniteSymbolEffectP"},{"kind":"conformance","lhs":"T","rhs":"SymbolEffect","rhsPrecise":"s:7Symbols12SymbolEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"IndefiniteSymbolEffect","preciseIdentifier":"s:7Symbols22IndefiniteSymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SymbolEffect","preciseIdentifier":"s:7Symbols12SymbolEffectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffect(_:options:value:)"],"names":{"title":"symbolEffect(_:options:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"U"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view with a symbol effect added to it."},{"text":""},{"text":"The following example adds a bounce effect to two symbol"},{"text":"images, the animation will play each time `counter` changes:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\")"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\")"},{"text":" }"},{"text":" .symbolEffect(.bounce, value: counter)"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A symbol effect to add to the view. Existing effects"},{"text":" added by ancestors of the view are preserved, but may be"},{"text":" overridden by the new effect. Added effects will be applied"},{"text":" to the ``SwiftUI/Image`` views contained by the child view."},{"text":" - options: A set of options that configure how effects apply to"},{"text":" symbol-based images."},{"text":" - value: the value to monitor for changes, the animation is"},{"text":" triggered each time the value changes."},{"text":""},{"text":"- Returns: a copy of the view with a symbol effect added."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"U","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"DiscreteSymbolEffect","rhsPrecise":"s:7Symbols20DiscreteSymbolEffectP"},{"kind":"conformance","lhs":"T","rhs":"SymbolEffect","rhsPrecise":"s:7Symbols12SymbolEffectP"},{"kind":"conformance","lhs":"U","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffect"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"U"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolEffectOptions","preciseIdentifier":"s:7Symbols19SymbolEffectOptionsV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DiscreteSymbolEffect","preciseIdentifier":"s:7Symbols20DiscreteSymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SymbolEffect","preciseIdentifier":"s:7Symbols12SymbolEffectP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"U"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:value:)"],"names":{"title":"animation(_:value:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to this view when the specified value"},{"text":"changes."},{"text":""},{"text":"- Parameters:"},{"text":" - animation: The animation to apply. If `animation` is `nil`, the view"},{"text":" doesn't animate."},{"text":" - value: A value to monitor for changes."},{"text":""},{"text":"- Returns: A view that applies `animation` to this view whenever `value`"},{"text":" changes."}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerShape(_:)"],"names":{"title":"containerShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the container shape to use for any container relative shape or"},{"text":"concentric rectangle within this view."},{"text":""},{"text":"The example below defines a view that shows its content with a rounded"},{"text":"rectangle background and the same container shape. Any"},{"text":"``ContainerRelativeShape`` within the `content` matches the rounded"},{"text":"rectangle shape from this container inset as appropriate. Any"},{"text":"``ConcentricRectangle`` within the `content` will match the corners to"},{"text":"be concentric to the container corners."},{"text":""},{"text":" struct PlatterContainer : View {"},{"text":" @ContentBuilder var content: Content"},{"text":" var body: some View {"},{"text":" content"},{"text":" .padding()"},{"text":" .containerShape(shape)"},{"text":" .background(shape.fill(.background))"},{"text":" }"},{"text":" var shape: RoundedRectangle { RoundedRectangle(cornerRadius: 20) }"},{"text":" }"},{"text":""},{"text":"- SeeAlso: ``View/containerShape(_:)-(T)``"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some RoundedRectangularShape","rhs":"RoundedRectangularShape","rhsPrecise":"s:7SwiftUI23RoundedRectangularShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RoundedRectangularShape","preciseIdentifier":"s:7SwiftUI23RoundedRectangularShapeP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:perform:)"],"names":{"title":"onChange(of:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Performs an action when a specified value changes."},{"text":""},{"text":"Use this modifier to run a closure when a value like"},{"text":"an ``Environment`` value or a ``Binding`` changes."},{"text":"For example, you can clear a cache when you notice"},{"text":"that the view's scene moves to the background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Environment(\\.scenePhase) private var scenePhase"},{"text":" @StateObject private var cache = DataCache()"},{"text":""},{"text":" var body: some View {"},{"text":" MyView()"},{"text":" .onChange(of: scenePhase) { newScenePhase in"},{"text":" if newScenePhase == .background {"},{"text":" cache.empty()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI passes the new value into the closure. You can also capture the"},{"text":"previous value to compare it to the new value. For example, in"},{"text":"the following code example, `PlayerView` passes both the old and new"},{"text":"values to the model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) { [playState] newState in"},{"text":" model.playStateDidChange(from: playState, to: newState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"Important: This modifier is deprecated and has been replaced with new"},{"text":"versions that include either zero or two parameters within the closure,"},{"text":"unlike this version that includes one parameter. This deprecated version"},{"text":"and the new versions behave differently with respect to how they execute"},{"text":"the action closure, specifically when the closure captures other values."},{"text":"Using the deprecated API, the closure is run with captured values that"},{"text":"represent the \"old\" state. With the replacement API, the closure is run"},{"text":"with captured values that represent the \"new\" state, which makes it"},{"text":"easier to correctly perform updates that rely on supplementary values"},{"text":"(that may or may not have changed) in addition to the changed value that"},{"text":"triggered the action."},{"text":""},{"text":"- Important: This modifier is deprecated and has been replaced with new"},{"text":" versions that include either zero or two parameters within the"},{"text":" closure, unlike this version that includes one parameter. This"},{"text":" deprecated version and the new versions behave differently with"},{"text":" respect to how they execute the action closure, specifically when the"},{"text":" closure captures other values. Using the deprecated API, the closure"},{"text":" is run with captured values that represent the \"old\" state. With the"},{"text":" replacement API, the closure is run with captured values that"},{"text":" represent the \"new\" state, which makes it easier to correctly perform"},{"text":" updates that rely on supplementary values (that may or may not have"},{"text":" changed) in addition to the changed value that triggered the action."},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check when determining whether to run the"},{"text":" closure. The value must conform to the"},{"text":" "},{"text":" protocol."},{"text":" - action: A closure to run when the value changes. The closure"},{"text":" takes a `newValue` parameter that indicates the updated"},{"text":" value."},{"text":""},{"text":"- Returns: A view that runs an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":17,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":14,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":17,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"visionOS","deprecated":{"major":1,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":10,"minor":0},"message":"Use `onChange` with a two or zero parameter action closure instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:initial:_:)"],"names":{"title":"onChange(of:initial:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a modifier for this view that fires an action when a specific"},{"text":"value changes."},{"text":""},{"text":"You can use `onChange` to trigger a side effect as the result of a"},{"text":"value changing, such as an `Environment` key or a `Binding`."},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value. The old and new observed values are"},{"text":"passed into the closure. In the following code example, `PlayerView`"},{"text":"passes both the old and new values to the model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) { oldState, newState in"},{"text":" model.playStateDidChange(from: oldState, to: newState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check against when determining whether"},{"text":" to run the closure."},{"text":" - initial: Whether the action should be run when this view initially"},{"text":" appears."},{"text":" - action: A closure to run when the value changes."},{"text":" - term oldValue: The old value that failed the comparison check (or the"},{"text":" initial value when requested)."},{"text":" - term newValue: The new value that failed the comparison check."},{"text":""},{"text":"- Returns: A view that fires an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"initial","declarationFragments":[{"kind":"identifier","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onChange(of:initial:_:)"],"names":{"title":"onChange(of:initial:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a modifier for this view that fires an action when a specific"},{"text":"value changes."},{"text":""},{"text":"You can use `onChange` to trigger a side effect as the result of a"},{"text":"value changing, such as an `Environment` key or a `Binding`."},{"text":""},{"text":"The system may call the action closure on the main actor, so avoid"},{"text":"long-running tasks in the closure. If you need to perform such tasks,"},{"text":"detach an asynchronous background task."},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value. In the following code example,"},{"text":"`PlayerView` calls into its model when `playState` changes model."},{"text":""},{"text":" struct PlayerView: View {"},{"text":" var episode: Episode"},{"text":" @State private var playState: PlayState = .paused"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(episode.title)"},{"text":" Text(episode.showTitle)"},{"text":" PlayButton(playState: $playState)"},{"text":" }"},{"text":" .onChange(of: playState) {"},{"text":" model.playStateDidChange(state: playState)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: The value to check against when determining whether"},{"text":" to run the closure."},{"text":" - initial: Whether the action should be run when this view initially"},{"text":" appears."},{"text":" - action: A closure to run when the value changes."},{"text":""},{"text":"- Returns: A view that fires an action when the specified value changes."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"initial","declarationFragments":[{"kind":"identifier","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"initial"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityShowsLargeContentViewer(_:)"],"names":{"title":"accessibilityShowsLargeContentViewer(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a custom large content view to be shown by"},{"text":"the large content viewer."},{"text":""},{"text":"Rely on the large content viewer only in situations"},{"text":"where items must remain small due to unavoidable"},{"text":"design constraints. For example, buttons in a tab bar"},{"text":"remain small to leave more room for the main app content."},{"text":""},{"text":"The following example shows how to add a custom large"},{"text":"content view:"},{"text":""},{"text":" var body: some View {"},{"text":" Button(action: newMessage) {"},{"text":" Image(systemName: \"plus\")"},{"text":" }"},{"text":" .accessibilityShowsLargeContentViewer {"},{"text":" Label(\"New Message\", systemImage: \"plus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Don’t use the large content viewer as a replacement for proper"},{"text":"Dynamic Type support. For example, Dynamic Type allows items"},{"text":"in a list to grow or shrink vertically to accommodate the user’s preferred"},{"text":"font size. Rely on the large content viewer only in situations where"},{"text":"items must remain small due to unavoidable design constraints."},{"text":""},{"text":"For example, views that have their Dynamic Type size constrained"},{"text":"with ``View/dynamicTypeSize(_:)`` may require a"},{"text":"large content view."}]},"functionSignature":{"parameters":[{"name":"largeContentView","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largeContentView"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"largeContentView"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityShowsLargeContentViewer()"],"names":{"title":"accessibilityShowsLargeContentViewer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a default large content view to be shown by"},{"text":"the large content viewer."},{"text":""},{"text":"Rely on the large content viewer only in situations"},{"text":"where items must remain small due to unavoidable"},{"text":"design constraints. For example, buttons in a tab bar"},{"text":"remain small to leave more room for the main app content."},{"text":""},{"text":"The following example shows how to add a custom large"},{"text":"content view:"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"New Message\", action: newMessage)"},{"text":" .accessibilityShowsLargeContentViewer()"},{"text":" }"},{"text":""},{"text":"Don’t use the large content viewer as a replacement for proper"},{"text":"Dynamic Type support. For example, Dynamic Type allows items"},{"text":"in a list to grow or shrink vertically to accommodate the user’s preferred"},{"text":"font size. Rely on the large content viewer only in situations where"},{"text":"items must remain small due to unavoidable design constraints."},{"text":""},{"text":"For example, views that have their Dynamic Type size constrained"},{"text":"with ``View/dynamicTypeSize(_:)`` may require a"},{"text":"large content view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityShowsLargeContentViewer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","containerShape(_:)"],"names":{"title":"containerShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the container shape to use for any container relative shape"},{"text":"within this view."},{"text":""},{"text":"The example below defines a view that shows its content with a rounded"},{"text":"rectangle background and the same container shape. Any"},{"text":"``ContainerRelativeShape`` within the `content` matches the rounded"},{"text":"rectangle shape from this container inset as appropriate."},{"text":""},{"text":" struct PlatterContainer : View {"},{"text":" @ContentBuilder var content: Content"},{"text":" var body: some View {"},{"text":" content"},{"text":" .padding()"},{"text":" .containerShape(shape)"},{"text":" .background(shape.fill(.background))"},{"text":" }"},{"text":" var shape: RoundedRectangle { RoundedRectangle(cornerRadius: 20) }"},{"text":" }"},{"text":""},{"text":"- SeeAlso: ``View/containerShape(_:)-(RoundedRectangularShape)``"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"containerShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","phaseAnimator(_:trigger:content:animation:)"],"names":{"title":"phaseAnimator(_:trigger:content:animation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Animates effects that you apply to a view over a sequence of phases"},{"text":"that change based on a trigger."},{"text":""},{"text":"When the modified view first appears, this modifier renders its"},{"text":"`content` closure using the first phase as input to the closure,"},{"text":"along with a proxy for the modified view. Apply effects to the"},{"text":"proxy --- and thus to the modified view --- in a way that's appropriate"},{"text":"for the first phase value."},{"text":""},{"text":"Later, when the value of the `trigger` input changes, the modifier"},{"text":"provides its `content` closure with the value of the second phase."},{"text":"Update the effects that you apply to the proxy view accordingly,"},{"text":"and the modifier animates the change for you. The next time the"},{"text":"`trigger` input changes, this procedure repeats using successive phases"},{"text":"until reaching the last phase, at which point the modifier loops back"},{"text":"to the first phase."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The sequence of phases to cycle through. Ensure that the"},{"text":" sequence isn't empty. If it is, SwiftUI logs a runtime warning and"},{"text":" also returns a visual warning as the output view."},{"text":" - trigger: A value whose changes cause the animator to use the"},{"text":" next phase."},{"text":" - content: A content builder closure that takes two parameters: a proxy"},{"text":" value representing the modified view and the current phase."},{"text":" You can apply effects to the proxy based on the current phase."},{"text":" - animation: A closure that takes the current phase as input. Return"},{"text":" the animation to use when transitioning to the next phase. If you"},{"text":" return `nil`, the transition doesn't animate. If you don't set this"},{"text":" parameter, SwiftUI uses a default animation."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Phase","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Phase","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"sameType","lhs":"Phase","rhs":"(some Sequence).Element"},{"kind":"conformance","lhs":"some Sequence","rhs":"Sequence","rhsPrecise":"s:ST"},{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"? = { _ in .default }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","phaseAnimator(_:content:animation:)"],"names":{"title":"phaseAnimator(_:content:animation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Animates effects that you apply to a view over a sequence of phases"},{"text":"that change continuously."},{"text":""},{"text":"When the modified view first appears, this modifier renders its"},{"text":"`content` closure using the first phase as input to the closure,"},{"text":"along with a proxy for the modified view. Apply effects to the"},{"text":"proxy --- and thus to the modified view --- in a way that's appropriate"},{"text":"for the first phase value."},{"text":""},{"text":"Right away, the modifier provides its `content` closure with the value"},{"text":"of the second phase. Update the effects that you apply to the proxy"},{"text":"view accordingly, and the modifier animates the change for you."},{"text":"As soon as the animation completes, the procedure repeats using"},{"text":"successive phases until reaching the last phase, at which point the"},{"text":"modifier loops back to the first phase."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The sequence of phases to cycle through. Ensure that the"},{"text":" sequence isn't empty. If it is, SwiftUI logs a runtime warning and"},{"text":" also returns a visual warning as the output view."},{"text":" - content: A content builder closure that takes two parameters: a proxy"},{"text":" value representing the modified view and the current phase."},{"text":" You can apply effects to the proxy based on the current phase."},{"text":" - animation: A closure that takes the current phase as input. Return"},{"text":" the animation to use when transitioning to the next phase. If you"},{"text":" return `nil`, the transition doesn't animate. If you don't set this"},{"text":" parameter, SwiftUI uses a default animation."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Phase","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Phase","rhs":"Equatable","rhsPrecise":"s:SQ"},{"kind":"sameType","lhs":"Phase","rhs":"(some Sequence).Element"},{"kind":"conformance","lhs":"some Sequence","rhs":"Sequence","rhsPrecise":"s:ST"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"phaseAnimator"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Phase"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">, "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"? = { _ in .default }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Phase"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:perform:)"],"names":{"title":"onTapGesture(count:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture."},{"text":""},{"text":"Use this method to perform the specified `action` when the user clicks"},{"text":"or taps on the view or container `count` times."},{"text":""},{"text":"> Note: If you create a control that's functionally equivalent"},{"text":"to a ``Button``, use ``ButtonStyle`` to create a customized button"},{"text":"instead."},{"text":""},{"text":"In the example below, the color of the heart images changes to a random"},{"text":"color from the `colors` array whenever the user clicks or taps on the"},{"text":"view twice:"},{"text":""},{"text":" struct TapGestureExample: View {"},{"text":" let colors: [Color] = [.gray, .red, .orange, .yellow,"},{"text":" .green, .blue, .purple, .pink]"},{"text":" @State private var fgColor: Color = .gray"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 200, height: 200)"},{"text":" .foregroundColor(fgColor)"},{"text":" .onTapGesture(count: 2) {"},{"text":" fgColor = colors.randomElement()!"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a view of a heart.](SwiftUI-View-TapGesture.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the action"},{"text":" closure provided in `action`. Defaults to `1`."},{"text":" - action: The action to perform."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","layoutPriority(_:)"],"names":{"title":"layoutPriority(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutPriority"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the priority by which a parent layout should apportion space to"},{"text":"this child."},{"text":""},{"text":"Views typically have a default priority of `0` which causes space to be"},{"text":"apportioned evenly to all sibling views. Raising a view's layout"},{"text":"priority encourages the higher priority view to shrink later when the"},{"text":"group is shrunk and stretch sooner when the group is stretched."},{"text":""},{"text":" HStack {"},{"text":" Text(\"This is a moderately long string.\")"},{"text":" .font(.largeTitle)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Text(\"This is a higher priority string.\")"},{"text":" .font(.largeTitle)"},{"text":" .layoutPriority(1)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":""},{"text":"In the example above, the first ``Text`` element has the default"},{"text":"priority `0` which causes its view to shrink dramatically due to the"},{"text":"higher priority of the second ``Text`` element, even though all of their"},{"text":"other attributes (font, font size and character count) are the same."},{"text":""},{"text":"![A screenshot showing twoText views different layout"},{"text":"priorities.](SwiftUI-View-layoutPriority.png)"},{"text":""},{"text":"A parent layout offers the child views with the highest layout priority"},{"text":"all the space offered to the parent minus the minimum space required for"},{"text":"all its lower-priority children."},{"text":""},{"text":"- Parameter value: The priority by which a parent layout apportions"},{"text":" space to the child."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"layoutPriority"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","environment(_:)"],"names":{"title":"environment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Places an observable object in the view's environment."},{"text":""},{"text":"Use this modifier to place an object that you declare with the"},{"text":""},{"text":"macro into a view's environment. For example, you can add an instance"},{"text":"of a custom observable `Profile` class to the environment of a"},{"text":"`ContentView`:"},{"text":""},{"text":" @Observable class Profile { ... }"},{"text":""},{"text":" struct RootView: View {"},{"text":" @State private var currentProfile: Profile?"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .environment(currentProfile)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You then read the object inside `ContentView` or one of its descendants"},{"text":"using the ``Environment`` property wrapper:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @Environment(Profile.self) private var currentProfile: Profile"},{"text":""},{"text":" var body: some View { ... }"},{"text":" }"},{"text":""},{"text":"This modifier affects the given view, as well as that view's descendant"},{"text":"views. It has no effect outside the view hierarchy on which you call it."},{"text":"The environment of a given view hierarchy holds only one observable"},{"text":"object of a given type."},{"text":""},{"text":"- Note: This modifier takes an object that conforms to the"},{"text":" "},{"text":" protocol. To add environment objects that conform to the"},{"text":" "},{"text":" protocol, use ``View/environmentObject(_:)`` instead."},{"text":""},{"text":"- Parameter object: The object to set for this object's type in the"},{"text":" environment, or `nil` to clear an object of this type from the"},{"text":" environment."},{"text":""},{"text":"- Returns: A view that has the specified object in its environment."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Observable","rhsPrecise":"s:11Observation10ObservableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"environment"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : AnyObject, "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Observable","preciseIdentifier":"s:11Observation10ObservableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPreferenceChange(_:perform:)"],"names":{"title":"onPreferenceChange(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPreferenceChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when the specified preference key's value"},{"text":"changes."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to monitor for value changes."},{"text":" - action: The action to perform when the value for `key` changes. The"},{"text":" `action` closure passes the new value as its parameter."},{"text":""},{"text":"- Returns: A view that triggers `action` when the value for `key`"},{"text":" changes."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"K","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"},{"kind":"conformance","lhs":"K.Value","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPreferenceChange"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","headerProminence(_:)"],"names":{"title":"headerProminence(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"headerProminence"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the header prominence for this view."},{"text":""},{"text":"In the following example, the section header appears with increased"},{"text":"prominence:"},{"text":""},{"text":" List {"},{"text":" Section(header: Text(\"Header\")) {"},{"text":" Text(\"Row\")"},{"text":" }"},{"text":" .headerProminence(.increased)"},{"text":" }"},{"text":" .listStyle(.insetGrouped)"},{"text":""},{"text":"- Parameter prominence: The prominence to apply."}]},"functionSignature":{"parameters":[{"name":"prominence","declarationFragments":[{"kind":"identifier","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"headerProminence"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Prominence","preciseIdentifier":"s:7SwiftUI10ProminenceO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","modifier(_:)"],"names":{"title":"modifier(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a modifier to a view and returns a new view."},{"text":""},{"text":"Use this modifier to combine a ``View`` and a ``ViewModifier``, to"},{"text":"create a new view. For example, if you create a view modifier for"},{"text":"a new kind of caption with blue text surrounded by a rounded rectangle:"},{"text":""},{"text":" struct BorderedCaption: ViewModifier {"},{"text":" func body(content: Content) -> some View {"},{"text":" content"},{"text":" .font(.caption2)"},{"text":" .padding(10)"},{"text":" .overlay("},{"text":" RoundedRectangle(cornerRadius: 15)"},{"text":" .stroke(lineWidth: 1)"},{"text":" )"},{"text":" .foregroundColor(Color.blue)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can use ``modifier(_:)`` to extend ``View`` to create new modifier"},{"text":"for applying the `BorderedCaption` defined above:"},{"text":""},{"text":" extension View {"},{"text":" func borderedCaption() -> some View {"},{"text":" modifier(BorderedCaption())"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Then you can apply the bordered caption to any view:"},{"text":""},{"text":" Image(systemName: \"bus\")"},{"text":" .resizable()"},{"text":" .frame(width:50, height:50)"},{"text":" Text(\"Downtown Bus\")"},{"text":" .borderedCaption()"},{"text":""},{"text":"![A screenshot showing the image of a bus with a caption reading"},{"text":"Downtown Bus. A view extension, using custom a modifier, renders the"},{"text":" caption in blue text surrounded by a rounded"},{"text":" rectangle.](SwiftUI-View-ViewModifier.png)"},{"text":""},{"text":"- Parameter modifier: The modifier to apply to this view."}]},"functionSignature":{"parameters":[{"name":"modifier","declarationFragments":[{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modifier"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"modifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowedDynamicRange(_:)"],"names":{"title":"allowedDynamicRange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowedDynamicRange"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Returns a new view configured with the specified allowed"},{"text":"dynamic range."},{"text":""},{"text":"The following example enables HDR rendering within a view"},{"text":"hierarchy:"},{"text":""},{"text":" MyView().allowedDynamicRange(.high)"},{"text":""},{"text":"- Parameter range: the requested dynamic range, or nil to"},{"text":" restore the default allowed range."},{"text":""},{"text":"- Returns: a new view."}]},"functionSignature":{"parameters":[{"name":"range","declarationFragments":[{"kind":"identifier","spelling":"range"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowedDynamicRange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"range"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"DynamicRange","preciseIdentifier":"s:7SwiftUI5ImageV12DynamicRangeV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolVariant(_:)"],"names":{"title":"symbolVariant(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariant"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Makes symbols within the view show a particular variant."},{"text":""},{"text":"When you want all the"},{"text":""},{"text":"in a part of your app's user interface to use the same variant, use the"},{"text":"`symbolVariant(_:)` modifier with a ``SymbolVariants`` value, like"},{"text":"``SymbolVariants/fill-swift.type.property``:"},{"text":""},{"text":" VStack(spacing: 20) {"},{"text":" HStack(spacing: 20) {"},{"text":" Image(systemName: \"person\")"},{"text":" Image(systemName: \"folder\")"},{"text":" Image(systemName: \"gearshape\")"},{"text":" Image(systemName: \"list.bullet\")"},{"text":" }"},{"text":""},{"text":" HStack(spacing: 20) {"},{"text":" Image(systemName: \"person\")"},{"text":" Image(systemName: \"folder\")"},{"text":" Image(systemName: \"gearshape\")"},{"text":" Image(systemName: \"list.bullet\")"},{"text":" }"},{"text":" .symbolVariant(.fill) // Shows filled variants, when available."},{"text":" }"},{"text":""},{"text":"A symbol that doesn't have the specified variant remains unaffected."},{"text":"In the example above, the `list.bullet` symbol doesn't have a filled"},{"text":"variant, so the `symbolVariant(_:)` modifer has no effect."},{"text":""},{"text":"![A screenshot showing two rows of four symbols. Both rows contain a"},{"text":"person, a folder, a gear, and a bullet list. The symbols in the first"},{"text":"row are outlined. The symbols in the second row are filled, except the"},{"text":"list, which is the same in both rows.](View-symbolVariant-1)"},{"text":""},{"text":"If you apply the modifier more than once, its effects accumulate."},{"text":"Alternatively, you can apply multiple variants in one call:"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane.circle.fill\")"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane\")"},{"text":" .symbolVariant(.circle)"},{"text":" .symbolVariant(.fill)"},{"text":""},{"text":" Label(\"Airplane\", systemImage: \"airplane\")"},{"text":" .symbolVariant(.circle.fill)"},{"text":""},{"text":"All of the labels in the code above produce the same output:"},{"text":""},{"text":"![A screenshot of a label that shows an airplane in a filled circle"},{"text":"beside the word Airplane.](View-symbolVariant-2)"},{"text":""},{"text":"You can apply all these variants in any order, but"},{"text":"if you apply more than one shape variant, the one closest to the"},{"text":"symbol takes precedence. For example, the following image uses the"},{"text":"``SymbolVariants/square-swift.type.property`` shape:"},{"text":""},{"text":" Image(systemName: \"arrow.left\")"},{"text":" .symbolVariant(.square) // This shape takes precedence."},{"text":" .symbolVariant(.circle)"},{"text":" .symbolVariant(.fill)"},{"text":""},{"text":"![A screenshot of a left arrow symbol in a filled"},{"text":"square.](View-symbolVariant-3)"},{"text":""},{"text":"To cause a symbol to ignore the variants currently in the environment,"},{"text":"directly set the ``EnvironmentValues/symbolVariants`` environment value"},{"text":"to ``SymbolVariants/none`` using the ``View/environment(_:_:)`` modifer."},{"text":""},{"text":"- Parameter variant: The variant to use for symbols. Use the values in"},{"text":" ``SymbolVariants``."},{"text":"- Returns: A view that applies the specified symbol variant or variants"},{"text":" to itself and its child views."}]},"functionSignature":{"parameters":[{"name":"variant","declarationFragments":[{"kind":"identifier","spelling":"variant"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolVariant"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"variant"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SymbolVariants","preciseIdentifier":"s:7SwiftUI14SymbolVariantsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:alignment:)"],"names":{"title":"background(_:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Background"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the given view behind this view."},{"text":""},{"text":"Use `background(_:alignment:)` when you need to place one view behind"},{"text":"another, with the background view optionally aligned with a specified"},{"text":"edge of the frontmost view."},{"text":""},{"text":"The example below creates two views: the `Frontmost` view, and the"},{"text":"`DiamondBackground` view. The `Frontmost` view uses the"},{"text":"`DiamondBackground` view for the background of the image element inside"},{"text":"the `Frontmost` view's ``VStack``."},{"text":""},{"text":" struct DiamondBackground: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Rectangle()"},{"text":" .fill(.gray)"},{"text":" .frame(width: 250, height: 250, alignment: .center)"},{"text":" .rotationEffect(.degrees(45.0))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Frontmost: View {"},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Image(systemName: \"folder\")"},{"text":" .font(.system(size: 128, weight: .ultraLight))"},{"text":" .background(DiamondBackground())"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A view showing a large folder image with a gray diamond placed behind"},{"text":"it as its background view.](View-background-1)"},{"text":""},{"text":"- Parameters:"},{"text":" - background: The view to draw behind this view."},{"text":" - alignment: The alignment with a default value of"},{"text":" ``Alignment/center`` that you use to position the background view."}]},"functionSignature":{"parameters":[{"name":"background","declarationFragments":[{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Background"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Background","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Background"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"background"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Background"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `background(alignment:content:)` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(alignment:content:)"],"names":{"title":"background(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Layers the views that you specify behind this view."},{"text":""},{"text":"Use this modifier to place one or more views behind another view."},{"text":"For example, you can place a collection of stars behind a ``Text`` view:"},{"text":""},{"text":" Text(\"ABCDEF\")"},{"text":" .background(alignment: .leading) { Star(color: .red) }"},{"text":" .background(alignment: .center) { Star(color: .green) }"},{"text":" .background(alignment: .trailing) { Star(color: .blue) }"},{"text":""},{"text":"The example above assumes that you've defined a `Star` view with a"},{"text":"parameterized color:"},{"text":""},{"text":" struct Star: View {"},{"text":" var color: Color"},{"text":""},{"text":" var body: some View {"},{"text":" Image(systemName: \"star.fill\")"},{"text":" .foregroundStyle(color)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By setting different `alignment` values for each modifier, you make the"},{"text":"stars appear in different places behind the text:"},{"text":""},{"text":"![A screenshot of the letters A, B, C, D, E, and F written in front of"},{"text":"three stars. The stars, from left to right, are red, green, and"},{"text":"blue.](View-background-2)"},{"text":""},{"text":"If you specify more than one view in the `content` closure, the modifier"},{"text":"collects all of the views in the closure into an implicit ``ZStack``,"},{"text":"taking them in order from back to front. For example, you can layer a"},{"text":"vertical bar behind a circle, with both of those behind a horizontal"},{"text":"bar:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10) // Creates a horizontal bar."},{"text":" .background {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100) // Creates a vertical bar."},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":""},{"text":"Both the background modifier and the implicit ``ZStack`` composed from"},{"text":"the background content --- the circle and the vertical bar --- use a"},{"text":"default ``Alignment/center`` alignment. The vertical bar appears"},{"text":"centered behind the circle, and both appear as a composite view centered"},{"text":"behind the horizontal bar:"},{"text":""},{"text":"![A screenshot of a circle with a horizontal blue bar layered on top"},{"text":"and a vertical green bar layered underneath. All of the items are center"},{"text":"aligned.](View-background-3)"},{"text":""},{"text":"If you specify an alignment for the background, it applies to the"},{"text":"implicit stack rather than to the individual views in the closure. You"},{"text":"can see this if you add the ``Alignment/leading`` alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10)"},{"text":" .background(alignment: .leading) {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100)"},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":""},{"text":"The vertical bar and the circle move as a unit to align the stack"},{"text":"with the leading edge of the horizontal bar, while the"},{"text":"vertical bar remains centered on the circle:"},{"text":""},{"text":"![A screenshot of a horizontal blue bar in front of a circle, which"},{"text":"is in front of a vertical green bar. The horizontal bar and the circle"},{"text":"are center aligned with each other; the left edges of the circle"},{"text":"and the horizontal are aligned.](View-background-3a)"},{"text":""},{"text":"To control the placement of individual items inside the `content`"},{"text":"closure, either use a different background modifier for each item, as"},{"text":"the earlier example of stars under text demonstrates, or add an explicit"},{"text":"``ZStack`` inside the content closure with its own alignment:"},{"text":""},{"text":" Color.blue"},{"text":" .frame(width: 200, height: 10)"},{"text":" .background(alignment: .leading) {"},{"text":" ZStack(alignment: .leading) {"},{"text":" Color.green"},{"text":" .frame(width: 10, height: 100)"},{"text":" Circle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The stack alignment ensures that the circle's leading edge aligns with"},{"text":"the vertical bar's, while the background modifier aligns the composite"},{"text":"view with the horizontal bar:"},{"text":""},{"text":"![A screenshot of a horizontal blue bar in front of a circle, which"},{"text":"is in front of a vertical green bar. All items are aligned on their"},{"text":"left edges.](View-background-4)"},{"text":""},{"text":"You can achieve layering without a background modifier by putting both"},{"text":"the modified view and the background content into a ``ZStack``. This"},{"text":"produces a simpler view hierarchy, but it changes the layout priority"},{"text":"that SwiftUI applies to the views. Use the background modifier when you"},{"text":"want the modified view to dominate the layout."},{"text":""},{"text":"If you want to specify a ``ShapeStyle`` like a"},{"text":"``HierarchicalShapeStyle`` or a ``Material`` as the background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)``."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(alignment:content:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default"},{"text":" is ``Alignment/center``."},{"text":" - content: A ``ContentBuilder`` that you use to declare the views to draw"},{"text":" behind this view, stacked in a cascading order from bottom to top."},{"text":" The last view that you list appears at the front of the stack."},{"text":""},{"text":"- Returns: A view that uses the specified content as a background."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(ignoresSafeAreaEdges:)"],"names":{"title":"background(ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to the default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:ignoresSafeAreaEdges:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style."},{"text":"For example, you can add a background to a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background()"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the teal color behind the label shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a region filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a rectangle; the"},{"text":"rectangle is filled with the background color and layered on top of a"},{"text":"larger rectangle that's filled with the color teal.](View-background-7)"},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the background,"},{"text":"use ``View/background(alignment:content:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)``."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the background. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the ``ShapeStyle/background`` shape style"},{"text":" drawn behind it."}]},"functionSignature":{"parameters":[{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:ignoresSafeAreaEdges:)"],"names":{"title":"background(_:ignoresSafeAreaEdges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a style."},{"text":""},{"text":"Use this modifier to place a type that conforms to the ``ShapeStyle``"},{"text":"protocol --- like a ``Color``, ``Material``, or"},{"text":"``HierarchicalShapeStyle`` --- behind a view. For example, you can add"},{"text":"the ``ShapeStyle/regularMaterial`` behind a ``Label``:"},{"text":""},{"text":" struct FlagLabel: View {"},{"text":" var body: some View {"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.regularMaterial)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI anchors the style to the view's bounds. For the example above,"},{"text":"the background fills the entirety of the label's frame, which includes"},{"text":"the padding:"},{"text":""},{"text":"![A screenshot of a flag symbol and the word flag layered over a"},{"text":"gray rectangle.](View-background-5)"},{"text":""},{"text":"SwiftUI limits the background style's extent to the modified view's"},{"text":"container-relative shape. You can see this effect if you constrain the"},{"text":"`FlagLabel` view with a ``View/containerShape(_:)`` modifier:"},{"text":""},{"text":" FlagLabel()"},{"text":" .containerShape(RoundedRectangle(cornerRadius: 16))"},{"text":""},{"text":"The background takes on the specified container shape:"},{"text":""},{"text":"![A screenshot of a flag symbol and the word flag layered over a"},{"text":"gray rectangle with rounded corners.](View-background-6)"},{"text":""},{"text":"By default, the background ignores safe area insets on all edges, but"},{"text":"you can provide a specific set of edges to ignore, or an empty set to"},{"text":"respect safe area insets on all edges:"},{"text":""},{"text":" Rectangle()"},{"text":" .background("},{"text":" .regularMaterial,"},{"text":" ignoresSafeAreaEdges: []) // Ignore no safe area insets."},{"text":""},{"text":"If you want to specify a ``View`` or a stack of views as the background,"},{"text":"use ``View/background(alignment:content:)`` instead."},{"text":"To specify a ``Shape`` or ``InsettableShape``, use"},{"text":"``View/background(_:in:fillStyle:)`` ."},{"text":"To configure the background of a presentation, like a sheet, use"},{"text":"``View/presentationBackground(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: An instance of a type that conforms to ``ShapeStyle`` that"},{"text":" SwiftUI draws behind the modified view."},{"text":" - edges: The set of edges for which to ignore safe area insets"},{"text":" when adding the background. The default value is ``Edge/Set/all``."},{"text":" Specify an empty set to respect safe area insets on all edges."},{"text":""},{"text":"- Returns: A view with the specified style drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"ignoresSafeAreaEdges","internalName":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"ignoresSafeAreaEdges"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(in:fillStyle:)"],"names":{"title":"background(in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a shape filled with the"},{"text":"default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:in:fillStyle:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style"},{"text":"to fill the specified shape. For example, you can create a ``Path``"},{"text":"that outlines a trapezoid:"},{"text":""},{"text":" let trapezoid = Path { path in"},{"text":" path.move(to: .zero)"},{"text":" path.addLine(to: CGPoint(x: 90, y: 0))"},{"text":" path.addLine(to: CGPoint(x: 80, y: 50))"},{"text":" path.addLine(to: CGPoint(x: 10, y: 50))"},{"text":" }"},{"text":""},{"text":"Then you can use that shape as a background for a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(in: trapezoid)"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the fill color shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a shape filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a trapezoid; the"},{"text":"trapezoid is filled with the background color and layered on top of"},{"text":"a rectangle filled with the color teal.](View-background-B)"},{"text":""},{"text":"To create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws behind the view using the ``ShapeStyle/background``"},{"text":" shape style."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:in:fillStyle:)"],"names":{"title":"background(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to a shape filled with a style."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the ``Shape``"},{"text":"protocol behind a view. Specify the ``ShapeStyle`` that's used to"},{"text":"fill the shape. For example, you can create a ``Path`` that outlines"},{"text":"a trapezoid:"},{"text":""},{"text":" let trapezoid = Path { path in"},{"text":" path.move(to: .zero)"},{"text":" path.addLine(to: CGPoint(x: 90, y: 0))"},{"text":" path.addLine(to: CGPoint(x: 80, y: 50))"},{"text":" path.addLine(to: CGPoint(x: 10, y: 50))"},{"text":" }"},{"text":""},{"text":"Then you can use that shape as a background for a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.teal, in: trapezoid)"},{"text":""},{"text":"The ``ShapeStyle/teal`` color fills the shape:"},{"text":""},{"text":"![A screenshot of the flag icon and the word flag inside a trapezoid;"},{"text":"The trapezoid is filled with the color teal.](View-background-A)"},{"text":""},{"text":"This modifier is a convenience method for placing a single shape behind a view. To"},{"text":"create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to the fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``Shape`` that"},{"text":" SwiftUI draws behind the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(in:fillStyle:)"],"names":{"title":"background(in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to an insettable shape filled with the"},{"text":"default background style."},{"text":""},{"text":"This modifier behaves like ``View/background(_:in:fillStyle:)``,"},{"text":"except that it always uses the ``ShapeStyle/background`` shape style"},{"text":"to fill the specified insettable shape. For example, you can use"},{"text":"a ``RoundedRectangle`` as a background on a ``Label``:"},{"text":""},{"text":" ZStack {"},{"text":" Color.teal"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(in: RoundedRectangle(cornerRadius: 8))"},{"text":" }"},{"text":""},{"text":"Without the background modifier, the fill color shows"},{"text":"through the label. With the modifier, the label's text and icon appear"},{"text":"backed by a shape filled with a color that's appropriate for light"},{"text":"or dark appearance:"},{"text":""},{"text":"![A screenshot of a flag icon and the word flag inside a rectangle with"},{"text":"rounded corners; the rectangle is filled with the background color, and"},{"text":"is layered on top of a larger rectangle that's filled with the color"},{"text":"teal.](View-background-9)"},{"text":""},{"text":"To create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - shape: An instance of a type that conforms to ``InsettableShape``"},{"text":" that SwiftUI draws behind the view using the"},{"text":" ``ShapeStyle/background`` shape style."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified insettable shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","background(_:in:fillStyle:)"],"names":{"title":"background(_:in:fillStyle:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the view's background to an insettable shape filled with a style."},{"text":""},{"text":"Use this modifier to layer a type that conforms to the"},{"text":"``InsettableShape`` protocol --- like a ``Rectangle``, ``Circle``, or"},{"text":"``Capsule`` --- behind a view. Specify the ``ShapeStyle`` that's used to"},{"text":"fill the shape. For example, you can place a ``RoundedRectangle``"},{"text":"behind a ``Label``:"},{"text":""},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" .padding()"},{"text":" .background(.teal, in: RoundedRectangle(cornerRadius: 8))"},{"text":""},{"text":"The ``ShapeStyle/teal`` color fills the shape:"},{"text":""},{"text":"![A screenshot of the flag icon and word on a teal rectangle with"},{"text":"rounded corners.](View-background-8)"},{"text":""},{"text":"This modifier is a convenience method for placing a single shape behind a view. To"},{"text":"create a background with other ``View`` types --- or with a stack"},{"text":"of views --- use ``View/background(alignment:content:)`` instead."},{"text":"To add a ``ShapeStyle`` as a background, use"},{"text":"``View/background(_:ignoresSafeAreaEdges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - style: A ``ShapeStyle`` that SwiftUI uses to the fill the shape"},{"text":" that you specify."},{"text":" - shape: An instance of a type that conforms to ``InsettableShape``"},{"text":" that SwiftUI draws behind the view."},{"text":" - fillStyle: The ``FillStyle`` to use when drawing the shape."},{"text":" The default style uses the nonzero winding number rule and"},{"text":" antialiasing."},{"text":""},{"text":"- Returns: A view with the specified insettable shape drawn behind it."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"in","internalName":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"fillStyle","declarationFragments":[{"kind":"identifier","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"},{"kind":"conformance","lhs":"T","rhs":"InsettableShape","rhsPrecise":"s:7SwiftUI15InsettableShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"background"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"fillStyle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"InsettableShape","preciseIdentifier":"s:7SwiftUI15InsettableShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentTransition(_:)"],"names":{"title":"contentTransition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the view to use a given transition as its method of animating"},{"text":"changes to the contents of its views."},{"text":""},{"text":"This modifier allows you to perform a transition that animates a change"},{"text":"within a single view. The provided ``ContentTransition`` can present an"},{"text":"opacity animation for content changes, an interpolated animation of"},{"text":"the content's paths as they change, or perform no animation at all."},{"text":""},{"text":"> Tip: The `contentTransition(_:)` modifier only has an effect within"},{"text":"the context of an ``Animation``."},{"text":""},{"text":"In the following example, a ``Button`` changes the color and font size"},{"text":"of a ``Text`` view. Since both of these properties apply to the paths of"},{"text":"the text, the ``ContentTransition/interpolate`` transition can animate a"},{"text":"gradual change to these properties through the entire transition. By"},{"text":"contrast, the ``ContentTransition/opacity`` transition would simply fade"},{"text":"between the start and end states."},{"text":""},{"text":" private static let font1 = Font.system(size: 20)"},{"text":" private static let font2 = Font.system(size: 45)"},{"text":""},{"text":" @State private var color = Color.red"},{"text":" @State private var currentFont = font1"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Content transition\")"},{"text":" .foregroundColor(color)"},{"text":" .font(currentFont)"},{"text":" .contentTransition(.interpolate)"},{"text":" Spacer()"},{"text":" Button(\"Change\") {"},{"text":" withAnimation(Animation.easeInOut(duration: 5.0)) {"},{"text":" color = (color == .red) ? .green : .red"},{"text":" currentFont = (currentFont == font1) ? font2 : font1"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses an ease-in–ease-out animation with a five-second"},{"text":"duration to make it easier to see the effect of the interpolation. The"},{"text":"figure below shows the `Text` at the beginning of the animation,"},{"text":"halfway through, and at the end."},{"text":""},{"text":"| Time | Display |"},{"text":"| ------- | ------- |"},{"text":"| Start | ![The text Content transition in a small red font.](ContentTransition-1) |"},{"text":"| Middle | ![The text Content transition in a medium brown font.](ContentTransition-2) |"},{"text":"| End | ![The text Content transition in a large green font.](ContentTransition-3) |"},{"text":""},{"text":"To control whether content transitions use GPU-accelerated rendering,"},{"text":"set the value of the"},{"text":"``EnvironmentValues/contentTransitionAddsDrawingGroup`` environment"},{"text":"variable."},{"text":""},{"text":"- parameter transition: The transition to apply when animating the"},{"text":" content change."}]},"functionSignature":{"parameters":[{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentTransition","preciseIdentifier":"s:7SwiftUI17ContentTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","visualEffect(_:)"],"names":{"title":"visualEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"visualEffect"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies effects to this view, while providing access to layout"},{"text":"information through a geometry proxy."},{"text":""},{"text":"You return new effects by calling functions on the first argument"},{"text":"provided to the `effect` closure. In this example, `ContentView` is"},{"text":"offset by its own size, causing its top left corner to appear where the"},{"text":"bottom right corner was originally located:"},{"text":"```swift"},{"text":"ContentView()"},{"text":" .visualEffect { content, geometryProxy in"},{"text":" content.offset(geometryProxy.size)"},{"text":" }"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - effect: A closure that returns the effect to be applied. The first"},{"text":" argument provided to the closure is a placeholder representing"},{"text":" this view. The second argument is a `GeometryProxy`."},{"text":"- Returns: A view with the effect applied."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"visualEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"GeometryProxy","preciseIdentifier":"s:7SwiftUI13GeometryProxyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10saturationyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","saturation(_:)"],"names":{"title":"saturation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"saturation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adjusts the color saturation of this view."},{"text":""},{"text":"Use color saturation to increase or decrease the intensity of colors in"},{"text":"a view."},{"text":""},{"text":"The example below shows a series of red squares with their saturation"},{"text":"increasing from 0 (gray) to 100% (fully-red) in 20% increments:"},{"text":""},{"text":" struct Saturation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Color.red.frame(width: 60, height: 60, alignment: .center)"},{"text":" .saturation(Double($0) * 0.2)"},{"text":" .overlay(Text(\"\\(Double($0) * 0.2 * 100, specifier: \"%.0f\")%\"),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Rendering showing the effects of saturation adjustments in 20%"},{"text":"increments from gray at 0% to fully-red at"},{"text":"100%.](SwiftUI-View-saturation.png)"},{"text":""},{"text":"- SeeAlso: `contrast(_:)`"},{"text":"- Parameter amount: The amount of saturation to apply to this view."},{"text":""},{"text":"- Returns: A view that adjusts the saturation of this view."}]},"functionSignature":{"parameters":[{"name":"amount","declarationFragments":[{"kind":"identifier","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"saturation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","ignoresSafeArea(_:edges:)"],"names":{"title":"ignoresSafeArea(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Expands the safe area of a view."},{"text":""},{"text":"By default, the SwiftUI layout system sizes and positions views to"},{"text":"avoid certain safe areas. This ensures that system content like the"},{"text":"software keyboard or edges of the device don’t obstruct your"},{"text":"views. To extend your content into these regions, you can ignore"},{"text":"safe areas on specific edges by applying this modifier."},{"text":""},{"text":"When expanding the safe area, the SwiftUI layout system proposes"},{"text":"the expanded size to the view. If your view has a fixed size,"},{"text":"the alignment of the view may not be what you expect."},{"text":""},{"text":"By default, SwiftUI resolves the alignment based on the"},{"text":"edges being ignored. For example, providing only the bottom"},{"text":"edge will result in a bottom alignment being used. You can use"},{"text":"the ``View/ignoresSafeArea(_:alignment:)`` modifier to"},{"text":"explicitly configure the alignment."},{"text":""},{"text":"For examples of how to use this modifier,"},{"text":"see ."},{"text":""},{"text":"- Parameters:"},{"text":" - regions: The regions to expand the view's safe area into. The"},{"text":" modifier expands into all safe area region types by default."},{"text":" - edges: The set of edges to expand. Any edges that you"},{"text":" don't include in this set remain unchanged. The set includes all"},{"text":" edges by default."},{"text":""},{"text":"- Returns: A view with an expanded safe area."}]},"functionSignature":{"parameters":[{"name":"regions","declarationFragments":[{"kind":"identifier","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","ignoresSafeArea(_:edges:alignment:)"],"names":{"title":"ignoresSafeArea(_:edges:alignment:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Expands the safe area of a view aligning content within the new"},{"text":"bounds using the provided alignment."},{"text":""},{"text":"By default, the SwiftUI layout system sizes and positions views to"},{"text":"avoid certain safe areas. This ensures that system content like the"},{"text":"software keyboard or edges of the device don’t obstruct your"},{"text":"views. To extend your content into these regions, you can ignore"},{"text":"safe areas on specific edges by applying this modifier."},{"text":""},{"text":"When expanding the safe area, the SwiftUI layout system proposes"},{"text":"the expanded size to the view. If your view has a fixed size,"},{"text":"you can use the alignment property to determine how the fixed"},{"text":"size view should be aligned in the expanded bounds."},{"text":""},{"text":"For examples of how to use this modifier,"},{"text":"see ."},{"text":""},{"text":"- Parameters:"},{"text":" - regions: The regions to expand the view's safe area into. The"},{"text":" modifier expands into all safe area region types by default."},{"text":" - edges: The set of edges to expand. Any edges that you"},{"text":" don't include in this set remain unchanged. The set includes all"},{"text":" edges by default."},{"text":" - alignment: The alignment of this view inside the resulting frame."},{"text":" Note that most alignment values have no apparent effect when the"},{"text":" size of the frame happens to match that of this view."},{"text":""},{"text":"- Returns: A view with an expanded safe area."}]},"functionSignature":{"parameters":[{"name":"regions","declarationFragments":[{"kind":"identifier","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ignoresSafeArea"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"regions"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SafeAreaRegions","preciseIdentifier":"s:7SwiftUI15SafeAreaRegionsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsHitTesting(_:)"],"names":{"title":"allowsHitTesting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsHitTesting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Configures whether this view participates in hit test operations."}]},"functionSignature":{"parameters":[{"name":"enabled","declarationFragments":[{"kind":"identifier","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsHitTesting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","imageScale(_:)"],"names":{"title":"imageScale(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"imageScale"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales images within the view according to one of the relative sizes"},{"text":"available including small, medium, and large images sizes."},{"text":""},{"text":"The example below shows the relative scaling effect. The system renders"},{"text":"the image at a relative size based on the available space and"},{"text":"configuration options of the image it is scaling."},{"text":""},{"text":" VStack {"},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.small)"},{"text":" Text(\"Small\")"},{"text":" }"},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.medium)"},{"text":" Text(\"Medium\")"},{"text":" }"},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .imageScale(.large)"},{"text":" Text(\"Large\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A view showing small, medium, and large hearts rendered at a size"},{"text":"relative to the available space.](SwiftUI-View-imageScale.png)"},{"text":""},{"text":"- Parameter scale: One of the relative sizes provided by the image scale"},{"text":" enumeration."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"imageScale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Scale","preciseIdentifier":"s:7SwiftUI5ImageV5ScaleO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","font(_:)"],"names":{"title":"font(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the default font for text in this view."},{"text":""},{"text":"Use `font(_:)` to apply a specific font to all of the text in a view."},{"text":""},{"text":"The example below shows the effects of applying fonts to individual"},{"text":"views and to view hierarchies. Font information flows down the view"},{"text":"hierarchy as part of the environment, and remains in effect unless"},{"text":"overridden at the level of an individual view or view container."},{"text":""},{"text":"Here, the outermost ``VStack`` applies a 16-point system font as a"},{"text":"default font to views contained in that ``VStack``. Inside that stack,"},{"text":"the example applies a ``Font/largeTitle`` font to just the first text"},{"text":"view; this explicitly overrides the default. The remaining stack and the"},{"text":"views contained with it continue to use the 16-point system font set by"},{"text":"their containing view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"Font applied to a text view.\")"},{"text":" .font(.largeTitle)"},{"text":""},{"text":" VStack {"},{"text":" Text(\"These 2 text views have the same font\")"},{"text":" Text(\"applied to their parent hierarchy\")"},{"text":" }"},{"text":" }"},{"text":" .font(.system(size: 16, weight: .light, design: .default))"},{"text":""},{"text":"![A screenshot showing the application fonts to an individual text field"},{"text":"and view hierarchy.](SwiftUI-view-font.png)"},{"text":""},{"text":"- Parameter font: The default font to use in this view."},{"text":""},{"text":"- Returns: A view with the default font set to the value you supply."}]},"functionSignature":{"parameters":[{"name":"font","declarationFragments":[{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"font"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"font"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","monospacedDigit()"],"names":{"title":"monospacedDigit()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospacedDigit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the fonts of all child views to use fixed-width digits, if"},{"text":"possible, while leaving other characters proportionally spaced."},{"text":""},{"text":"Using fixed-width digits allows you to easily align numbers of the"},{"text":"same size in a table-like arrangement. This feature is also known as"},{"text":"\"tabular figures\" or \"tabular numbers.\""},{"text":""},{"text":"This modifier only affects numeric characters, and leaves all other"},{"text":"characters unchanged."},{"text":""},{"text":"The following example shows the effect of `monospacedDigit()` on"},{"text":"multiple child views. The example consists of two ``VStack`` views"},{"text":"inside an ``HStack``. Each `VStack` contains two ``Button`` views, with"},{"text":"the second `VStack` applying the `monospacedDigit()` modifier to its"},{"text":"contents. As a result, the digits in the buttons in the trailing"},{"text":"`VStack` are the same width, which in turn gives the buttons equal widths."},{"text":""},{"text":" var body: some View {"},{"text":" HStack(alignment: .top) {"},{"text":" VStack(alignment: .leading) {"},{"text":" Button(\"Delete 111 messages\") {}"},{"text":" Button(\"Delete 222 messages\") {}"},{"text":" }"},{"text":" VStack(alignment: .leading) {"},{"text":" Button(\"Delete 111 messages\") {}"},{"text":" Button(\"Delete 222 messages\") {}"},{"text":" }"},{"text":" .monospacedDigit()"},{"text":" }"},{"text":" .padding()"},{"text":" .navigationTitle(\"monospacedDigit() Child Views\")"},{"text":" }"},{"text":""},{"text":"![A macOS window showing four buttons, arranged in two columns. Each"},{"text":"column's buttons contain the same text: Delete 111 messages and Delete"},{"text":"222 messages. The right column's buttons have fixed width, or"},{"text":"monospaced, digits, which make the 1 characters wider than they would be"},{"text":"in a proportional font. Because the 1 and 2 characters are the same"},{"text":"width in the right column, the buttons are the same"},{"text":"width.](View-monospacedDigit-1)"},{"text":""},{"text":"If a child view's base font doesn't support fixed-width digits, the font"},{"text":"remains unchanged."},{"text":""},{"text":"- Returns: A view whose child views' fonts use fixed-width numeric"},{"text":"characters, while leaving other characters proportionally spaced."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospacedDigit"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","monospaced(_:)"],"names":{"title":"monospaced(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospaced"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Modifies the fonts of all child views to use the fixed-width variant of"},{"text":"the current font, if possible."},{"text":""},{"text":"If a child view's base font doesn't support fixed-width, the font"},{"text":"remains unchanged."},{"text":""},{"text":"- Returns: A view whose child views' fonts use fixed-width characters,"},{"text":"while leaving other characters proportionally spaced."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"monospaced"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontWeight(_:)"],"names":{"title":"fontWeight(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWeight"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font weight of the text in this view."},{"text":""},{"text":"- Parameter weight: One of the available font weights."},{"text":" Providing `nil` removes the effect of any font weight"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font weight you specify."}]},"functionSignature":{"parameters":[{"name":"weight","declarationFragments":[{"kind":"identifier","spelling":"weight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWeight"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"weight"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Weight","preciseIdentifier":"s:7SwiftUI4FontV6WeightV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontWidth(_:)"],"names":{"title":"fontWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font width of the text in this view."},{"text":""},{"text":"- Parameter width: One of the available font widths."},{"text":" Providing `nil` removes the effect of any font width"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font width you specify."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Width","preciseIdentifier":"s:7SwiftUI4FontV5WidthV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4boldyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","bold(_:)"],"names":{"title":"bold(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bold"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a bold font weight to the text in this view."},{"text":""},{"text":"- Parameter isActive: A Boolean value that indicates"},{"text":" whether bold font styling is added. The default value is `true`."},{"text":""},{"text":"- Returns: A view with bold text."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bold"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6italicyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","italic(_:)"],"names":{"title":"italic(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"italic"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies italics to the text in this view."},{"text":""},{"text":"- Parameter isActive: A Boolean value that indicates"},{"text":" whether italic styling is added. The default value is `true`."},{"text":""},{"text":"- Returns: A View with italic text."}]},"functionSignature":{"parameters":[{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"italic"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fontDesign(_:)"],"names":{"title":"fontDesign(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontDesign"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the font design of the text in this view."},{"text":""},{"text":"- Parameter design: One of the available font designs."},{"text":" Providing `nil` removes the effect of any font design"},{"text":" modifier applied higher in the view hierarchy."},{"text":""},{"text":"- Returns: A view that uses the font design you specify."}]},"functionSignature":{"parameters":[{"name":"design","declarationFragments":[{"kind":"identifier","spelling":"design"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fontDesign"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"design"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Font","preciseIdentifier":"s:7SwiftUI4FontV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Design","preciseIdentifier":"s:7SwiftUI4FontV6DesignO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":1}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":1}},{"domain":"watchOS","introduced":{"major":9,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","kerning(_:)"],"names":{"title":"kerning(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the spacing, or kerning, between characters for the text in this view."},{"text":""},{"text":"- Parameter kerning: The spacing to use between individual characters in text."},{"text":" Value of `0` sets the kerning to the system default value."},{"text":""},{"text":"- Returns: A view where text has the specified amount of kerning."}]},"functionSignature":{"parameters":[{"name":"kerning","declarationFragments":[{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"kerning"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"kerning"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tracking(_:)"],"names":{"title":"tracking(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the tracking for the text in this view."},{"text":""},{"text":"- Parameter tracking: The amount of additional space, in points, that"},{"text":" the view should add to each character cluster after layout. Value of `0`"},{"text":" sets the tracking to the system default value."},{"text":""},{"text":"- Returns: A view where text has the specified amount of tracking."}]},"functionSignature":{"parameters":[{"name":"tracking","declarationFragments":[{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracking"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tracking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","baselineOffset(_:)"],"names":{"title":"baselineOffset(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the vertical offset for the text relative to its baseline"},{"text":"in this view."},{"text":""},{"text":"- Parameter baselineOffset: The amount to shift the text"},{"text":" vertically (up or down) relative to its baseline."},{"text":""},{"text":"- Returns: A view where text is above or below its baseline."}]},"functionSignature":{"parameters":[{"name":"baselineOffset","declarationFragments":[{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"baselineOffset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"baselineOffset"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorMultiply(_:)"],"names":{"title":"colorMultiply(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorMultiply"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a color multiplication effect to this view."},{"text":""},{"text":"The following example shows two versions of the same image side by side;"},{"text":"at left is the original, and at right is a duplicate with the"},{"text":"`colorMultiply(_:)` modifier applied with ``ShapeStyle/purple``."},{"text":""},{"text":" struct InnerCircleView: View {"},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .fill(Color.green)"},{"text":" .frame(width: 40, height: 40, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ColorMultiply: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .overlay(Text(\"Normal\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":""},{"text":" Spacer()"},{"text":""},{"text":" Color.red.frame(width: 100, height: 100, alignment: .center)"},{"text":" .overlay(InnerCircleView(), alignment: .center)"},{"text":" .colorMultiply(Color.purple)"},{"text":" .overlay(Text(\"Multiply\")"},{"text":" .font(.callout),"},{"text":" alignment: .bottom)"},{"text":" .border(Color.gray)"},{"text":" }"},{"text":" .padding(50)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing two images showing the effect of multiplying the"},{"text":"colors of an image with another color.](SwiftUI-View-colorMultiply.png)"},{"text":""},{"text":"- Parameter color: The color to bias this view toward."},{"text":""},{"text":"- Returns: A view with a color multiplication effect."}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorMultiply"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transformAnchorPreference(key:value:transform:)"],"names":{"title":"transformAnchorPreference(key:value:transform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformAnchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a value for the specified preference key, the value is a"},{"text":"function of the key's current value and a geometry value tied"},{"text":"to the current coordinate space, allowing readers of the value"},{"text":"to convert the geometry to their local coordinates."},{"text":""},{"text":"- Parameters:"},{"text":" - key: the preference key type."},{"text":" - value: the geometry value in the current coordinate space."},{"text":" - transform: the function to produce the preference value."},{"text":""},{"text":"- Returns: a new version of the view that writes the preference."}]},"functionSignature":{"parameters":[{"name":"key","internalName":"_","declarationFragments":[{"kind":"identifier","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"K","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"K","rhs":"PreferenceKey","rhsPrecise":"s:7SwiftUI13PreferenceKeyP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transformAnchorPreference"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"K"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"_"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":".Type = K.self, "},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Source","preciseIdentifier":"s:7SwiftUI6AnchorV6SourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Value","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP5ValueQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Anchor","preciseIdentifier":"s:7SwiftUI6AnchorV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"K"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreferenceKey","preciseIdentifier":"s:7SwiftUI13PreferenceKeyP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","clipShape(_:style:)"],"names":{"title":"clipShape(_:style:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets a clipping shape for this view."},{"text":""},{"text":"Use `clipShape(_:style:)` to clip the view to the provided shape. By"},{"text":"applying a clipping shape to a view, you preserve the parts of the view"},{"text":"covered by the shape, while eliminating other parts of the view. The"},{"text":"clipping shape itself isn't visible."},{"text":""},{"text":"For example, this code applies a circular clipping shape to a `Text`"},{"text":"view:"},{"text":""},{"text":" Text(\"Clipped text in a circle\")"},{"text":" .frame(width: 175, height: 100)"},{"text":" .foregroundColor(Color.white)"},{"text":" .background(Color.black)"},{"text":" .clipShape(Circle())"},{"text":""},{"text":"The resulting view shows only the portion of the text that lies within"},{"text":"the bounds of the circle."},{"text":""},{"text":"![A screenshot of text clipped to the shape of a"},{"text":"circle.](SwiftUI-View-clipShape.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - shape: The clipping shape to use for this view. The `shape` fills"},{"text":" the view's frame, while maintaining its aspect ratio."},{"text":" - style: The fill style to use when rasterizing `shape`."},{"text":""},{"text":"- Returns: A view that clips this view to `shape`, using `style` to"},{"text":" define the shape's rasterization."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"Shape","rhsPrecise":"s:7SwiftUI5ShapeP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipShape"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FillStyle","preciseIdentifier":"s:7SwiftUI9FillStyleV"},{"kind":"text","spelling":" = FillStyle()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:7SwiftUI5ShapeP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","clipped(antialiased:)"],"names":{"title":"clipped(antialiased:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipped"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Clips this view to its bounding rectangular frame."},{"text":""},{"text":"Use the `clipped(antialiased:)` modifier to hide any content that"},{"text":"extends beyond the layout bounds of the shape."},{"text":""},{"text":"By default, a view's bounding frame is used only for layout, so any"},{"text":"content that extends beyond the edges of the frame is still visible."},{"text":""},{"text":" Text(\"This long text string is clipped\")"},{"text":" .fixedSize()"},{"text":" .frame(width: 175, height: 100)"},{"text":" .clipped()"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![Screenshot showing text clipped to its"},{"text":"frame.](SwiftUI-View-clipped.png)"},{"text":""},{"text":"- Parameter antialiased: A Boolean value that indicates whether the"},{"text":" rendering system applies smoothing to the edges of the clipping"},{"text":" rectangle."},{"text":""},{"text":"- Returns: A view that clips this view to its bounding frame."}]},"functionSignature":{"parameters":[{"name":"antialiased","declarationFragments":[{"kind":"identifier","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clipped"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = false) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","cornerRadius(_:antialiased:)"],"names":{"title":"cornerRadius(_:antialiased:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Clips this view to its bounding frame, with the specified corner radius."},{"text":""},{"text":"By default, a view's bounding frame only affects its layout, so any"},{"text":"content that extends beyond the edges of the frame remains visible. Use"},{"text":"`cornerRadius(_:antialiased:)` to hide any content that extends beyond"},{"text":"these edges while applying a corner radius."},{"text":""},{"text":"The following code applies a corner radius of 25 to a text view:"},{"text":""},{"text":" Text(\"Rounded Corners\")"},{"text":" .frame(width: 175, height: 75)"},{"text":" .foregroundColor(Color.white)"},{"text":" .background(Color.black)"},{"text":" .cornerRadius(25)"},{"text":""},{"text":"![A screenshot of a rectangle with rounded corners bounding a text"},{"text":"view.](SwiftUI-View-cornerRadius.png)"},{"text":""},{"text":"- Parameter antialiased: A Boolean value that indicates whether the"},{"text":" rendering system applies smoothing to the edges of the clipping"},{"text":" rectangle."},{"text":""},{"text":"- Returns: A view that clips this view to its bounding frame with the"},{"text":" specified corner radius."}]},"functionSignature":{"parameters":[{"name":"radius","declarationFragments":[{"kind":"identifier","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"antialiased","declarationFragments":[{"kind":"identifier","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"radius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"antialiased"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `clipShape` or `fill` instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(_:)"],"names":{"title":"transaction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the view."},{"text":""},{"text":"Use this modifier to change or replace the animation used in a view."},{"text":"Consider three identical animations controlled by a"},{"text":"button that executes all three animations simultaneously:"},{"text":""},{"text":" * The first animation rotates the \"Rotation\" ``Text`` view by 360"},{"text":" degrees."},{"text":" * The second uses the `transaction(_:)` modifier to change the"},{"text":" animation by adding a delay to the start of the animation"},{"text":" by two seconds and then increases the rotational speed of the"},{"text":" \"Rotation\\nModified\" ``Text`` view animation by a factor of 2."},{"text":" * The third animation uses the `transaction(_:)` modifier to"},{"text":" replace the rotation animation affecting the \"Animation\\nReplaced\""},{"text":" ``Text`` view with a spring animation."},{"text":""},{"text":"The following code implements these animations:"},{"text":""},{"text":" struct TransactionExample: View {"},{"text":" @State private var flag = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" HStack(spacing: 30) {"},{"text":" Text(\"Rotation\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":""},{"text":" Text(\"Rotation\\nModified\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":" .transaction { view in"},{"text":" view.animation ="},{"text":" view.animation?.delay(2.0).speed(2)"},{"text":" }"},{"text":""},{"text":" Text(\"Animation\\nReplaced\")"},{"text":" .rotationEffect(Angle(degrees:"},{"text":" self.flag ? 360 : 0))"},{"text":" .transaction { view in"},{"text":" view.animation = .interactiveSpring("},{"text":" response: 0.60,"},{"text":" dampingFraction: 0.20,"},{"text":" blendDuration: 0.25)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Button(\"Animate\") {"},{"text":" withAnimation(.easeIn(duration: 2.0)) {"},{"text":" self.flag.toggle()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use this modifier on leaf views such as ``Image`` or ``Button`` rather"},{"text":"than container views such as ``VStack`` or ``HStack``. The"},{"text":"transformation applies to all child views within this view; calling"},{"text":"`transaction(_:)` on a container view can lead to unbounded scope of"},{"text":"execution depending on the depth of the view hierarchy."},{"text":""},{"text":"- Parameter transform: The transformation to apply to transactions"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies a transformation to"},{"text":" all transactions used within the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(value:_:)"],"names":{"title":"transaction(value:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the view."},{"text":""},{"text":"Use this modifier to change or replace the animation used in a view."},{"text":"Consider three identical views controlled by a"},{"text":"button that changes all three simultaneously:"},{"text":""},{"text":" * The first view animates rotating the \"Rotation\" ``Text`` view by 360"},{"text":" degrees."},{"text":" * The second uses the `transaction(_:)` modifier to change the"},{"text":" animation by adding a delay to the start of the animation"},{"text":" by two seconds and then increases the rotational speed of the"},{"text":" \"Rotation\\nModified\" ``Text`` view animation by a factor of 2."},{"text":" * The third uses the `transaction(_:)` modifier to disable animations"},{"text":" affecting the \"Animation\\nReplaced\" ``Text`` view."},{"text":""},{"text":"The following code implements these animations:"},{"text":""},{"text":" struct TransactionExample: View {"},{"text":" @State var flag = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing: 50) {"},{"text":" HStack(spacing: 30) {"},{"text":" Text(\"Rotation\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":""},{"text":" Text(\"Rotation\\nModified\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":" .transaction(value: flag) { t in"},{"text":" t.animation ="},{"text":" t.animation?.delay(2.0).speed(2)"},{"text":" }"},{"text":""},{"text":" Text(\"Animation\\nReplaced\")"},{"text":" .rotationEffect(Angle(degrees: flag ? 360 : 0))"},{"text":" .transaction(value: flag) { t in"},{"text":" t.disableAnimations = true"},{"text":" }"},{"text":" }"},{"text":""},{"text":" Button(\"Animate\") {"},{"text":" withAnimation(.easeIn(duration: 2.0)) {"},{"text":" flag.toggle()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - value: A value to monitor for changes."},{"text":" - transform: The transformation to apply to transactions"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies a transformation to"},{"text":" all transactions used within the view whenever `value` changes."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"}]},{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Equatable","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:)"],"names":{"title":"animation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to all animatable values within this view."},{"text":""},{"text":"Use this modifier on leaf views rather than container views. The"},{"text":"animation applies to all child views within this view; calling"},{"text":"`animation(_:)` on a container view can lead to unbounded scope."},{"text":""},{"text":"- Parameter animation: The animation to apply to animatable values"},{"text":" within this view."},{"text":""},{"text":"- Returns: A view that wraps this view and applies `animation` to all"},{"text":" animatable values used within the view."}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":15,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":12,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":15,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":1,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":8,"minor":0},"message":"Use withAnimation or animation(_:value:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transaction(_:body:)"],"names":{"title":"transaction(_:body:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given transaction mutation function to all animations used"},{"text":"within the `body` closure."},{"text":""},{"text":"Any modifiers applied to the content of `body` will be applied to this"},{"text":"view, and the changes to the transaction performed in the `transform`"},{"text":"will only affect the modifiers defined in the `body`."},{"text":""},{"text":"The following code animates the opacity changing with a faster"},{"text":"animation, while the contents of MyView are animated with the implicit"},{"text":"transaction:"},{"text":""},{"text":" MyView(isActive: isActive)"},{"text":" .transaction { transaction in"},{"text":" transaction.animation = transaction.animation?.speed(2)"},{"text":" } body: { content in"},{"text":" content.opacity(isActive ? 1.0 : 0.0)"},{"text":" }"},{"text":""},{"text":"- See Also: `Transaction.disablesAnimations`"}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"body","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transaction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Transaction","preciseIdentifier":"s:7SwiftUI11TransactionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","animation(_:body:)"],"names":{"title":"animation(_:body:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies the given animation to all animatable values within the `body`"},{"text":"closure."},{"text":""},{"text":"Any modifiers applied to the content of `body` will be applied to this"},{"text":"view, and the `animation` will only be used on the modifiers defined in"},{"text":"the `body`."},{"text":""},{"text":"The following code animates the opacity changing with an easeInOut"},{"text":"animation, while the contents of MyView are animated with the implicit"},{"text":"transaction's animation:"},{"text":""},{"text":" MyView(isActive: isActive)"},{"text":" .animation(.easeInOut) { content in"},{"text":" content.opacity(isActive ? 1.0 : 0.0)"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"animation","declarationFragments":[{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?"}]},{"name":"body","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"animation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"animation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Animation","preciseIdentifier":"s:7SwiftUI9AnimationV"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","id(_:)"],"names":{"title":"id(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Binds a view's identity to the given proxy value."},{"text":""},{"text":"When the proxy value specified by the `id` parameter changes, the"},{"text":"identity of the view — for example, its state — is reset."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","colorScheme(_:)"],"names":{"title":"colorScheme(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets this view's color scheme."},{"text":""},{"text":"Use `colorScheme(_:)` to set the color scheme for the view to which you"},{"text":"apply it and any subviews. If you want to set the color scheme for all"},{"text":"views in the presentation, use ``View/preferredColorScheme(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter colorScheme: The color scheme for this view."},{"text":""},{"text":"- Returns: A view that sets this view's color scheme."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"preferredColorScheme(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","preferredColorScheme(_:)"],"names":{"title":"preferredColorScheme(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preferredColorScheme"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the preferred color scheme for this presentation."},{"text":""},{"text":"Use one of the values in ``ColorScheme`` with this modifier to set a"},{"text":"preferred color scheme for the nearest enclosing presentation, like a"},{"text":"popover, a sheet, or a window. The value that you set overrides the"},{"text":"user's Dark Mode selection for that presentation. In the example below,"},{"text":"the ``Toggle`` controls an `isDarkMode` state variable, which in turn"},{"text":"controls the color scheme of the sheet that contains the toggle:"},{"text":""},{"text":" @State private var isPresented = false"},{"text":" @State private var isDarkMode = true"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Sheet\") {"},{"text":" isPresented = true"},{"text":" }"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" List {"},{"text":" Toggle(\"Dark Mode\", isOn: $isDarkMode)"},{"text":" }"},{"text":" .preferredColorScheme(isDarkMode ? .dark : nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you apply the modifier to any of the views in the sheet --- which in"},{"text":"this case are a ``List`` and a ``Toggle`` --- the value that you set"},{"text":"propagates up through the view hierarchy to the enclosing"},{"text":"presentation, or until another color scheme modifier higher in the"},{"text":"hierarchy overrides it. The value you set also flows down to all child"},{"text":"views of the enclosing presentation."},{"text":""},{"text":"Pass `nil` to indicate that there is no preferred color scheme for this"},{"text":"view. This is useful in cases where a preferred color scheme should only"},{"text":"be applied conditionally. In the previous example, the sheet will prefer"},{"text":"dark mode when `isDarkMode` is set to `true`, but otherwise defer to the"},{"text":"color scheme as determined by the system."},{"text":""},{"text":"Multiple views in the same view hierarchy can set a preferred color"},{"text":"scheme. Applying this modifier overrides any existing preferred color"},{"text":"scheme set for the view, such as by one of its subviews. If there are"},{"text":"conflicting, non-`nil` color scheme preferences set by parallel branches"},{"text":"of the view hierarchy, the system will prioritize the first non-`nil`"},{"text":"preference based on the order of the views. In the example below, the"},{"text":"preferred color scheme for the entire view will resolve to `.dark`, from"},{"text":"the second view:"},{"text":""},{"text":" VStack {"},{"text":" Text(\"First\")"},{"text":" .preferredColorScheme(.light)"},{"text":" .preferredColorScheme(nil) // overrides `.light`"},{"text":""},{"text":" Text(\"Second\")"},{"text":" .preferredColorScheme(.dark)"},{"text":""},{"text":" Text(\"Third\")"},{"text":" .preferredColorScheme(.light)"},{"text":" }"},{"text":""},{"text":"A common use for this modifier is to create side-by-side previews"},{"text":"of the same view with light and dark appearances:"},{"text":""},{"text":" struct MyView_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" MyView().preferredColorScheme(.light)"},{"text":" MyView().preferredColorScheme(.dark)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you need to detect the color scheme that currently applies to a view,"},{"text":"read the ``EnvironmentValues/colorScheme`` environment value:"},{"text":""},{"text":" @Environment(\\.colorScheme) private var colorScheme"},{"text":""},{"text":" var body: some View {"},{"text":" Text(colorScheme == .dark ? \"Dark\" : \"Light\")"},{"text":" }"},{"text":""},{"text":"- Parameter colorScheme: The preferred color scheme for this view, or"},{"text":" `nil` to indicate no preference."},{"text":""},{"text":"- Returns: A view that sets the color scheme."}]},"functionSignature":{"parameters":[{"name":"colorScheme","declarationFragments":[{"kind":"identifier","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preferredColorScheme"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"colorScheme"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ColorScheme","preciseIdentifier":"s:7SwiftUI11ColorSchemeO"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onHingeChange(isEnabled:_:)"],"names":{"title":"onHingeChange(isEnabled:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHingeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds an action to perform when the hinge context of the"},{"text":"view hierarchy changes."},{"text":""},{"text":"Use this modifier to be informed of changes to the hinge"},{"text":"context of the device."},{"text":""},{"text":" @State private var hinge: DeviceHinge? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" if let hinge {"},{"text":" AngleDisplayView(angle: hinge.angle)"},{"text":" StatusDisplayView(status: hinge.status)"},{"text":" } else {"},{"text":" ContentUnavailableView("},{"text":" \"Hinge Unavailable\","},{"text":" systemImage: \"rectangle.split.2x1\")"},{"text":" }"},{"text":" }"},{"text":" .onHingeChange { _, newContext in"},{"text":" hinge = newContext.hinge"},{"text":" }"},{"text":" }"},{"text":""},{"text":"In the example above, the current angle and status of the hinge"},{"text":"will be displayed in the app as you interact with the hinge."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHingeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"DeviceHingeContext","preciseIdentifier":"s:7SwiftUI18DeviceHingeContextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:including:)"],"names":{"title":"gesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:including:)"],"names":{"title":"highPriorityGesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:including:)"],"names":{"title":"simultaneousGesture(_:including:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture(newGesture)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - mask: A value that controls how adding this gesture to the view"},{"text":" affects other gestures recognized by the view and its subviews."},{"text":" Defaults to ``SwiftUI/GestureMask/all``."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"including","internalName":"mask","declarationFragments":[{"kind":"identifier","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"including"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"mask"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureMask","preciseIdentifier":"s:7SwiftUI11GestureMaskV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:isEnabled:)"],"names":{"title":"gesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:isEnabled:)"],"names":{"title":"highPriorityGesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:isEnabled:)"],"names":{"title":"simultaneousGesture(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - isEnabled: Whether the added gesture is enabled."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:name:isEnabled:)"],"names":{"title":"gesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a lower precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to attach a gesture to a view. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture``"},{"text":"handler that also prints a message to the console, and blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking the image"},{"text":"prints a message to the console from the tap gesture handler on the"},{"text":"image, while tapping or clicking the rectangle inside the ``VStack``"},{"text":"prints a message in the console from the enclosing vertical stack"},{"text":"gesture handler."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct GestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .gesture(newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","highPriorityGesture(_:name:isEnabled:)"],"names":{"title":"highPriorityGesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view with a higher precedence than gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define a high priority gesture"},{"text":"to take precedence over the view's existing gestures. The"},{"text":"example below defines a custom gesture that prints a message to the"},{"text":"console and attaches it to the view's ``VStack``. Inside the ``VStack``"},{"text":"a red heart ``Image`` defines its own ``TapGesture`` handler that"},{"text":"also prints a message to the console, and a blue rectangle"},{"text":"with no custom gesture handlers. Tapping or clicking any of the"},{"text":"views results in a console message from the high priority gesture"},{"text":"attached to the enclosing ``VStack``."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":" struct HighPriorityGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Tap on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Tap on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .highPriorityGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"highPriorityGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","simultaneousGesture(_:name:isEnabled:)"],"names":{"title":"simultaneousGesture(_:name:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Attaches a gesture to the view to process simultaneously with gestures"},{"text":"defined by the view."},{"text":""},{"text":"Use this method when you need to define and process a view specific"},{"text":"gesture simultaneously with the same priority as the"},{"text":"view's existing gestures. The example below defines a custom gesture"},{"text":"that prints a message to the console and attaches it to the view's"},{"text":"``VStack``. Inside the ``VStack`` is a red heart ``Image`` defines its"},{"text":"own ``TapGesture`` handler that also prints a message to the console"},{"text":"and a blue rectangle with no custom gesture handlers."},{"text":""},{"text":"You can also use the ``isEnabled`` parameter to conditionally disable"},{"text":"the gesture."},{"text":""},{"text":"Tapping or clicking the \"heart\" image sends two messages to the"},{"text":"console: one for the image's tap gesture handler, and the other from a"},{"text":"custom gesture handler attached to the enclosing vertical stack."},{"text":"Tapping or clicking on the blue rectangle results only in the single"},{"text":"message to the console from the tap recognizer attached to the"},{"text":"``VStack``:"},{"text":""},{"text":" struct SimultaneousGestureExample: View {"},{"text":" @State private var message = \"Message\""},{"text":" var isGestureEnabled: Bool"},{"text":" let newGesture = TapGesture().onEnded {"},{"text":" print(\"Gesture on VStack.\")"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" VStack(spacing:25) {"},{"text":" Image(systemName: \"heart.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 75, height: 75)"},{"text":" .padding()"},{"text":" .foregroundColor(.red)"},{"text":" .onTapGesture {"},{"text":" print(\"Gesture on image.\")"},{"text":" }"},{"text":" Rectangle()"},{"text":" .fill(Color.blue)"},{"text":" }"},{"text":" .simultaneousGesture("},{"text":" newGesture, isEnabled: isGestureEnabled)"},{"text":" .frame(width: 200, height: 200)"},{"text":" .border(Color.purple)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - gesture: A gesture to attach to the view."},{"text":" - name: A string that identifies the gesture. In iOS, the name can be"},{"text":" used to set up failure relationships between UIKit gesture"},{"text":" recognizers and this gesture."},{"text":" - isEnabled: Whether the added gesture is enabled. The default value"},{"text":" is `true`."}]},"functionSignature":{"parameters":[{"name":"gesture","declarationFragments":[{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Gesture","rhsPrecise":"s:7SwiftUI7GestureP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simultaneousGesture"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"gesture"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Gesture","preciseIdentifier":"s:7SwiftUI7GestureP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(_:anchor:)"],"names":{"title":"scaleEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given vertical and horizontal"},{"text":"size amounts, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(_:anchor:)` to scale a view by applying a scaling"},{"text":"transform of a specific size, specified by `scale`."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(CGSize(x: 0.9, y: 1.3), anchor: .leading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a red envelope scaled to a size of 90x130"},{"text":"pixels.](SwiftUI-View-scaleEffect.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - scale: A that"},{"text":" represents the horizontal and vertical amount to scale the view."},{"text":" - anchor: The point with a default of ``UnitPoint/center`` that"},{"text":" defines the location within the view from which to apply the"},{"text":" transformation."}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(_:anchor:)"],"names":{"title":"scaleEffect(_:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given amount in both the"},{"text":"horizontal and vertical directions, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(_:anchor:)` to apply a horizontally and vertically"},{"text":"scaling transform to a view."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(2, anchor: .leading)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a 100x100 pixel red envelope scaled up to 2x the"},{"text":"size of its view.](SwiftUI-View-scaleEffect-cgfloat.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - s: The amount to scale the view in the view in both the horizontal"},{"text":" and vertical directions."},{"text":" - anchor: The anchor point with a default of ``UnitPoint/center`` that"},{"text":" indicates the starting position for the scale operation."}]},"functionSignature":{"parameters":[{"name":"s","declarationFragments":[{"kind":"identifier","spelling":"s"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"s"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scaleEffect(x:y:anchor:)"],"names":{"title":"scaleEffect(x:y:anchor:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Scales this view's rendered output by the given horizontal and vertical"},{"text":"amounts, relative to an anchor point."},{"text":""},{"text":"Use `scaleEffect(x:y:anchor:)` to apply a scaling transform to a view by"},{"text":"a specific horizontal and vertical amount."},{"text":""},{"text":" Image(systemName: \"envelope.badge.fill\")"},{"text":" .resizable()"},{"text":" .frame(width: 100, height: 100, alignment: .center)"},{"text":" .foregroundColor(Color.red)"},{"text":" .scaleEffect(x: 0.5, y: 0.5, anchor: .bottomTrailing)"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing a 100x100 pixel red envelope scaled down 50% in"},{"text":"both the x and y axes.](SwiftUI-View-scaleEffect-xy.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - x: An amount that represents the horizontal amount to scale the"},{"text":" view. The default value is `1.0`."},{"text":" - y: An amount that represents the vertical amount to scale the view."},{"text":" The default value is `1.0`."},{"text":" - anchor: The anchor point that indicates the starting position for"},{"text":" the scale operation."}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scaleEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1.0, "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 1.0, "},{"kind":"externalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":" = .center) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaInset(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaInset(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Shows the specified content above or below the modified view."},{"text":""},{"text":"The `content` view is anchored to the specified"},{"text":"vertical edge in the parent view, aligning its horizontal axis"},{"text":"to the specified alignment guide. The modified view is inset by"},{"text":"the height of `content`, from `edge`, with its safe area"},{"text":"increased by the same amount."},{"text":""},{"text":" struct ScrollableViewWithBottomBar: View {"},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ScrolledContent()"},{"text":" }"},{"text":" .safeAreaInset(edge: .bottom, spacing: 0) {"},{"text":" BottomBarContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The vertical edge of the view to inset by the height of"},{"text":" `content`, to make space for `content`."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" horizontally."},{"text":" - content: A content builder function providing the view to"},{"text":" display in the inset space of the modified view."},{"text":""},{"text":"- Returns: A new view that displays `content` above or below the"},{"text":" modified view,"},{"text":" making space for the `content` view by vertically insetting"},{"text":" the modified view, adjusting the safe area of the result to match."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaInset(edge:alignment:spacing:content:)"],"names":{"title":"safeAreaInset(edge:alignment:spacing:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Shows the specified content beside the modified view."},{"text":""},{"text":"The `content` view is anchored to the specified"},{"text":"horizontal edge in the parent view, aligning its vertical axis"},{"text":"to the specified alignment guide. The modified view is inset by"},{"text":"the width of `content`, from `edge`, with its safe area"},{"text":"increased by the same amount."},{"text":""},{"text":" struct ScrollableViewWithSideBar: View {"},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ScrolledContent()"},{"text":" }"},{"text":" .safeAreaInset(edge: .leading, spacing: 0) {"},{"text":" SideBarContent()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The horizontal edge of the view to inset by the width of"},{"text":" `content`, to make space for `content`."},{"text":" - spacing: Extra distance placed between the two views, or"},{"text":" nil to use the default amount of spacing."},{"text":" - alignment: The alignment guide used to position `content`"},{"text":" vertically."},{"text":" - content: A content builder function providing the view to"},{"text":" display in the inset space of the modified view."},{"text":""},{"text":"- Returns: A new view that displays `content` beside the modified view,"},{"text":" making space for the `content` view by horizontally insetting"},{"text":" the modified view."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"}]},{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaInset"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalAlignment","preciseIdentifier":"s:7SwiftUI17VerticalAlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"externalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:)"],"names":{"title":"safeAreaPadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:_:)"],"names":{"title":"safeAreaPadding(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","safeAreaPadding(_:)"],"names":{"title":"safeAreaPadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds the provided insets into the safe area of this view."},{"text":""},{"text":"Use this modifier when you would like to add a fixed amount"},{"text":"of space to the safe area a view sees."},{"text":""},{"text":" ScrollView(.horizontal) {"},{"text":" HStack(spacing: 10.0) {"},{"text":" ForEach(items) { item in"},{"text":" ItemView(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .safeAreaPadding(.horizontal, 20.0)"},{"text":""},{"text":"See the horizontal"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(HorizontalEdge,_,_,_)``"},{"text":"or vertical"},{"text":"``View/safeAreaInset(edge:alignment:spacing:content:)-(VerticalEdge,_,_,_)``"},{"text":"modifier for adding to the safe area based on the size of a view."}]},"functionSignature":{"parameters":[{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"safeAreaPadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tint(_:)"],"names":{"title":"tint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the tint color within this view."},{"text":""},{"text":"Use this method to override the default accent color for this view."},{"text":"Unlike an app's accent color, which can be overridden by user"},{"text":"preference, the tint color is always respected and should be used as a"},{"text":"way to provide additional meaning to the control."},{"text":""},{"text":"This example shows Answer and Decline buttons with ``ShapeStyle/green``"},{"text":"and ``ShapeStyle/red`` tint colors, respectively."},{"text":""},{"text":" struct ControlTint: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Button {"},{"text":" // Answer the call"},{"text":" } label: {"},{"text":" Label(\"Answer\", systemImage: \"phone\")"},{"text":" }"},{"text":" .tint(.green)"},{"text":" Button {"},{"text":" // Decline the call"},{"text":" } label: {"},{"text":" Label(\"Decline\", systemImage: \"phone.down\")"},{"text":" }"},{"text":" .tint(.red)"},{"text":" }"},{"text":" .buttonStyle(.borderedProminent)"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Some controls adapt to the tint color differently based on their style,"},{"text":"the current platform, and the surrounding context. For example, in"},{"text":"macOS, a button with the ``PrimitiveButtonStyle/bordered`` style doesn't"},{"text":"tint its background, but one with the"},{"text":"``PrimitiveButtonStyle/borderedProminent`` style does. In macOS, neither"},{"text":"of these button styles tint their label, but they do in other platforms."},{"text":""},{"text":"- Parameter tint: The tint ``Color`` to apply."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hueRotation(_:)"],"names":{"title":"hueRotation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hueRotation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Applies a hue rotation effect to this view."},{"text":""},{"text":"Use hue rotation effect to shift all of the colors in a view according"},{"text":"to the angle you specify."},{"text":""},{"text":"The example below shows a series of squares filled with a linear"},{"text":"gradient. Each square shows the effect of a 36˚ hueRotation (a total of"},{"text":"180˚ across the 5 squares) on the gradient:"},{"text":""},{"text":" struct HueRotation: View {"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(0..<6) {"},{"text":" Rectangle()"},{"text":" .fill(.linearGradient("},{"text":" colors: [.blue, .red, .green],"},{"text":" startPoint: .top, endPoint: .bottom))"},{"text":" .hueRotation((.degrees(Double($0 * 36))))"},{"text":" .frame(width: 60, height: 60, alignment: .center)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![Shows the effect of hueRotation on a linear"},{"text":"gradient.](SwiftUI-hueRotation.png)"},{"text":""},{"text":"- Parameter angle: The hue rotation angle to apply to the colors in this"},{"text":" view."},{"text":""},{"text":"- Returns: A view that applies a hue rotation effect to this view."}]},"functionSignature":{"parameters":[{"name":"angle","declarationFragments":[{"kind":"identifier","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hueRotation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"angle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Angle","preciseIdentifier":"s:7SwiftUI5AngleV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputBorderShape(_:)"],"names":{"title":"textInputBorderShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputBorderShape"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Sets the border shape for text input controls in the view hierarchy."},{"text":""},{"text":"Use this modifier to customize the border shape of ``TextField`` and"},{"text":"other text input controls. The shape can be applied to individual"},{"text":"controls or to a container to affect all text input controls within"},{"text":"it."},{"text":""},{"text":"In this example, a search field and button both use a capsule shape:"},{"text":""},{"text":" HStack {"},{"text":" TextField(\"Search\", text: $searchText)"},{"text":" Button(\"Go\", action: search)"},{"text":" }"},{"text":" .buttonBorderShape(.capsule)"},{"text":" .textInputBorderShape(.capsule)"},{"text":""},{"text":"- Parameter shape: The shape to use for the border of text input"},{"text":" controls."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputBorderShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputBorderShape","preciseIdentifier":"s:7SwiftUI20TextInputBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","transition(_:)"],"names":{"title":"transition(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Associates a transition with the view."},{"text":""},{"text":"When this view appears or disappears, the transition will be applied to"},{"text":"it, allowing for animating it in and out."},{"text":""},{"text":"The following code will conditionally show MyView, and when it appears"},{"text":"or disappears, will use a slide transition to show it."},{"text":""},{"text":" if isActive {"},{"text":" MyView()"},{"text":" .transition(.slide)"},{"text":" }"},{"text":" Button(\"Toggle\") {"},{"text":" withAnimation {"},{"text":" isActive.toggle()"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"t","declarationFragments":[{"kind":"identifier","spelling":"t"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"t"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyTransition","preciseIdentifier":"s:7SwiftUI13AnyTransitionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueDescription: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueDescription","declarationFragments":[{"kind":"identifier","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueKey: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - valueResource: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:isEnabled:)"],"names":{"title":"accessibilityValue(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only"},{"text":"if that's different than the view's label. For example, for a slider"},{"text":"that you label as \"Volume\" using accessibilityLabel(), you can provide"},{"text":"the current volume setting, like \"60%\", using accessibilityValue()."},{"text":""},{"text":"- Parameters:"},{"text":" - value: The accessibility value to apply."},{"text":" - isEnabled: If true the accessibility value is applied; otherwise"},{"text":" the accessibility value is unchanged."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueDescription","declarationFragments":[{"kind":"identifier","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if"},{"text":"that's different than the view's label. For example, for a slider that"},{"text":"you label as \"Volume\" using accessibilityLabel(), you can provide the"},{"text":"current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityValue(_:)"],"names":{"title":"accessibilityValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a textual description of the value that the view contains."},{"text":""},{"text":"Use this method to describe the value represented by a view, but only if that's different than the"},{"text":"view's label. For example, for a slider that you label as \"Volume\" using accessibilityLabel(),"},{"text":"you can provide the current volume setting, like \"60%\", using accessibilityValue()."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityValue"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewColumnWidth(_:)"],"names":{"title":"navigationSplitViewColumnWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed, preferred width for the column containing this view."},{"text":""},{"text":"Apply this modifier to the content of a column in a"},{"text":"``NavigationSplitView`` to specify a fixed preferred width for the"},{"text":"column. Use ``View/navigationSplitViewColumnWidth(min:ideal:max:)`` if"},{"text":"you need to specify a flexible width."},{"text":""},{"text":"The following example shows a three-column navigation split view where"},{"text":"the first column has a preferred width of 150 points, and the second"},{"text":"column has a flexible, preferred width between 150 and 400 points:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" MySidebar()"},{"text":" .navigationSplitViewColumnWidth(150)"},{"text":" } contents: {"},{"text":" MyContents()"},{"text":" .navigationSplitViewColumnWidth("},{"text":" min: 150, ideal: 200, max: 400)"},{"text":" } detail: {"},{"text":" MyDetail()"},{"text":" }"},{"text":""},{"text":"Only some platforms enable resizing columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSplitViewColumnWidth(min:ideal:max:)"],"names":{"title":"navigationSplitViewColumnWidth(min:ideal:max:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a flexible, preferred width for the column containing this view."},{"text":""},{"text":"Apply this modifier to the content of a column in a"},{"text":"``NavigationSplitView`` to specify a preferred flexible width for the"},{"text":"column. Use ``View/navigationSplitViewColumnWidth(_:)`` if you need to"},{"text":"specify a fixed width."},{"text":""},{"text":"The following example shows a three-column navigation split view where"},{"text":"the first column has a preferred width of 150 points, and the second"},{"text":"column has a flexible, preferred width between 150 and 400 points:"},{"text":""},{"text":" NavigationSplitView {"},{"text":" MySidebar()"},{"text":" .navigationSplitViewColumnWidth(150)"},{"text":" } contents: {"},{"text":" MyContents()"},{"text":" .navigationSplitViewColumnWidth("},{"text":" min: 150, ideal: 200, max: 400)"},{"text":" } detail: {"},{"text":" MyDetail()"},{"text":" }"},{"text":""},{"text":"Only some platforms enable resizing columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."}]},"functionSignature":{"parameters":[{"name":"min","declarationFragments":[{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"ideal","declarationFragments":[{"kind":"identifier","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"max","declarationFragments":[{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSplitViewColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLinkedGroup(id:in:)"],"names":{"title":"accessibilityLinkedGroup(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLinkedGroup"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Links multiple accessibility elements so that the user can quickly"},{"text":"navigate from one element to another, even when the elements are not near"},{"text":"each other in the accessibility hierarchy."},{"text":""},{"text":"This can be useful to allow quickly jumping between content in a list and"},{"text":"the same content shown in a detail view, for example. All elements marked"},{"text":"with `accessibilityLinkedGroup` with the same namespace and identifier will be"},{"text":"linked together."},{"text":""},{"text":"When all elements in the linked group are text views (`Text`, `TextEditor`,"},{"text":"or `TextField`), VoiceOver treats the group as a single text element — line,"},{"text":"word, and character navigation moves across element boundaries as if the views"},{"text":"form one continuous text region. On macOS, this unified text navigation uses"},{"text":"shared text UI elements. If any element in the group is not a text view, the"},{"text":"standard linking behavior applies."},{"text":""},{"text":"- Parameters:"},{"text":" - id: A hashable identifier used to separate sets of linked elements"},{"text":" within the same namespace. Elements with matching `namespace` and `id`"},{"text":" will be linked together."},{"text":" - namespace: The namespace to use to organize linked accessibility"},{"text":" elements. All elements marked with `accessibilityLinkedGroup` in this"},{"text":" namespace and with the specified `id` will be linked together."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLinkedGroup"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabeledPair(role:id:in:)"],"names":{"title":"accessibilityLabeledPair(role:id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabeledPair"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Pairs an accessibility element representing a label with the element"},{"text":"for the matching content."},{"text":""},{"text":"Use `accessibilityLabeledPair` with a role of `AccessibilityLabeledPairRole.label`"},{"text":"to identify the label, and a role of `AccessibilityLabeledPairRole.content`"},{"text":"to identify the content."},{"text":"This improves the behavior of accessibility features such as VoiceOver"},{"text":"when navigating such elements, allowing users to better understand the"},{"text":"relationship between them."},{"text":""},{"text":"- Parameters:"},{"text":" - role: Determines whether this element should be used as the label"},{"text":" in the pair, or the content in the pair."},{"text":" - id: The identifier for the label / content pair. Elements with"},{"text":" matching identifiers within the same namespace will be paired"},{"text":" together."},{"text":" - namespace: The namespace used to organize label and content. Label"},{"text":" and content under the same namespace with matching identifiers will"},{"text":" be paired together."}]},"functionSignature":{"parameters":[{"name":"role","declarationFragments":[{"kind":"identifier","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabeledPair"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"role"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityLabeledPairRole","preciseIdentifier":"s:7SwiftUI28AccessibilityLabeledPairRoleO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","handGestureShortcut(_:isEnabled:)"],"names":{"title":"handGestureShortcut(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handGestureShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Assigns a hand gesture shortcut to the modified control."},{"text":""},{"text":"Performing the control's shortcut while the control is anywhere in the"},{"text":"frontmost scene is equivalent to direct interaction with the control to"},{"text":"perform its primary action."},{"text":""},{"text":"The following example lets users of a watchOS music app toggle playback"},{"text":"by double-tapping their thumb and index finger together:"},{"text":""},{"text":" struct PlaybackControls: View {"},{"text":" let model: TrackModel"},{"text":""},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" Button(\"Skip Back\") {"},{"text":" model.skipBack()"},{"text":" }"},{"text":""},{"text":" Button(\"Play/Pause\") {"},{"text":" model.playPause()"},{"text":" }"},{"text":" .handGestureShortcut(.primaryAction)"},{"text":""},{"text":" Button(\"Skip Forward\") {"},{"text":" model.skipForward()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The target of a hand gesture shortcut is resolved in a"},{"text":"leading-to-trailing traversal of the active scene."},{"text":""},{"text":"- Parameters:"},{"text":" - shortcut: The shortcut to associate with this control."},{"text":" - isEnabled: A Boolean value that indicates whether the shortcut is"},{"text":" is enabled for this control."}]},"functionSignature":{"parameters":[{"name":"shortcut","declarationFragments":[{"kind":"identifier","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handGestureShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HandGestureShortcut","preciseIdentifier":"s:7SwiftUI19HandGestureShortcutV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scenePadding(_:)"],"names":{"title":"scenePadding(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds padding to the specified edges of this view using an amount that's"},{"text":"appropriate for the current scene."},{"text":""},{"text":"Use this modifier to add a scene-appropriate amount of padding to a"},{"text":"view. Specify either a single edge value from ``Edge/Set``, or an"},{"text":" that"},{"text":"describes the edges to pad."},{"text":""},{"text":"In macOS, use scene padding to produce the recommended spacing around"},{"text":"the root view of a window. In watchOS, use scene padding to align"},{"text":"elements of your user interface with top level elements, like the title"},{"text":"of a navigation view. For example, compare the effects of different"},{"text":"kinds of padding on text views presented inside a ``NavigationView``"},{"text":"in watchOS:"},{"text":""},{"text":" VStack(alignment: .leading, spacing: 10) {"},{"text":" Text(\"Scene padding\")"},{"text":" .scenePadding(.horizontal)"},{"text":" .border(.red) // Border added for reference."},{"text":" Text(\"Regular padding\")"},{"text":" .padding(.horizontal)"},{"text":" .border(.green)"},{"text":" Text(\"Text with no padding\")"},{"text":" .border(.blue)"},{"text":" Button(\"Button\") { }"},{"text":" }"},{"text":" .navigationTitle(\"Hello World\")"},{"text":""},{"text":"The text with scene padding automatically aligns with the title,"},{"text":"unlike the text that uses the default padding or the text without"},{"text":"padding:"},{"text":""},{"text":"![A watchOS screenshot with the title Hello World and a back button"},{"text":"in the upper left. The title is indented by a small amount from"},{"text":"the leading edge of the screen. Three bordered strings and a button"},{"text":"appear arranged vertically below the title."},{"text":"The first string says Scene padding and has a red border that's aligned"},{"text":"with the leading edge of the screen. The leading"},{"text":"edge of the string inside the border aligns with the leading edge of"},{"text":"the screen's title."},{"text":"The second string says Regular padding and has a green border that's"},{"text":"aligned with the leading edge of the screen. The leading edge of the"},{"text":"string appears offset from the title's leading edge by a small amount."},{"text":"The third string says Text with no padding and has a blue border that's"},{"text":"aligned with the leading edge of the screen. The string is also aligned"},{"text":"with the leading edge of the screen.](View-scenePadding-1-watchOS)"},{"text":""},{"text":"Scene padding in watchOS also ensures that your content avoids the"},{"text":"curved edges of a device like Apple Watch Series 7."},{"text":"In other platforms, scene padding produces the same default padding that"},{"text":"you get from the ``View/padding(_:_:)`` modifier."},{"text":""},{"text":"> Important: Scene padding doesn't pad the top and bottom edges of a"},{"text":"view in watchOS, even if you specify those edges as part of the input."},{"text":"For example, if you specify ``Edge/Set/vertical`` instead of"},{"text":"``Edge/Set/horizontal`` in the example above, the modifier would have"},{"text":"no effect in watchOS. It does, however, apply to all the edges that you"},{"text":"specify in other platforms."},{"text":""},{"text":"- Parameter edges: The set of edges along which to pad this view."},{"text":""},{"text":"- Returns: A view that's padded on specified edges by a"},{"text":" scene-appropriate amount."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scenePadding(_:edges:)"],"names":{"title":"scenePadding(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a specified kind of padding to the specified edges of this view"},{"text":"using an amount that's appropriate for the current scene."},{"text":""},{"text":"Use this modifier to add a scene-appropriate amount of padding to a"},{"text":"view. Specify either a single edge value from ``Edge/Set``, or an"},{"text":" that"},{"text":"describes the edges to pad."},{"text":""},{"text":"In macOS, use scene padding to produce the recommended spacing around"},{"text":"the root view of a window. In watchOS, use scene padding to align"},{"text":"elements of your user interface with top level elements, like the title"},{"text":"of a navigation view. For example, compare the effects of different"},{"text":"kinds of padding on text views presented inside a ``NavigationView``"},{"text":"in watchOS:"},{"text":""},{"text":" VStack(alignment: .leading, spacing: 10) {"},{"text":" Text(\"Minimum Scene padding\")"},{"text":" .scenePadding(.minimum, edges: .horizontal)"},{"text":" .border(.red) // Border added for reference."},{"text":" Text(\"Navigation Bar Scene padding\")"},{"text":" .scenePadding(.navigationBar, edges: .horizontal)"},{"text":" .border(.yellow)"},{"text":" Text(\"Regular padding\")"},{"text":" .padding(.horizontal)"},{"text":" .border(.green)"},{"text":" Text(\"Text with no padding\")"},{"text":" .border(.blue)"},{"text":" Button(\"Button\") { }"},{"text":" }"},{"text":" .navigationTitle(\"Hello World\")"},{"text":""},{"text":"The text with minimum scene padding uses the system minimum padding"},{"text":"and the text with navigation bar scene padding automatically aligns"},{"text":"with the navigation bar content. In contrast, the text that uses the"},{"text":"default padding and the text without padding do not align with scene"},{"text":"elements."},{"text":""},{"text":"Scene padding in watchOS also ensures that your content avoids the"},{"text":"curved edges of a device like Apple Watch Series 7."},{"text":"In other platforms, scene padding produces the same default padding that"},{"text":"you get from the ``View/padding(_:_:)`` modifier."},{"text":""},{"text":"> Important: Scene padding doesn't pad the top and bottom edges of a"},{"text":"view in watchOS, even if you specify those edges as part of the input."},{"text":"For example, if you specify ``Edge/Set/vertical`` instead of"},{"text":"``Edge/Set/horizontal`` in the example above, the modifier would have"},{"text":"no effect in watchOS. It does, however, apply to all the edges that you"},{"text":"specify in other platforms."},{"text":""},{"text":"- Parameter padding: The kind of padding to add."},{"text":"- Parameter edges: The set of edges along which to pad this view."},{"text":""},{"text":"- Returns: A view that's padded on specified edges by a"},{"text":" scene-appropriate amount."}]},"functionSignature":{"parameters":[{"name":"padding","declarationFragments":[{"kind":"identifier","spelling":"padding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scenePadding"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"padding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScenePadding","preciseIdentifier":"s:7SwiftUI12ScenePaddingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listStyle(_:)"],"names":{"title":"listStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for lists within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ListStyle","rhsPrecise":"s:7SwiftUI9ListStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ListStyle","preciseIdentifier":"s:7SwiftUI9ListStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActions(category:_:)"],"names":{"title":"accessibilityActions(category:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds multiple accessibility actions to the view with a specific"},{"text":"category. Actions allow assistive technologies, such as VoiceOver,"},{"text":"to interact with the view by invoking the action and are grouped by"},{"text":"their category. When multiple action modifiers with an equal category"},{"text":"are applied to the view, the actions are combined together."},{"text":""},{"text":" var body: some View {"},{"text":" EditorView()"},{"text":" .accessibilityActions(category: .edit) {"},{"text":" ForEach(editActions) { action in"},{"text":" Button(action.title) {"},{"text":" action()"},{"text":" }"},{"text":" }"},{"text":" if hasTextSuggestions {"},{"text":" Button(\"Show Text Suggestions\") {"},{"text":" presentTextSuggestions()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - category: The category the accessibility actions are grouped by."},{"text":" - content: The accessibility actions added to the view."}]},"functionSignature":{"parameters":[{"name":"category","declarationFragments":[{"kind":"identifier","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"category"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionCategory","preciseIdentifier":"s:7SwiftUI27AccessibilityActionCategoryV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:isEnabled:)"],"names":{"title":"accessibilityLabel(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon. For example, you could use this"},{"text":"method to label a button that plays music with the text \"Play\". Don't"},{"text":"include text in the label that repeats information that users already"},{"text":"have. For example, don't use the label \"Play button\" because a button"},{"text":"already has a trait that identifies it as a button."},{"text":""},{"text":"- Parameters:"},{"text":" - label: The accessibility label to apply."},{"text":" - isEnabled: If true the accessibility label is applied; otherwise"},{"text":" the accessibility label is unchanged."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(content:)"],"names":{"title":"accessibilityLabel(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to append content to the accessibility label for a view."},{"text":"For example, you could use this method to label a badge or alert that"},{"text":"is custom drawn without removing the existing accessibility label."},{"text":"- Parameters:"},{"text":" - content: A content builder closure that takes a proxy"},{"text":" value representing the modified view. You can combine the modified"},{"text":" view with other content to create a new accessibility label for"},{"text":" the original view."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PlaceholderContentView","preciseIdentifier":"s:7SwiftUI22PlaceholderContentViewV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that"},{"text":"doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays"},{"text":"music with the text \"Play\". Don't include text in the label that repeats"},{"text":"information that users already have. For example, don't use the label"},{"text":"\"Play button\" because a button already has a trait that identifies it"},{"text":"as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityLabel(_:)"],"names":{"title":"accessibilityLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a label to the view that describes its contents."},{"text":""},{"text":"Use this method to provide an accessibility label for a view that doesn't display text, like an icon."},{"text":"For example, you could use this method to label a button that plays music with the text \"Play\"."},{"text":"Don't include text in the label that repeats information that users already have. For example,"},{"text":"don't use the label \"Play button\" because a button already has a trait that identifies it as a button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowInsets(_:)"],"names":{"title":"listRowInsets(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies an inset to the rows in a list."},{"text":""},{"text":"Use `listRowInsets(_:)` to change the default padding of the content of"},{"text":"list items."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowInsets(_:)` modifier then changes the edge insets of each row"},{"text":"of the list according to the ``EdgeInsets`` provided:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowInsets(.init(top: 0,"},{"text":" leading: 25,"},{"text":" bottom: 0,"},{"text":" trailing: 0))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a list with leading 25 point inset on each row.](SwiftUI-View-ListRowInsets.png)"},{"text":""},{"text":"- Parameter insets: The ``EdgeInsets`` to apply to the edges of the"},{"text":" view."},{"text":"- Returns: A view that uses the given edge insets when used as a list"},{"text":" cell."},{"text":"- Note: On iOS 18 and earlier, and on visionOS 2 and earlier, the"},{"text":" content of list rows can grow slightly into the row insets. The"},{"text":" effective vertical insets can then be smaller than expected."}]},"functionSignature":{"parameters":[{"name":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EdgeInsets","preciseIdentifier":"s:7SwiftUI10EdgeInsetsV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowInsets(_:_:)"],"names":{"title":"listRowInsets(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the insets of rows in a list on the specified edges."},{"text":""},{"text":"Use this modifier to change the default insets of list rows on the"},{"text":"specified edges."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowInsets(_:_:)` modifier then changes the leading inset of each"},{"text":"row of the list and leaves the default insets on the other edges"},{"text":"untouched:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowInsets(.leading, 25)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a list with leading 25 point inset on each"},{"text":"row.](SwiftUI-View-ListRowInsets.png)"},{"text":""},{"text":"When applying multiple `listRowInsets` modifiers, modifiers with the"},{"text":"same edges will override modifiers higher up in the view hierarchy."},{"text":""},{"text":"- Parameter edges: The edges to set the insets to."},{"text":"- Parameter length: An amount, given in points, to set the insets to on"},{"text":" the specified edges."},{"text":"- Returns: A view in which the margins of list sections are set to the"},{"text":" specified amount"},{"text":"- Note: On iOS 18 and earlier, and on visionOS 2 and earlier, the"},{"text":" content of list rows can grow slightly into the row insets. The"},{"text":" effective vertical insets can then be smaller than expected."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowInsets"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogIcon(_:)"],"names":{"title":"dialogIcon(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogIcon"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the icon used by dialogs within this view."},{"text":""},{"text":"On macOS, this icon replaces the default icon of the app."},{"text":""},{"text":"On watchOS, this icon will be shown in any dialogs presented."},{"text":""},{"text":"This modifier has no effect on other platforms."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a custom image."},{"text":""},{"text":" Button(\"Delete items\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogIcon(Image(...))"},{"text":""},{"text":"- Parameter icon: The custom icon to use for confirmation dialogs and alerts."},{"text":" Passing `nil` will use the default app icon."}]},"functionSignature":{"parameters":[{"name":"icon","declarationFragments":[{"kind":"identifier","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(item:content:)"],"names":{"title":"alert(item:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert to the user."},{"text":""},{"text":"Use this method when you need to show an alert that contains"},{"text":"information from a binding to an optional data source that you provide."},{"text":"The example below shows a custom data source `FileInfo` whose"},{"text":"properties configure the alert's `message` field:"},{"text":""},{"text":" struct FileInfo: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":""},{"text":" struct ConfirmImportAlert: View {"},{"text":" @State private var alertDetails: FileInfo?"},{"text":" var body: some View {"},{"text":" Button(\"Show Alert\") {"},{"text":" alertDetails = FileInfo(name: \"MyImageFile.png\","},{"text":" fileType: .png)"},{"text":" }"},{"text":" .alert(item: $alertDetails) { details in"},{"text":" Alert(title: Text(\"Import Complete\"),"},{"text":" message: Text(\"\"\""},{"text":" Imported \\(details.name) \\n File"},{"text":" type: \\(details.fileType.description)."},{"text":" \"\"\"),"},{"text":" dismissButton: .default(Text(\"Dismiss\")))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":""},{"text":"![An alert showing information from a data source that describes the"},{"text":"result of a file import process. The alert displays the name of the"},{"text":"file imported, MyImageFile.png and its file type, the PNG image"},{"text":"file format along with a default OK button for dismissing the"},{"text":"alert.](SwiftUI-View-AlertItemContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the alert."},{"text":" if `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You use this content to populate the fields"},{"text":" of an alert that you create that the system displays to the user."},{"text":" If `item` changes, the system dismisses the currently displayed"},{"text":" alert and replaces it with a new one using the same process."},{"text":" - content: A closure returning the alert to present."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:content:)"],"names":{"title":"alert(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert to the user."},{"text":""},{"text":"Use this method when you need to show an alert to the user. The example"},{"text":"below displays an alert that is shown when the user toggles a"},{"text":"Boolean value that controls the presentation of the alert:"},{"text":""},{"text":" struct OrderCompleteAlert: View {"},{"text":" @State private var isPresented = false"},{"text":" var body: some View {"},{"text":" Button(\"Show Alert\", action: {"},{"text":" isPresented = true"},{"text":" })"},{"text":" .alert(isPresented: $isPresented) {"},{"text":" Alert(title: Text(\"Order Complete\"),"},{"text":" message: Text(\"Thank you for shopping with us.\"),"},{"text":" dismissButton: .default(Text(\"OK\")))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![An alert whose title reads Order Complete, with the"},{"text":"message, Thank you for shopping with us placed underneath. The alert"},{"text":"also includes an OK button for dismissing the"},{"text":"alert.](SwiftUI-View-AlertIsPresentedContent.png)"},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the alert that you create in the modifier's `content` closure. When the"},{"text":" user presses or taps OK the system sets `isPresented` to `false`"},{"text":" which dismisses the alert."},{"text":" - content: A closure returning the alert to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Alert","preciseIdentifier":"s:7SwiftUI5AlertV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"use `alert(title:isPresented:presenting::actions:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(for:destination:)"],"names":{"title":"navigationDestination(for:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a presented data type for use within"},{"text":"a navigation stack."},{"text":""},{"text":"Add this view modifier to a view inside a ``NavigationStack`` to"},{"text":"describe the view that the stack displays when presenting"},{"text":"a particular kind of data. Use a ``NavigationLink`` to present"},{"text":"the data. For example, you can present a `ColorDetail` view for"},{"text":"each presentation of a ``Color`` instance:"},{"text":""},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Mint\", value: Color.mint)"},{"text":" NavigationLink(\"Pink\", value: Color.pink)"},{"text":" NavigationLink(\"Teal\", value: Color.teal)"},{"text":" }"},{"text":" .navigationDestination(for: Color.self) { color in"},{"text":" ColorDetail(color: color)"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":" }"},{"text":""},{"text":"You can add more than one navigation destination modifier to the stack"},{"text":"if it needs to present more than one kind of data."},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation stack can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - data: The type of data that this destination matches."},{"text":" - destination: A content builder that defines a view to display"},{"text":" when the stack's navigation state contains a value of"},{"text":" type `data`. The closure takes one argument, which is the value"},{"text":" of the data to present."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"C","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":".Type, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(isPresented:destination:)"],"names":{"title":"navigationDestination(isPresented:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a binding that can be used to push"},{"text":"the view onto a ``NavigationStack``."},{"text":""},{"text":"In general, favor binding a path to a navigation stack for programmatic"},{"text":"navigation. Add this view modifier to a view inside a ``NavigationStack``"},{"text":"to programmatically push a single view onto the stack. This is useful"},{"text":"for building components that can push an associated view. For example,"},{"text":"you can present a `ColorDetail` view for a particular color:"},{"text":""},{"text":" @State private var showDetails = false"},{"text":" var favoriteColor: Color"},{"text":""},{"text":" NavigationStack {"},{"text":" VStack {"},{"text":" Circle()"},{"text":" .fill(favoriteColor)"},{"text":" Button(\"Show details\") {"},{"text":" showDetails = true"},{"text":" }"},{"text":" }"},{"text":" .navigationDestination(isPresented: $showDetails) {"},{"text":" ColorDetail(color: favoriteColor)"},{"text":" }"},{"text":" .navigationTitle(\"My Favorite Color\")"},{"text":" }"},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation stack can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that indicates whether"},{"text":" `destination` is currently presented."},{"text":" - destination: A view to present."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationDestination(item:destination:)"],"names":{"title":"navigationDestination(item:destination:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>, "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a destination view with a bound value for use within a"},{"text":"navigation stack or navigation split view"},{"text":""},{"text":"Add this view modifier to a view inside a ``NavigationStack`` or"},{"text":"``NavigationSplitView`` to describe the view that the stack displays"},{"text":"when presenting a particular kind of data. Programmatically update"},{"text":"the binding to display or remove the view. For example, you can replace"},{"text":"the view showing in the detail column of a navigation split view:"},{"text":""},{"text":" @State private var colorShown: Color?"},{"text":""},{"text":" NavigationSplitView {"},{"text":" List {"},{"text":" Button(\"Mint\") { colorShown = .mint }"},{"text":" Button(\"Pink\") { colorShown = .pink }"},{"text":" Button(\"Teal\") { colorShown = .teal }"},{"text":" }"},{"text":" .navigationDestination(item: $colorShown) { color in"},{"text":" ColorDetail(color: color)"},{"text":" }"},{"text":" } detail: {"},{"text":" Text(\"Select a color\")"},{"text":" }"},{"text":""},{"text":"When the person using the app taps on the Mint button, the mint color"},{"text":"shows in the detail and `colorShown` gets the value `Color.mint`. You"},{"text":"can reset the navigation split view to show the message \"Select a color\""},{"text":"by setting `colorShown` back to `nil`."},{"text":""},{"text":"You can add more than one navigation destination modifier to the stack"},{"text":"if it needs to present more than one kind of data."},{"text":""},{"text":"Do not put a navigation destination modifier inside a \"lazy\" container,"},{"text":"like ``List`` or ``LazyVStack``. These containers create child views"},{"text":"only when needed to render on screen. Add the navigation destination"},{"text":"modifier outside these containers so that the navigation split view can"},{"text":"always see the destination."},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to the data presented, or `nil` if nothing is"},{"text":" currently presented."},{"text":" - destination: A content builder that defines a view to display"},{"text":" when `item` is not `nil`."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>"}]},{"name":"destination","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"destination"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1},{"name":"C","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":">>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"destination"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textSelection(_:)"],"names":{"title":"textSelection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls whether people can select text within this view."},{"text":""},{"text":"People sometimes need to copy useful information from ``Text`` views ---"},{"text":"including error messages, serial numbers, or IP addresses --- so they"},{"text":"can then paste the text into another context. Enable text selection"},{"text":"to let people select text in a platform-appropriate way."},{"text":""},{"text":"You can apply this method to an individual text view, or to a"},{"text":"container to make each contained text view selectable. In the following"},{"text":"example, the person using the app can select text that shows the date of"},{"text":"an event or the name or email of any of the event participants:"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" Text(\"Event Invite\")"},{"text":" .font(.title)"},{"text":" Text(invite.date.formatted(date: .long, time: .shortened))"},{"text":" .textSelection(.enabled)"},{"text":""},{"text":" List(invite.recipients) { recipient in"},{"text":" VStack (alignment: .leading) {"},{"text":" Text(recipient.name)"},{"text":" Text(recipient.email)"},{"text":" .foregroundStyle(.secondary)"},{"text":" }"},{"text":" }"},{"text":" .textSelection(.enabled)"},{"text":" }"},{"text":" .navigationTitle(\"New Invitation\")"},{"text":" }"},{"text":""},{"text":"On macOS, people use the mouse or trackpad to select a range of text,"},{"text":"which they can quickly copy by choosing Edit > Copy, or with the"},{"text":"standard keyboard shortcut."},{"text":""},{"text":"![A macOS window titled New Invitation, with header Event Invite and"},{"text":"the date and time of the event below it. The date --- July 31, 2022 ---"},{"text":"is selected. Below this, a list of invitees by name and"},{"text":"email.](View-textSelection-1)"},{"text":""},{"text":"On iOS, the person using the app touches and holds on a selectable"},{"text":"`Text` view to begin selecting text."},{"text":"In iOS 27 or later, this brings up the system text selection handles"},{"text":"and highlight which supports selecting a range of text."},{"text":"In iOS 26 or earlier, this brings up a system menu with"},{"text":"menu items appropriate for the current context."},{"text":"These menu items operate on the entire contents of the `Text` view."},{"text":""},{"text":"@Image(source: \"View-textSelection-2\","},{"text":"alt: \"A portion of an iOS view, with header Event Invite and the date"},{"text":"and time of the event below it. Below the date and time,"},{"text":"a menu shows three items: Copy, Look Up and Translate."},{"text":"Below this, a list of invitees by name and email.\","},{"text":"deviceFrame: \"iPhone16-top-half\")"},{"text":""},{"text":"- Note: ``Button`` views don't support text selection."}]},"functionSignature":{"parameters":[{"name":"selectability","declarationFragments":[{"kind":"identifier","spelling":"selectability"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TextSelectability","rhsPrecise":"s:7SwiftUI17TextSelectabilityP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selectability"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextSelectability","preciseIdentifier":"s:7SwiftUI17TextSelectabilityP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAdjustableAction(_:)"],"names":{"title":"accessibilityAdjustableAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAdjustableAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility adjustable action to the view. Actions allow"},{"text":"assistive technologies, such as the VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how an adjustable action to navigate"},{"text":"through pages could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" PageControl()"},{"text":" .accessibilityAdjustableAction { direction in"},{"text":" switch direction {"},{"text":" case .increment:"},{"text":" // Go to next page"},{"text":" case .decrement:"},{"text":" // Go to previous page"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAdjustableAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityAdjustmentDirection","preciseIdentifier":"s:7SwiftUI32AccessibilityAdjustmentDirectionO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityTextContentType(_:)"],"names":{"title":"accessibilityTextContentType(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityTextContentType"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an accessibility text content type."},{"text":""},{"text":"Use this modifier to set the content type of this accessibility"},{"text":"element. Assistive technologies can use this property to choose"},{"text":"an appropriate way to output the text. For example, when"},{"text":"encountering a source coding context, VoiceOver could"},{"text":"choose to speak all punctuation."},{"text":""},{"text":"The default content type ``AccessibilityTextContentType/plain``."},{"text":""},{"text":"- Parameter value: The accessibility content type from the available"},{"text":"``AccessibilityTextContentType`` options."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityTextContentType"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTextContentType","preciseIdentifier":"s:7SwiftUI28AccessibilityTextContentTypeV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHeading(_:)"],"names":{"title":"accessibilityHeading(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHeading"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the accessibility level of this heading."},{"text":""},{"text":"Use this modifier to set the level of this heading in relation to other headings. The system speaks"},{"text":"the level number of levels ``AccessibilityHeadingLevel/h1`` through"},{"text":" ``AccessibilityHeadingLevel/h6`` alongside the text."},{"text":""},{"text":"The default heading level if you don’t use this modifier"},{"text":"is ``AccessibilityHeadingLevel/unspecified``."},{"text":""},{"text":"- Parameter level: The heading level to associate with this element"},{"text":" from the available ``AccessibilityHeadingLevel`` levels."}]},"functionSignature":{"parameters":[{"name":"level","declarationFragments":[{"kind":"identifier","spelling":"level"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHeading"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"level"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityHeadingLevel","preciseIdentifier":"s:7SwiftUI25AccessibilityHeadingLevelO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsWindowActivationEvents(_:)"],"names":{"title":"allowsWindowActivationEvents(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures whether gestures in this view hierarchy can handle events"},{"text":"that activate the containing window."},{"text":""},{"text":"Views higher in the hierarchy can override the value you set on this"},{"text":"view. In the following example, the tap gesture on the `Rectangle` won't"},{"text":"handle events that activate the containing window because the outer"},{"text":"`allowsWindowActivationEvents(_:)` view modifier overrides the"},{"text":"inner one:"},{"text":""},{"text":"```"},{"text":"HStack {"},{"text":" Rectangle()"},{"text":" .onTapGesture { ... }"},{"text":" .allowsWindowActivationEvents()"},{"text":"}"},{"text":".allowsWindowActivationEvents(false)"},{"text":"```"},{"text":""},{"text":"> Note: It’s only possible to disallow handling events that activate the"},{"text":"> containing window for views that allow it by default or that inherit"},{"text":"> this behavior from their ancestors. Views that explicitly already"},{"text":"> disallow this functionality can’t have it turned on."},{"text":""},{"text":"> Note: Prefer using ``View/allowsWindowActivationEvents()`` if the"},{"text":"> parameter is always `true` and it never changes."},{"text":""},{"text":"- Parameters:"},{"text":" - value: A Boolean value that indicates whether gestures in this"},{"text":" view hierarchy can handle events that activate the containing"},{"text":" window. If `nil`, or if the modifier is not present, the behavior"},{"text":" will be inherited from the view’s ancestors."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","allowsWindowActivationEvents()"],"names":{"title":"allowsWindowActivationEvents()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures gestures in this view hierarchy to handle events that"},{"text":"activate the containing window."},{"text":""},{"text":"Views higher in the hierarchy can override the value you set on this"},{"text":"view. In the following example, the tap gesture on the `Rectangle` won't"},{"text":"handle events that activate the containing window because the outer"},{"text":"`allowsWindowActivationEvents(_:)` view modifier overrides the"},{"text":"inner one:"},{"text":""},{"text":"```"},{"text":"HStack {"},{"text":" Rectangle()"},{"text":" .onTapGesture { ... }"},{"text":" .allowsWindowActivationEvents()"},{"text":"}"},{"text":".allowsWindowActivationEvents(false)"},{"text":"```"},{"text":""},{"text":"> Note: It’s only possible to disallow handling events that activate the"},{"text":"> containing window for views that allow it by default or that inherit"},{"text":"> this behavior from their ancestors. Views that explicitly already"},{"text":"> disallow this functionality can’t have it turned on."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allowsWindowActivationEvents"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(_:trigger:)"],"names":{"title":"sensoryFeedback(_:trigger:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays the specified `feedback` when the provided `trigger` value"},{"text":"changes."},{"text":""},{"text":"For example, you could play feedback when a state value changes:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var showAccessory = false"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .sensoryFeedback(.selection, trigger: showAccessory)"},{"text":" .onLongPressGesture {"},{"text":" showAccessory.toggle()"},{"text":" }"},{"text":""},{"text":" if showAccessory {"},{"text":" AccessoryView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - feedback: Which type of feedback to play."},{"text":" - trigger: A value to monitor for changes to determine when to play."}]},"functionSignature":{"parameters":[{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(_:trigger:condition:)"],"names":{"title":"sensoryFeedback(_:trigger:condition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"condition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays the specified `feedback` when the provided `trigger` value changes"},{"text":"and the `condition` closure returns `true`."},{"text":""},{"text":"For example, you could play feedback for certain state transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var phase = Phase.inactive"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(phase: $phase)"},{"text":" .sensoryFeedback(.selection, trigger: phase) { old, new in"},{"text":" old == .inactive || new == .expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":" enum Phase {"},{"text":" case inactive"},{"text":" case preparing"},{"text":" case active"},{"text":" case expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - feedback: Which type of feedback to play."},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - condition: A closure to determine whether to play the feedback when"},{"text":" `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"}]},{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(trigger:_:)"],"names":{"title":"sensoryFeedback(trigger:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays feedback when returned from the `feedback` closure after the"},{"text":"provided `trigger` value changes."},{"text":""},{"text":"For example, you could play different feedback for different state"},{"text":"transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var phase = Phase.inactive"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(phase: $phase)"},{"text":" .sensoryFeedback(trigger: phase) { old, new in"},{"text":" switch (old, new) {"},{"text":" case (.inactive, _): return .success"},{"text":" case (_, .expanded): return .impact"},{"text":" default: return nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" enum Phase {"},{"text":" case inactive"},{"text":" case preparing"},{"text":" case active"},{"text":" case expanded"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - feedback: A closure to determine whether to play the feedback and"},{"text":" what type of feedback to play when `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sensoryFeedback(trigger:_:)"],"names":{"title":"sensoryFeedback(trigger:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Plays feedback when returned from the `feedback` closure after the"},{"text":"provided `trigger` value changes."},{"text":""},{"text":"For example, you could play different feedback for different state"},{"text":"transitions:"},{"text":""},{"text":" struct MyView: View {"},{"text":" @State private var isExpanded = false"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView(isExpanded: $isExpanded)"},{"text":" .sensoryFeedback(trigger: isExpanded) {"},{"text":" isExpanded ? .impact : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When the value changes, the new version of the closure will be called,"},{"text":"so any captured values will have their values from the time that the"},{"text":"observed value has its new value."},{"text":""},{"text":"- Parameters:"},{"text":" - trigger: A value to monitor for changes to determine when to play."},{"text":" - feedback: A closure to determine whether to play the feedback and"},{"text":" what type of feedback to play when `trigger` changes."}]},"functionSignature":{"parameters":[{"name":"trigger","declarationFragments":[{"kind":"identifier","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"feedback","declarationFragments":[{"kind":"identifier","spelling":"feedback"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sensoryFeedback"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"trigger"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"feedback"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"SensoryFeedback","preciseIdentifier":"s:7SwiftUI15SensoryFeedbackV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag-and-drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag-and-drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedContentTypes`. Return `true`"},{"text":" if the drop operation was successful; otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that handles the"},{"text":"dropped content with a closure that you specify."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe"},{"text":" the types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true` when"},{"text":" the cursor is inside the area, and `false` when the cursor is outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedContentTypes`. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:delegate:)"],"names":{"title":"onDrop(of:delegate:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation using behavior"},{"text":"controlled by the delegate that you provide."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedContentTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - delegate: A type that conforms to the ``DropDelegate`` protocol. You"},{"text":" have comprehensive control over drop behavior when you use a"},{"text":" delegate."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"delegate","declarationFragments":[{"kind":"identifier","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropDestination(for:isEnabled:action:)"],"names":{"title":"dropDestination(for:isEnabled:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination of a drag and drop operation that provides a drop operation proposal and"},{"text":"handles the dropped content with a closure that you specify."},{"text":""},{"text":"The dropped content can be provided as binary data, file URLs, or file promises."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":" @State private var isDropTargeted = false"},{"text":" @Binding var isDropEnabled: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .dropDestination("},{"text":" for: String.self, isEnabled: isDropEnabled"},{"text":" ) { receivedTitles, session in"},{"text":" animateDrop(at: session.location)"},{"text":" process(titles: receivedTitles)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func process(titles: [String]) { ... }"},{"text":" func animateDrop(at: CGPoint) { ... }"},{"text":""},{"text":"- Parameters:"},{"text":" - type: The expected type of the dropped models."},{"text":" - isEnabled: The Boolean value indicating if the view accepts drop interactions."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains"},{"text":" the dropped items. The second parameter contains the drop session description."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drop"},{"text":" operation of the specified type."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropDestination"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":".Type = T.self, "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDropSessionUpdated(_:)"],"names":{"title":"onDropSessionUpdated(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDropSessionUpdated"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies an action to perform on each update of an ongoing drop operation"},{"text":"activated by `dropDestination(_:)` or other drop modifiers."},{"text":""},{"text":"The `onUpdate` closure is called when the closest drop session"},{"text":"in the child view hierarchy becomes active."}]},"functionSignature":{"parameters":[{"name":"onUpdate","declarationFragments":[{"kind":"identifier","spelling":"onUpdate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDropSessionUpdated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"onUpdate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dropConfiguration(_:)"],"names":{"title":"dropConfiguration(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropConfiguration"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures a drop session."},{"text":""},{"text":"Below is an example of a view that accepts drop of `Image` type."},{"text":"The view prefers drop operation `move` in a case when the source"},{"text":"supports it (the source will remove the images from its storage after"},{"text":"the drop operation)."},{"text":"If the source does not support moving images, the destination"},{"text":"will make copies."},{"text":""},{"text":" ExampleView()"},{"text":" .dropDestination(for: Image.self) { images, _ in"},{"text":" process(images)"},{"text":" }"},{"text":" .dropConfiguration { dropSession in"},{"text":" if dropSession.suggestedOperations.contains(.move) {"},{"text":" return DropConfiguration(operation: .move)"},{"text":" }"},{"text":" return DropConfiguration(operation: .copy)"},{"text":" }"},{"text":""},{"text":"> Note: The closure that provides the configuration is called"},{"text":"frequently to allow specifying different operations for different drop"},{"text":"locations in a view. Do not perform any expensive calculations in it."},{"text":""},{"text":"- Parameter configuration: A value that describes the configuration"},{"text":"of a drop session."},{"text":"- Returns: A view that configures a drop session in a way, described"},{"text":"by the return value of the `configuration` parameter."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropConfiguration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"DropSession","preciseIdentifier":"s:7SwiftUI11DropSessionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"DropConfiguration","preciseIdentifier":"s:7SwiftUI17DropConfigurationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation, using the same"},{"text":"size and position as this view, handling dropped content with the given"},{"text":"closure."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true`"},{"text":" when the cursor is inside the area, and `false` when the cursor is"},{"text":" outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedTypes`. Return `true`"},{"text":" if the drop operation was successful; otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:isTargeted:perform:)"],"names":{"title":"onDrop(of:isTargeted:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation with the same size"},{"text":"and position as this view, handling dropped content and the drop"},{"text":"location with the given closure."},{"text":""},{"text":"The drop destination is the same size and position as this view."},{"text":""},{"text":"Make sure to start loading the contents of `NSItemProvider` instances"},{"text":"within the scope of the `action` closure. Do not perform loading asynchronously"},{"text":"on a different actor. Loading the contents may finish later, but it must start here."},{"text":"For security reasons, the drop receiver can access the dropped payload only before"},{"text":"this closure returns."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - isTargeted: A binding that updates when a drag and drop operation"},{"text":" enters or exits the drop target area. The binding's value is `true`"},{"text":" when the cursor is inside the area, and `false` when the cursor is"},{"text":" outside."},{"text":" - action: A closure that takes the dropped content and responds"},{"text":" appropriately. The first parameter to `action` contains the dropped"},{"text":" items, with types specified by `supportedTypes`. The second"},{"text":" parameter contains the drop location in this view's coordinate"},{"text":" space. Return `true` if the drop operation was successful;"},{"text":" otherwise, return `false`."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"isTargeted","declarationFragments":[{"kind":"identifier","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": (["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isTargeted"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"], "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrop(of:delegate:)"],"names":{"title":"onDrop(of:delegate:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines the destination for a drag and drop operation with the same size"},{"text":"and position as this view, with behavior controlled by the given"},{"text":"delegate."},{"text":""},{"text":"- Parameters:"},{"text":" - supportedTypes: The uniform type identifiers that describe the"},{"text":" types of content this view can accept through drag and drop."},{"text":" If the drag and drop operation doesn't contain any of the supported"},{"text":" types, then this drop destination doesn't activate and `isTargeted`"},{"text":" doesn't update."},{"text":" - delegate: A type that conforms to the `DropDelegate` protocol. You"},{"text":" have comprehensive control over drop behavior when you use a"},{"text":" delegate."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including support for ``DropSession`` — use"},{"text":"``View/dropDestination(for:isEnabled:action:)`` instead."},{"text":""},{"text":"- Returns: A view that provides a drop destination for a drag"},{"text":" operation of the specified types."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"supportedTypes","declarationFragments":[{"kind":"identifier","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"delegate","declarationFragments":[{"kind":"identifier","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"supportedTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"delegate"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"DropDelegate","preciseIdentifier":"s:7SwiftUI12DropDelegateP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Provide `UTType`s as the `supportedContentTypes` instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","invalidatableContent(_:)"],"names":{"title":"invalidatableContent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidatableContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Mark the receiver as their content might be invalidated."},{"text":""},{"text":"Use this modifier to annotate views that display values that are derived"},{"text":"from the current state of your data and might be invalidated in"},{"text":"response of, for example, user interaction."},{"text":""},{"text":"The view will change its appearance when"},{"text":"``RedactionReasons/invalidated`` is present in the environment."},{"text":""},{"text":"In an interactive widget a view is invalidated from the moment the user"},{"text":"interacts with a control on the widget to the moment when a new timeline"},{"text":"update has been presented."},{"text":""},{"text":"- Parameters:"},{"text":" - invalidatable: Whether the receiver content might be invalidated."}]},"functionSignature":{"parameters":[{"name":"invalidatable","declarationFragments":[{"kind":"identifier","spelling":"invalidatable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidatableContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"invalidatable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","findNavigator(isPresented:)"],"names":{"title":"findNavigator(isPresented:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findNavigator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Programmatically presents the find and replace interface for text"},{"text":"editor views."},{"text":""},{"text":"Add this modifier to a ``TextEditor``, or to a view hierarchy that"},{"text":"contains at least one text editor, to control the presentation of"},{"text":"the find and replace interface. When you set the `isPresented` binding"},{"text":"to `true`, the system shows the interface, and when you set it to"},{"text":"`false`, the system hides the interface. The following example shows"},{"text":"and hides the interface based on the state of a toolbar button:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":" .toolbar {"},{"text":" Toggle(isOn: $isPresented) {"},{"text":" Label(\"Find\", systemImage: \"magnifyingglass\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The find and replace interface allows people to search for instances"},{"text":"of a specified string in the text editor, and optionally to replace"},{"text":"instances of the search string with another string. They can also"},{"text":"show and hide the interface using built-in controls, like menus and"},{"text":"keyboard shortcuts. SwiftUI updates `isPresented` to reflect the"},{"text":"users's actions."},{"text":""},{"text":"If the text editor view isn't currently in focus, the system still"},{"text":"presents the find and replace interface when you set `isPresented`"},{"text":"to `true`. If the view hierarchy contains multiple editors, the one"},{"text":"that shows the find and replace interface is nondeterministic."},{"text":""},{"text":"You can disable the find and replace interface for a text editor by"},{"text":"applying the ``View/findDisabled(_:)`` modifier to the editor. If you"},{"text":"do that, setting this modifier's `isPresented` binding to `true` has"},{"text":"no effect, but only if the disabling modifier appears closer to the"},{"text":"text editor, like this:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"- Parameter isPresented: A binding to a Boolean value that controls the"},{"text":" presentation of the find and replace interface."},{"text":""},{"text":"- Returns: A view that presents the find and replace interface when"},{"text":" `isPresented` is `true`."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findNavigator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","findDisabled(_:)"],"names":{"title":"findDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents find and replace operations in a text editor."},{"text":""},{"text":"Add this modifier to ensure that people can't activate the find"},{"text":"and replace interface for a ``TextEditor``:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled()"},{"text":""},{"text":"When you disable the find operation, you also implicitly disable the"},{"text":"replace operation. If you want to only disable replace, use"},{"text":"``View/replaceDisabled(_:)`` instead."},{"text":""},{"text":"Using this modifer also prevents programmatic find and replace"},{"text":"interface presentation using the ``View/findNavigator(isPresented:)``"},{"text":"method. Be sure to place the disabling modifier closer to the text"},{"text":"editor for this to work:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .findDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"If you apply this modifer at multiple levels of a view hierarchy,"},{"text":"the call closest to the text editor takes precedence. For example,"},{"text":"people can activate find and replace for the first text editor"},{"text":"in the following example, but not the second:"},{"text":""},{"text":" VStack {"},{"text":" TextEditor(text: $text1)"},{"text":" .findDisabled(false)"},{"text":" TextEditor(text: $text2)"},{"text":" }"},{"text":" .findDisabled(true)"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether to"},{"text":" disable the find and replace interface for a text editor."},{"text":""},{"text":"- Returns: A view that disables the find and replace interface."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"findDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","replaceDisabled(_:)"],"names":{"title":"replaceDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"replaceDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents replace operations in a text editor."},{"text":""},{"text":"Add this modifier to ensure that people can't activate the replace"},{"text":"feature of a find and replace interface for a ``TextEditor``:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .replaceDisabled()"},{"text":""},{"text":"If you want to disable both find and replace, use the"},{"text":"``View/findDisabled(_:)`` modifier instead."},{"text":""},{"text":"Using this modifer also disables the replace feature of a find and"},{"text":"replace interface that you present programmatically using the"},{"text":"``View/findNavigator(isPresented:)`` method. Be sure to place the"},{"text":"disabling modifier closer to the text editor for this to work:"},{"text":""},{"text":" TextEditor(text: $text)"},{"text":" .replaceDisabled(isDisabled)"},{"text":" .findNavigator(isPresented: $isPresented)"},{"text":""},{"text":"If you apply this modifer at multiple levels of a view hierarchy,"},{"text":"the call closest to the text editor takes precedence. For example,"},{"text":"people can activate find and replace for the first text editor"},{"text":"in the following example, but only find for the second:"},{"text":""},{"text":" VStack {"},{"text":" TextEditor(text: $text1)"},{"text":" .replaceDisabled(false)"},{"text":" TextEditor(text: $text2)"},{"text":" }"},{"text":" .replaceDisabled(true)"},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether text"},{"text":" replacement in the find and replace interface is disabled."},{"text":""},{"text":"- Returns: A view that disables the replace feature of a find and"},{"text":" replace interface."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"replaceDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","symbolEffectsRemoved(_:)"],"names":{"title":"symbolEffectsRemoved(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffectsRemoved"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Returns a new view with its inherited symbol image effects"},{"text":"either removed or left unchanged."},{"text":""},{"text":"The following example adds a repeating pulse effect to two"},{"text":"symbol images, but then disables the effect on one of them:"},{"text":""},{"text":" VStack {"},{"text":" Image(systemName: \"bolt.slash.fill\") // does not pulse"},{"text":" .symbolEffectsRemoved()"},{"text":" Image(systemName: \"folder.fill.badge.person.crop\") // pulses"},{"text":" }"},{"text":" .symbolEffect(.pulse)"},{"text":""},{"text":"- Parameter isEnabled: Whether to remove inherited symbol"},{"text":" effects or not."},{"text":""},{"text":"- Returns: a copy of the view with its symbol effects either"},{"text":" removed or left unchanged."}]},"functionSignature":{"parameters":[{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbolEffectsRemoved"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","userActivity(_:isActive:_:)"],"names":{"title":"userActivity(_:isActive:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Advertises a user activity type."},{"text":""},{"text":"You can use `userActivity(_:isActive:_:)` to start, stop, or modify the"},{"text":"advertisement of a specific type of user activity."},{"text":""},{"text":"The scope of the activity applies only to the scene or window the"},{"text":"view is in."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity to advertise."},{"text":" - isActive: When `false`, avoids advertising the activity. Defaults"},{"text":" to `true`."},{"text":" - update: A function that modifies the passed-in activity for"},{"text":" advertisement."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isActive","declarationFragments":[{"kind":"identifier","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"update","declarationFragments":[{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isActive"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"update"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","userActivity(_:element:_:)"],"names":{"title":"userActivity(_:element:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Advertises a user activity type."},{"text":""},{"text":"The scope of the activity applies only to the scene or window the"},{"text":"view is in."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity to advertise."},{"text":" - element: If the element is `nil`, the handler will not be"},{"text":" associated with the activity (and if there are no handlers, no"},{"text":" activity is advertised). The method passes the non-`nil` element to"},{"text":" the handler as a convenience so the handlers don't all need to"},{"text":" implement an early exit with"},{"text":" `guard element = element else { return }`."},{"text":" - update: A function that modifies the passed-in activity for"},{"text":" advertisement."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"element","declarationFragments":[{"kind":"identifier","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?"}]},{"name":"update","declarationFragments":[{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"P","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"userActivity"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"element"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"update"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinueUserActivity(_:perform:)"],"names":{"title":"onContinueUserActivity(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinueUserActivity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Registers a handler to invoke in response to a user activity that your"},{"text":"app receives."},{"text":""},{"text":"Use this view modifier to receive"},{"text":""},{"text":"instances in a particular scene within your app. The scene that SwiftUI"},{"text":"routes the incoming user activity to depends on the structure of your"},{"text":"app, what scenes are active, and other configuration. For more"},{"text":"information, see ``Scene/handlesExternalEvents(matching:)``."},{"text":""},{"text":"UI frameworks traditionally pass Universal Links to your app using a"},{"text":"user activity. However, SwiftUI passes a Universal Link to your app"},{"text":"directly as a URL. To receive a Universal Link, use the"},{"text":"``View/onOpenURL(perform:)`` modifier instead."},{"text":""},{"text":"- Parameters:"},{"text":" - activityType: The type of activity that the `action` closure"},{"text":" handles. Be sure that this string matches one of the values that"},{"text":" you list in the"},{"text":" "},{"text":" array in your app's Information Property List."},{"text":" - action: A closure that SwiftUI calls when your app receives a user"},{"text":" activity of the specified type. The closure takes the activity as"},{"text":" an input parameter."},{"text":""},{"text":"- Returns: A view that handles incoming user activities."}]},"functionSignature":{"parameters":[{"name":"activityType","declarationFragments":[{"kind":"identifier","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinueUserActivity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activityType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NSUserActivity","preciseIdentifier":"c:objc(cs)NSUserActivity"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onOpenURL(perform:)"],"names":{"title":"onOpenURL(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Registers a handler to invoke in response to a URL that your app"},{"text":"receives."},{"text":""},{"text":"Use this view modifier to receive URLs in a particular scene within your"},{"text":"app. The scene that SwiftUI routes the incoming URL to depends on the"},{"text":"structure of your app, what scenes are active, and other configuration."},{"text":"For more information, see ``Scene/handlesExternalEvents(matching:)``."},{"text":""},{"text":"UI frameworks traditionally pass Universal Links to your app using an"},{"text":"."},{"text":"However, SwiftUI passes a Universal Link to your app directly as a URL,"},{"text":"which you receive using this modifier. To receive other user activities,"},{"text":"like when your app participates in Handoff, use the"},{"text":"``View/onContinueUserActivity(_:perform:)`` modifier instead."},{"text":""},{"text":"For more information about linking into your app, see"},{"text":"."},{"text":""},{"text":"- Parameter action: A closure that SwiftUI calls when your app receives"},{"text":" a Universal Link or a custom"},{"text":" ."},{"text":" The closure takes the URL as an input parameter."},{"text":""},{"text":"- Returns: A view that handles incoming URLs."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onOpenURL"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> ()) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","handlesExternalEvents(preferring:allowing:)"],"names":{"title":"handlesExternalEvents(preferring:allowing:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handlesExternalEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the external events that the view's scene handles"},{"text":"if the scene is already open."},{"text":""},{"text":"Apply this modifier to a view to indicate whether an open scene that"},{"text":"contains the view handles specified user activities or URLs that your"},{"text":"app receives. Specify two sets of string identifiers to distinguish"},{"text":"between the kinds of events that the scene _prefers_ to handle"},{"text":"and those that it _can_ handle. You can dynamically update the"},{"text":"identifiers in each set to reflect changing app state."},{"text":""},{"text":"When your app receives an event on a platform that supports multiple"},{"text":"simultaneous scenes, SwiftUI sends the event to the first"},{"text":"open scene it finds that prefers to handle the event. Otherwise,"},{"text":"it sends the event to the first open scene it finds that can handle"},{"text":"the event. If it finds neither --- including when you don't add"},{"text":"this view modifier --- SwiftUI creates a new scene for the event."},{"text":""},{"text":"> Important: Don't confuse this view modifier with the"},{"text":" ``Scene/handlesExternalEvents(matching:)`` _scene_ modifier. You use"},{"text":" the view modifier to indicate that an open scene handles certain"},{"text":" events, whereas you use the scene modifier to help SwiftUI choose a"},{"text":" new scene to open when no open scene handles the event."},{"text":""},{"text":"On platforms that support only a single scene, SwiftUI ignores this"},{"text":"modifier and sends all external events to the one open scene."},{"text":""},{"text":"### Matching an event"},{"text":""},{"text":"To find an open scene that handles a particular external event, SwiftUI"},{"text":"compares a property of the event against the strings that you specify"},{"text":"in the `preferring` and `allowing` sets. SwiftUI examines the"},{"text":"following event properties to perform the comparison:"},{"text":""},{"text":"* For an"},{"text":" ,"},{"text":" like when your app handles Handoff, SwiftUI uses the activity's"},{"text":" "},{"text":" property, or if that's `nil`, its"},{"text":" "},{"text":" property rendered as an"},{"text":" ."},{"text":"* For a"},{"text":" ,"},{"text":" like when another process opens a URL that your app handles,"},{"text":" SwiftUI uses the URL's"},{"text":" ."},{"text":""},{"text":"For both parameter sets, an empty set of strings never matches."},{"text":"Similarly, empty strings never match. Conversely, as a special case,"},{"text":"the string that contains only an asterisk (`*`) matches anything."},{"text":"The modifier performs string comparisons that are case and"},{"text":"diacritic insensitive."},{"text":""},{"text":"If you specify multiple instances of this view modifier inside a single"},{"text":"scene, the scene uses the union of the respective `preferring` and"},{"text":"`allowing` sets from all the modifiers."},{"text":""},{"text":"### Handling a user activity in an open scene"},{"text":""},{"text":"As an example, the following view --- which participates in Handoff"},{"text":"through the ``View/userActivity(_:isActive:_:)`` and"},{"text":"``View/onContinueUserActivity(_:perform:)`` methods --- updates its"},{"text":"`preferring` set according to the current selection. The enclosing"},{"text":"scene prefers to handle an event for a contact that's already selected,"},{"text":"but doesn't volunteer itself as a preferred scene when no contact is"},{"text":"selected:"},{"text":""},{"text":" private struct ContactList: View {"},{"text":" var store: ContactStore"},{"text":" @State private var selectedContact: UUID?"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" List(store.contacts, selection: $selectedContact) { contact in"},{"text":" NavigationLink(contact.name) {"},{"text":" Text(contact.name)"},{"text":" }"},{"text":" }"},{"text":" } detail: {"},{"text":" Text(\"Select a contact\")"},{"text":" }"},{"text":" .handlesExternalEvents("},{"text":" preferring: selectedContact == nil"},{"text":" ? []"},{"text":" : [selectedContact!.uuidString],"},{"text":" allowing: selectedContact == nil"},{"text":" ? [\"*\"]"},{"text":" : []"},{"text":" )"},{"text":" .onContinueUserActivity(Contact.userActivityType) { activity in"},{"text":" if let identifier = activity.targetContentIdentifier {"},{"text":" selectedContact = UUID(uuidString: identifier)"},{"text":" }"},{"text":" }"},{"text":" .userActivity("},{"text":" Contact.userActivityType,"},{"text":" isActive: selectedContact != nil"},{"text":" ) { activity in"},{"text":" activity.title = \"Contact\""},{"text":" activity.targetContentIdentifier = selectedContact?.uuidString"},{"text":" activity.isEligibleForHandoff = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The above code also updates the `allowing` set to indicate that the"},{"text":"scene can handle any incoming event when there's no current selection,"},{"text":"but that it can't handle any event if the view already displays a"},{"text":"contact. The `preferring` set takes precedence in the special case"},{"text":"where the incoming event exactly matches the currently selected contact."},{"text":""},{"text":"- Parameters:"},{"text":" - preferring: A set of strings that SwiftUI compares against the"},{"text":" incoming user activity or URL to see if the view's"},{"text":" scene prefers to handle the external event."},{"text":" - allowing: A set of strings that SwiftUI compares against the"},{"text":" incoming user activity or URL to see if the view's"},{"text":" scene can handle the exernal event."},{"text":""},{"text":"- Returns: A view whose enclosing scene --- if already open ---"},{"text":" handles incoming external events."}]},"functionSignature":{"parameters":[{"name":"preferring","declarationFragments":[{"kind":"identifier","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"allowing","declarationFragments":[{"kind":"identifier","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"handlesExternalEvents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"preferring"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"> Note: On macOS, if the view does not have an action and it has been"},{"text":" made into a container with ``accessibilityElement(children: .contain)``,"},{"text":" this will be used to describe the container. For example, if the"},{"text":" container is for a graph, the hint could be \"graph\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hintKey: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hintKey","declarationFragments":[{"kind":"identifier","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:isEnabled:)"],"names":{"title":"accessibilityHint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"- Parameters:"},{"text":" - hint: The accessibility hint to apply."},{"text":" - isEnabled: If true the accessibility hint is applied; otherwise the"},{"text":" accessibility hint is unchanged."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."},{"text":""},{"text":"> Note: On macOS, if the view does not have an action and it has been"},{"text":" made into a container with ``accessibilityElement(children: .contain)``,"},{"text":" this will be used to describe the container. For example, if the"},{"text":" container is for a graph, the hint could be \"graph\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hintKey","declarationFragments":[{"kind":"identifier","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hintKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHint(_:)"],"names":{"title":"accessibilityHint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Communicates to the user what happens after performing the view's"},{"text":"action."},{"text":""},{"text":"Provide a hint in the form of a brief phrase, like \"Purchases the item\""},{"text":"or \"Downloads the attachment\"."}]},"functionSignature":{"parameters":[{"name":"hint","declarationFragments":[{"kind":"identifier","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onReceive(_:perform:)"],"names":{"title":"onReceive(_:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onReceive"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view detects data emitted by the"},{"text":"given publisher."},{"text":""},{"text":"- Parameters:"},{"text":" - publisher: The publisher to subscribe to."},{"text":" - action: The action to perform when an event is emitted by"},{"text":" `publisher`. The event emitted by publisher is passed as a"},{"text":" parameter to `action`."},{"text":""},{"text":"- Returns: A view that triggers `action` when `publisher` emits an"},{"text":" event."}]},"functionSignature":{"parameters":[{"name":"publisher","declarationFragments":[{"kind":"identifier","spelling":"publisher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"P","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"P","rhs":"Publisher","rhsPrecise":"s:7Combine9PublisherP"},{"kind":"sameType","lhs":"P.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onReceive"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"publisher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Output","preciseIdentifier":"s:7Combine9PublisherP6OutputQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Publisher","preciseIdentifier":"s:7Combine9PublisherP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:7Combine9PublisherP7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuStyle(_:)"],"names":{"title":"menuStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for menus within this view."},{"text":""},{"text":"To set a specific style for all menu instances within a view, use the"},{"text":"`menuStyle(_:)` modifier:"},{"text":""},{"text":" Menu(\"PDF\") {"},{"text":" Button(\"Open in Preview\", action: openInPreview)"},{"text":" Button(\"Save as PDF\", action: saveAsPDF)"},{"text":" }"},{"text":" .menuStyle(ButtonMenuStyle())"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"MenuStyle","rhsPrecise":"s:7SwiftUI9MenuStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"MenuStyle","preciseIdentifier":"s:7SwiftUI9MenuStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","flipsForRightToLeftLayoutDirection(_:)"],"names":{"title":"flipsForRightToLeftLayoutDirection(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flipsForRightToLeftLayoutDirection"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether this view mirrors its contents horizontally when the layout"},{"text":"direction is right-to-left."},{"text":""},{"text":"Use `flipsForRightToLeftLayoutDirection(_:)` when you need the system to"},{"text":"horizontally mirror the contents of the view when presented in"},{"text":"a right-to-left layout."},{"text":""},{"text":"To override the layout direction for a specific view, use the"},{"text":"``View/environment(_:_:)`` view modifier to explicitly override"},{"text":"the ``EnvironmentValues/layoutDirection`` environment value for"},{"text":"the view."},{"text":""},{"text":"- Parameter enabled: A Boolean value that indicates whether this view"},{"text":" should have its content flipped horizontally when the layout"},{"text":" direction is right-to-left. By default, views will adjust their layouts"},{"text":" automatically in a right-to-left context and do not need to be mirrored."},{"text":""},{"text":"- Returns: A view that conditionally mirrors its contents"},{"text":" horizontally when the layout direction is right-to-left."}]},"functionSignature":{"parameters":[{"name":"enabled","declarationFragments":[{"kind":"identifier","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flipsForRightToLeftLayoutDirection"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"enabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textEditorStyle(_:)"],"names":{"title":"textEditorStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textEditorStyle"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for text editors within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some TextEditorStyle","rhs":"TextEditorStyle","rhsPrecise":"s:7SwiftUI15TextEditorStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textEditorStyle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"TextEditorStyle","preciseIdentifier":"s:7SwiftUI15TextEditorStyleP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toggleStyle(_:)"],"names":{"title":"toggleStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toggleStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for toggles in a view hierarchy."},{"text":""},{"text":"Use this modifier on a ``Toggle`` instance to set a style that defines"},{"text":"the control's appearance and behavior. For example, you can choose"},{"text":"the ``ToggleStyle/switch`` style:"},{"text":""},{"text":" Toggle(\"Vibrate on Ring\", isOn: $vibrateOnRing)"},{"text":" .toggleStyle(.switch)"},{"text":""},{"text":"Built-in styles typically have a similar appearance across platforms,"},{"text":"tailored to the platform's overall style:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of the text Vibrate on Ring appearing to the left of a toggle switch that's on. The toggle's tint color is green. The toggle and its text appear in a rounded rectangle.](View-toggleStyle-1-iOS) |"},{"text":"| macOS | ![A screenshot of the text Vibrate on Ring appearing to the left of a toggle switch that's on. The toggle's tint color is blue. The toggle and its text appear on a neutral background.](View-toggleStyle-1-macOS) |"},{"text":""},{"text":"### Styling toggles in a hierarchy"},{"text":""},{"text":"You can set a style for all toggle instances within a view hierarchy"},{"text":"by applying the style modifier to a container view. For example, you"},{"text":"can apply the ``ToggleStyle/button`` style to an ``HStack``:"},{"text":""},{"text":" HStack {"},{"text":" Toggle(isOn: $isFlagged) {"},{"text":" Label(\"Flag\", systemImage: \"flag.fill\")"},{"text":" }"},{"text":" Toggle(isOn: $isMuted) {"},{"text":" Label(\"Mute\", systemImage: \"speaker.slash.fill\")"},{"text":" }"},{"text":" }"},{"text":" .toggleStyle(.button)"},{"text":""},{"text":"The example above has the following appearance when `isFlagged` is"},{"text":"`true` and `isMuted` is `false`:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of two buttons arranged horizontally. The first has the image of a flag and is active with a blue tint. The second has an image of a speaker with a line through it and is inactive with a neutral tint.](View-toggleStyle-2-iOS) |"},{"text":"| macOS | ![A screenshot of two buttons arranged horizontally. The first has the image of a flag and is active with a blue tint. The second has an image of a speaker with a line through it and is inactive with a neutral tint.](View-toggleStyle-2-macOS) |"},{"text":""},{"text":"### Automatic styling"},{"text":""},{"text":"If you don't set a style, SwiftUI assumes a value of"},{"text":"``ToggleStyle/automatic``, which corresponds to a context-specific"},{"text":"default. Specify the automatic style explicitly to override a"},{"text":"container's style and revert to the default:"},{"text":""},{"text":" HStack {"},{"text":" Toggle(isOn: $isShuffling) {"},{"text":" Label(\"Shuffle\", systemImage: \"shuffle\")"},{"text":" }"},{"text":" Toggle(isOn: $isRepeating) {"},{"text":" Label(\"Repeat\", systemImage: \"repeat\")"},{"text":" }"},{"text":""},{"text":" Divider()"},{"text":""},{"text":" Toggle(\"Enhance Sound\", isOn: $isEnhanced)"},{"text":" .toggleStyle(.automatic) // Revert to the default style."},{"text":" }"},{"text":" .toggleStyle(.button) // Use button style for toggles in the stack."},{"text":" .labelStyle(.iconOnly) // Omit the title from any labels."},{"text":""},{"text":"The style that SwiftUI uses as the default depends on both the platform"},{"text":"and the context. In macOS, the default in most contexts is a"},{"text":"``ToggleStyle/checkbox``, while in iOS, the default toggle style is a"},{"text":"``ToggleStyle/switch``:"},{"text":""},{"text":"| Platform | Appearance |"},{"text":"|-------------|------------|"},{"text":"| iOS, iPadOS | ![A screenshot of several horizontally arranged items: two buttons, a vertical divider line, the text Enhance sound, and a switch. The first button has two right facing arrows that cross over in the middle and is active with a blue tint. The second button has one right and one left facing arrow and is inactive with neutral tint. The switch is on and has a green tint.](View-toggleStyle-3-iOS) |"},{"text":"| macOS | ![A screenshot of several horizontally arranged items: two buttons, a vertical divider line, a checkbox, and the text Enhance sound. The first button has two right facing arrows that cross over in the middle and is active with a blue tint. The second button has one right and one left facing arrow and is inactive with a neutral tint. The check box is checked and has a blue tint.](View-toggleStyle-3-macOS) |"},{"text":""},{"text":"> Note: Like toggle style does for toggles, the ``View/labelStyle(_:)``"},{"text":"modifier sets the style for ``Label`` instances in the hierarchy. The"},{"text":"example above demostrates the compact ``LabelStyle/iconOnly`` style,"},{"text":"which is useful for button toggles in space-constrained contexts."},{"text":"Always include a descriptive title for better accessibility."},{"text":""},{"text":"For more information about how SwiftUI chooses a default toggle style,"},{"text":"see the ``ToggleStyle/automatic`` style."},{"text":""},{"text":"- Parameter style: The toggle style to set. Use one of the built-in"},{"text":" values, like ``ToggleStyle/switch`` or ``ToggleStyle/button``,"},{"text":" or a custom style that you define by creating a type that conforms"},{"text":" to the ``ToggleStyle`` protocol."},{"text":""},{"text":"- Returns: A view that uses the specified toggle style for itself"},{"text":" and its child views."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ToggleStyle","rhsPrecise":"s:7SwiftUI11ToggleStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toggleStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToggleStyle","preciseIdentifier":"s:7SwiftUI11ToggleStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputAutocapitalization(_:)"],"names":{"title":"textInputAutocapitalization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputAutocapitalization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets how often the shift key in the keyboard is automatically enabled."},{"text":""},{"text":"Use `textInputAutocapitalization(_:)` when you need to automatically"},{"text":"capitalize words, sentences, or other text like proper nouns."},{"text":""},{"text":"In example below, as the user enters text the shift key is"},{"text":"automatically enabled before every word:"},{"text":""},{"text":" TextField(\"Last, First\", text: $fullName)"},{"text":" .textInputAutocapitalization(.words)"},{"text":""},{"text":"The ``TextInputAutocapitalization`` struct defines the available"},{"text":"autocapitalizing behavior. Providing `nil` to this view modifier does"},{"text":"not change the autocapitalization behavior. The default is"},{"text":"``TextInputAutocapitalization.sentences``."},{"text":""},{"text":"- Parameter autocapitalization: One of the capitalizing behaviors"},{"text":"defined in the ``TextInputAutocapitalization`` struct or nil."}]},"functionSignature":{"parameters":[{"name":"autocapitalization","declarationFragments":[{"kind":"identifier","spelling":"autocapitalization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputAutocapitalization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"autocapitalization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputAutocapitalization","preciseIdentifier":"s:7SwiftUI27TextInputAutocapitalizationV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8disabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disabled(_:)"],"names":{"title":"disabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUICore","lines":[{"text":"Adds a condition that controls whether users can interact with this"},{"text":"view."},{"text":""},{"text":"The higher views in a view hierarchy can override the value you set on"},{"text":"this view. In the following example, the button isn't interactive"},{"text":"because the outer `disabled(_:)` modifier overrides the inner one:"},{"text":""},{"text":" HStack {"},{"text":" Button(Text(\"Press\")) {}"},{"text":" .disabled(false)"},{"text":" }"},{"text":" .disabled(true)"},{"text":""},{"text":"- Parameter disabled: A Boolean value that determines whether users can"},{"text":" interact with this view."},{"text":""},{"text":"- Returns: A view that controls whether users can interact with this"},{"text":" view."}]},"functionSignature":{"parameters":[{"name":"disabled","declarationFragments":[{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"disabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onInteractiveResizeChange(_:)"],"names":{"title":"onInteractiveResizeChange(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onInteractiveResizeChange"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the enclosing window is being"},{"text":"interactively resized."},{"text":""},{"text":"Use this modifier to adjust how your view behaves when a window is in"},{"text":"the process of being resized by the user. The action provided to this"},{"text":"modifier will be called when the resize action begins and ends."},{"text":""},{"text":"For example, you can adjust the frame rate of a custom Metal renderer"},{"text":"during interactive resize:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var renderer: MetalRenderer"},{"text":" var body: some View {"},{"text":" MetalRepresentable(renderer: renderer)"},{"text":" .onInteractiveResizeChange { isResizing in"},{"text":" // Let the renderer know the window is being actively"},{"text":" // resized, so that it can adjust frame rate,"},{"text":" // pause animations, etc."},{"text":" renderer.handleWindowResize(isResizing: isResizing)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - action: A closure to run when the state of the window's"},{"text":" interactive resize changes."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onInteractiveResizeChange"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","indexViewStyle(_:)"],"names":{"title":"indexViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"indexViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for the index view within the current environment."},{"text":""},{"text":"- Parameter style: The style to apply to this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"IndexViewStyle","rhsPrecise":"s:7SwiftUI14IndexViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"indexViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"IndexViewStyle","preciseIdentifier":"s:7SwiftUI14IndexViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewStyle(_:)"],"names":{"title":"tabViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for the tab view within the current environment."},{"text":""},{"text":"- Parameter style: The style to apply to this tab view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TabViewStyle","rhsPrecise":"s:7SwiftUI12TabViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TabViewStyle","preciseIdentifier":"s:7SwiftUI12TabViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","disclosureGroupStyle(_:)"],"names":{"title":"disclosureGroupStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disclosureGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for disclosure groups within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"DisclosureGroupStyle","rhsPrecise":"s:7SwiftUI20DisclosureGroupStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"disclosureGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DisclosureGroupStyle","preciseIdentifier":"s:7SwiftUI20DisclosureGroupStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onContinuousHover(coordinateSpace:perform:)"],"names":{"title":"onContinuousHover(coordinateSpace:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the pointer enters, moves within, and"},{"text":"exits the view's bounds."},{"text":""},{"text":"Use this modifier to define a region for detecting pointer movement with"},{"text":"a view. The following example updates a small rectangle's position"},{"text":"and style by modifying `hoverLocation` and `isHovering` as the pointer"},{"text":"moves within the larger, red rectangle:"},{"text":""},{"text":" @State private var hoverLocation: CGPoint = .zero"},{"text":" @State private var isHovering = false"},{"text":""},{"text":" var body: some View {"},{"text":" Color.red"},{"text":" .frame(width: 400, height: 400)"},{"text":" .onContinuousHover { phase in"},{"text":" switch phase {"},{"text":" case .active(let location):"},{"text":" hoverLocation = location"},{"text":" isHovering = true"},{"text":" case .ended:"},{"text":" isHovering = false"},{"text":" }"},{"text":" }"},{"text":" .overlay {"},{"text":" Rectangle()"},{"text":" .frame(width: 50, height: 50)"},{"text":" .foregroundStyle(isHovering ? .green : .blue)"},{"text":" .offset(x: hoverLocation.x, y: hoverLocation.y)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - coordinateSpace: The coordinate space for the"},{"text":" location values. The default value is ``CoordinateSpace/local``."},{"text":" - action: The action to perform whenever the pointer enters,"},{"text":" moves within, or exits the view's bounds. The closure takes"},{"text":" a `phase` input that has the value ``HoverPhase/active(_:)`` and"},{"text":" contains the pointer's coordinates if the pointer is within the"},{"text":" view's bounds. The closure receives the ``HoverPhase/ended``"},{"text":" phase when the pointer leaves the view's bounds."},{"text":""},{"text":"- Returns: A view that calls `action` when the pointer enters,"},{"text":" moves within, or exits the view's bounds."}]},"functionSignature":{"parameters":[{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onContinuousHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HoverPhase","preciseIdentifier":"s:7SwiftUI10HoverPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(name:priority:file:line:_:)"],"names":{"title":"task(name:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous task to perform before this view appears."},{"text":""},{"text":"Use this modifier to perform an asynchronous task with a lifetime that"},{"text":"matches that of the modified view. If the task doesn't finish"},{"text":"before SwiftUI removes the view or the view changes identity, SwiftUI"},{"text":"cancels the task."},{"text":""},{"text":"Use the `await` keyword inside the task to"},{"text":"wait for an asynchronous call to complete, or to wait on the values of"},{"text":"an "},{"text":"instance. For example, you can modify a ``Text`` view to start a task"},{"text":"that loads content from a remote resource:"},{"text":""},{"text":" let url = URL(string: \"https://example.com\")!"},{"text":" @State private var message = \"Loading...\""},{"text":""},{"text":" var body: some View {"},{"text":" Text(message)"},{"text":" .task {"},{"text":" do {"},{"text":" var receivedLines = [String]()"},{"text":" for try await line in url.lines {"},{"text":" receivedLines.append(line)"},{"text":" message = \"Received \\(receivedLines.count) lines\""},{"text":" }"},{"text":" } catch {"},{"text":" message = \"Failed to load\""},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to get the content stored at the specified"},{"text":" as an"},{"text":"asynchronous sequence of strings. When each new line arrives, the body"},{"text":"of the `for`-`await`-`in` loop stores the line in an array of strings"},{"text":"and updates the content of the text view to report the latest line"},{"text":"count."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI will automatically cancel the task"},{"text":" at some point after the view disappears before the action completes."},{"text":""},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(name:executorPreference:priority:file:line:action:)"],"names":{"title":"task(name:executorPreference:priority:file:line:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous task to perform before this view appears."},{"text":""},{"text":"Use this modifier to perform an asynchronous task with a lifetime that"},{"text":"matches that of the modified view. If the task doesn't finish"},{"text":"before SwiftUI removes the view or the view changes identity, SwiftUI"},{"text":"cancels the task."},{"text":""},{"text":"Use the `await` keyword inside the task to"},{"text":"wait for an asynchronous call to complete, or to wait on the values of"},{"text":"an "},{"text":"instance. For example, you can modify a ``Text`` view to start a task"},{"text":"that loads content from a remote resource:"},{"text":""},{"text":" let url = URL(string: \"https://example.com\")!"},{"text":" @State private var message = \"Loading...\""},{"text":""},{"text":" var body: some View {"},{"text":" Text(message)"},{"text":" .task {"},{"text":" do {"},{"text":" var receivedLines = [String]()"},{"text":" for try await line in url.lines {"},{"text":" receivedLines.append(line)"},{"text":" message = \"Received \\(receivedLines.count) lines\""},{"text":" }"},{"text":" } catch {"},{"text":" message = \"Failed to load\""},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to get the content stored at the specified"},{"text":" as an"},{"text":"asynchronous sequence of strings. When each new line arrives, the body"},{"text":"of the `for`-`await`-`in` loop stores the line in an array of strings"},{"text":"and updates the content of the text view to report the latest line"},{"text":"count."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`."},{"text":" - taskExecutor: The task executor that the child task should be"},{"text":" started on and keep using."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI will automatically cancel the task"},{"text":" at some point after the view disappears before the action completes."},{"text":""},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears."}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"executorPreference","internalName":"taskExecutor","declarationFragments":[{"kind":"identifier","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":4}},{"domain":"macOS","introduced":{"major":26,"minor":4}},{"domain":"tvOS","introduced":{"major":26,"minor":4}},{"domain":"visionOS","introduced":{"major":26,"minor":4}},{"domain":"watchOS","introduced":{"major":26,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(id:name:priority:file:line:_:)"],"names":{"title":"task(id:name:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a task to perform before this view appears or when a specified"},{"text":"value changes."},{"text":""},{"text":"This method behaves like ``View/task(priority:_:)``, except that it also"},{"text":"cancels and recreates the task when a specified value changes. To detect"},{"text":"a change, the modifier tests whether a new value for the `id` parameter"},{"text":"equals the previous value. For this to work,"},{"text":"the value's type must conform to the"},{"text":" protocol."},{"text":""},{"text":"For example, if you define an equatable `Server` type that posts custom"},{"text":"notifications whenever its state changes --- for example, from _signed"},{"text":"out_ to _signed in_ --- you can use the task modifier to update"},{"text":"the contents of a ``Text`` view to reflect the state of the"},{"text":"currently selected server:"},{"text":""},{"text":" Text(status ?? \"Signed Out\")"},{"text":" .task(id: server) {"},{"text":" let sequence = NotificationCenter.default.notifications("},{"text":" named: .didUpdateStatus,"},{"text":" object: server"},{"text":" ).compactMap {"},{"text":" $0.userInfo?[\"status\"] as? String"},{"text":" }"},{"text":" for await value in sequence {"},{"text":" status = value"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to create an asynchronous sequence of notifications, given by an"},{"text":""},{"text":"instance. The example then maps the notification sequence to a sequence"},{"text":"of strings that correspond to values stored with each notification."},{"text":""},{"text":"Elsewhere, the server defines a custom `didUpdateStatus` notification:"},{"text":""},{"text":" extension NSNotification.Name {"},{"text":" static var didUpdateStatus: NSNotification.Name {"},{"text":" NSNotification.Name(\"didUpdateStatus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Whenever the server status changes, like after the user signs in, the"},{"text":"server posts a notification of this custom type:"},{"text":""},{"text":" let notification = Notification("},{"text":" name: .didUpdateStatus,"},{"text":" object: self,"},{"text":" userInfo: [\"status\": \"Signed In\"])"},{"text":" NotificationCenter.default.post(notification)"},{"text":""},{"text":"The task attached to the ``Text`` view gets and displays the status"},{"text":"value from the notification's user information dictionary. When the user"},{"text":"chooses a different server, SwiftUI cancels the task and creates a new"},{"text":"one, which then waits for notifications from the new server."},{"text":""},{"text":"The task is created by ``Task.immediate``. Its action begins execution"},{"text":"synchronously until it suspends at the first `await`."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The value to observe for changes. The value must conform"},{"text":" to the "},{"text":" protocol."},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default. This value is a no-op prior to iOS 26.4,"},{"text":" macOS 26.4, watchOS 26.4, tvOS 26.4, and visionOS 26.4."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI can automatically cancel the task"},{"text":" after the view disappears before the action completes. If the"},{"text":" `id` value changes, SwiftUI cancels and restarts the task."},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears, or restarts the task when the `id` value changes."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","task(id:name:executorPreference:priority:file:line:_:)"],"names":{"title":"task(id:name:executorPreference:priority:file:line:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a task to perform before this view appears or when a specified"},{"text":"value changes."},{"text":""},{"text":"This method behaves like ``View/task(priority:_:)``, except that it also"},{"text":"cancels and recreates the task when a specified value changes. To detect"},{"text":"a change, the modifier tests whether a new value for the `id` parameter"},{"text":"equals the previous value. For this to work,"},{"text":"the value's type must conform to the"},{"text":" protocol."},{"text":""},{"text":"For example, if you define an equatable `Server` type that posts custom"},{"text":"notifications whenever its state changes --- for example, from _signed"},{"text":"out_ to _signed in_ --- you can use the task modifier to update"},{"text":"the contents of a ``Text`` view to reflect the state of the"},{"text":"currently selected server:"},{"text":""},{"text":" Text(status ?? \"Signed Out\")"},{"text":" .task(id: server) {"},{"text":" let sequence = NotificationCenter.default.notifications("},{"text":" named: .didUpdateStatus,"},{"text":" object: server"},{"text":" ).compactMap {"},{"text":" $0.userInfo?[\"status\"] as? String"},{"text":" }"},{"text":" for await value in sequence {"},{"text":" status = value"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This example uses the"},{"text":""},{"text":"method to create an asynchronous sequence of notifications, given by an"},{"text":""},{"text":"instance. The example then maps the notification sequence to a sequence"},{"text":"of strings that correspond to values stored with each notification."},{"text":""},{"text":"Elsewhere, the server defines a custom `didUpdateStatus` notification:"},{"text":""},{"text":" extension NSNotification.Name {"},{"text":" static var didUpdateStatus: NSNotification.Name {"},{"text":" NSNotification.Name(\"didUpdateStatus\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Whenever the server status changes, like after the user signs in, the"},{"text":"server posts a notification of this custom type:"},{"text":""},{"text":" let notification = Notification("},{"text":" name: .didUpdateStatus,"},{"text":" object: self,"},{"text":" userInfo: [\"status\": \"Signed In\"])"},{"text":" NotificationCenter.default.post(notification)"},{"text":""},{"text":"The task attached to the ``Text`` view gets and displays the status"},{"text":"value from the notification's user information dictionary. When the user"},{"text":"chooses a different server, SwiftUI cancels the task and creates a new"},{"text":"one, which then waits for notifications from the new server."},{"text":""},{"text":"- Parameters:"},{"text":" - id: The value to observe for changes. The value must conform"},{"text":" to the "},{"text":" protocol."},{"text":" - name: Human readable name for the task. A name will be generated"},{"text":" if this argument is `nil`."},{"text":" - taskExecutor: The task executor that the child task should be"},{"text":" started on and keep using."},{"text":" - priority: The task priority to use when creating the asynchronous"},{"text":" task. The default priority is"},{"text":" ."},{"text":" - file: File name used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - line: Line number used in default task name. SwiftUI uses the callsite"},{"text":" of .task by default."},{"text":" - action: A closure that SwiftUI calls as an asynchronous task"},{"text":" before the view appears. SwiftUI can automatically cancel the task"},{"text":" after the view disappears before the action completes. If the"},{"text":" `id` value changes, SwiftUI cancels and restarts the task."},{"text":""},{"text":"- Returns: A view that runs the specified action asynchronously before"},{"text":" the view appears, or restarts the task when the `id` value changes."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"executorPreference","internalName":"taskExecutor","declarationFragments":[{"kind":"identifier","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"}]},{"name":"priority","declarationFragments":[{"kind":"identifier","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": @isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"task"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"executorPreference"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"taskExecutor"},{"kind":"text","spelling":": any "},{"kind":"typeIdentifier","spelling":"TaskExecutor","preciseIdentifier":"s:Sch"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"priority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TaskPriority","preciseIdentifier":"s:ScP"},{"kind":"text","spelling":" = .userInitiated, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"sending"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"@isolated(any) () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Equatable","preciseIdentifier":"s:SQ"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":4}},{"domain":"macOS","introduced":{"major":26,"minor":4}},{"domain":"tvOS","introduced":{"major":26,"minor":4}},{"domain":"visionOS","introduced":{"major":26,"minor":4}},{"domain":"watchOS","introduced":{"major":26,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","springLoadingBehavior(_:)"],"names":{"title":"springLoadingBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"springLoadingBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spring loading behavior this view."},{"text":""},{"text":"Spring loading refers to a view being activated during a drag and drop"},{"text":"interaction. On iOS this can occur when pausing briefly on top of a"},{"text":"view with dragged content. On macOS this can occur with similar brief"},{"text":"pauses or on pressure-sensitive systems by \"force clicking\" during the"},{"text":"drag. This has no effect on tvOS or watchOS."},{"text":""},{"text":"This is commonly used with views that have a navigation or presentation"},{"text":"effect, allowing the destination to be revealed without pausing the"},{"text":"drag interaction. For example, a button that reveals a list of folders"},{"text":"that a dragged item can be dropped onto."},{"text":""},{"text":" Button {"},{"text":" showFolders = true"},{"text":" } label: {"},{"text":" Label(\"Show Folders\", systemImage: \"folder\")"},{"text":" }"},{"text":" .springLoadingBehavior(.enabled)"},{"text":""},{"text":"Unlike `disabled(_:)`, this modifier overrides the value set by an"},{"text":"ancestor view rather than being unioned with it. For example, the below"},{"text":"button would allow spring loading:"},{"text":""},{"text":" HStack {"},{"text":" Button {"},{"text":" showFolders = true"},{"text":" } label: {"},{"text":" Label(\"Show Folders\", systemImage: \"folder\")"},{"text":" }"},{"text":" .springLoadingBehavior(.enabled)"},{"text":""},{"text":" ..."},{"text":" }"},{"text":" .springLoadingBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: Whether spring loading is enabled or not. If"},{"text":" unspecified, the default behavior is `.automatic.`"}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"springLoadingBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SpringLoadingBehavior","preciseIdentifier":"s:7SwiftUI21SpringLoadingBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A ``Text`` view representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: The key for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: Text resource for the localized prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchable(text:placement:prompt:)"],"names":{"title":"searchable(text:placement:prompt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Marks this view as searchable, which configures the display of a"},{"text":"search field."},{"text":""},{"text":"For more information about using searchable modifiers, see"},{"text":"."},{"text":""},{"text":"- Parameters:"},{"text":" - text: The text to display and edit in the search field."},{"text":" - placement: The preferred placement of the search field within the"},{"text":" containing view hierarchy."},{"text":" - prompt: A string representing the prompt of the search field"},{"text":" which provides users with guidance on what to search for."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"}]},{"name":"prompt","declarationFragments":[{"kind":"identifier","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SearchFieldPlacement","preciseIdentifier":"s:7SwiftUI20SearchFieldPlacementV"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"prompt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTransition(_:axis:transition:)"],"names":{"title":"scrollTransition(_:axis:transition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies the given transition, animating between the phases"},{"text":"of the transition as this view appears and disappears within the"},{"text":"visible region of the containing scroll view."},{"text":""},{"text":"- Parameters:"},{"text":" - configuration: The configuration controlling how the"},{"text":" transition will be applied. The configuration will be applied both"},{"text":" while the view is coming into view and while it is disappearing (the"},{"text":" transition is symmetrical)."},{"text":" - axis: The axis of the containing scroll view over which the"},{"text":" transition will be applied. The default value of `nil` uses the"},{"text":" axis of the innermost containing scroll view, or `.vertical` if"},{"text":" the innermost scroll view is scrollable along both axes."},{"text":" - transition: A closure that applies visual effects as a function of"},{"text":" the provided phase."}]},"functionSignature":{"parameters":[{"name":"configuration","declarationFragments":[{"kind":"identifier","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?"}]},{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"configuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":" = .interactive, "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollTransition(topLeading:bottomTrailing:axis:transition:)"],"names":{"title":"scrollTransition(topLeading:bottomTrailing:axis:transition:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies the given transition, animating between the phases"},{"text":"of the transition as this view appears and disappears within the"},{"text":"visible region of the containing scroll view."},{"text":""},{"text":"- Parameters:"},{"text":" - topLeading: The configuration that drives the transition when"},{"text":" the view is about to appear at the top edge of a vertical"},{"text":" scroll view, or the leading edge of a horizontal scroll view."},{"text":" - bottomTrailing: The configuration that drives the transition when"},{"text":" the view is about to appear at the bottom edge of a vertical"},{"text":" scroll view, or the trailing edge of a horizontal scroll view."},{"text":" - axis: The axis of the containing scroll view over which the"},{"text":" transition will be applied. The default value of `nil` uses the"},{"text":" axis of the innermost containing scroll view, or `.vertical` if"},{"text":" the innermost scroll view is scrollable along both axes."},{"text":" - transition: A closure that applies visual effects as a function of"},{"text":" the provided phase."}]},"functionSignature":{"parameters":[{"name":"topLeading","declarationFragments":[{"kind":"identifier","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"bottomTrailing","declarationFragments":[{"kind":"identifier","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"}]},{"name":"axis","declarationFragments":[{"kind":"identifier","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"?"}]},{"name":"transition","declarationFragments":[{"kind":"identifier","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some VisualEffect","rhs":"VisualEffect","rhsPrecise":"s:7SwiftUI12VisualEffectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollTransition"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"topLeading"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"bottomTrailing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ScrollTransitionConfiguration","preciseIdentifier":"s:7SwiftUI29ScrollTransitionConfigurationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"axis"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"transition"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"EmptyVisualEffect","preciseIdentifier":"s:7SwiftUI17EmptyVisualEffectV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ScrollTransitionPhase","preciseIdentifier":"s:7SwiftUI21ScrollTransitionPhaseO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"VisualEffect","preciseIdentifier":"s:7SwiftUI12VisualEffectP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter text: The explicit text value to use as a type select"},{"text":"equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter stringKey: The localized string key to use as a type select"},{"text":"equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"stringKey","declarationFragments":[{"kind":"identifier","spelling":"stringKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"stringKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter stringResource: The localized string resource to use as a"},{"text":"type select equivalent for a view in a collection."}]},"functionSignature":{"parameters":[{"name":"stringResource","declarationFragments":[{"kind":"identifier","spelling":"stringResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"stringResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","typeSelectEquivalent(_:)"],"names":{"title":"typeSelectEquivalent(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets an explicit type select equivalent text in a collection, such as"},{"text":"a list or table."},{"text":""},{"text":"By default, a type select equivalent is automatically derived from any"},{"text":"`Text` or `TextField` content in a list or table. In the below example,"},{"text":"type select can be used to select a person, even though no explicit"},{"text":"value has been set."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" Label {"},{"text":" Text(person.name)"},{"text":" } icon: {"},{"text":" person.avatar"},{"text":" }"},{"text":" }"},{"text":""},{"text":"An explicit type select value should be set when there is no textual"},{"text":"content or when a different value is desired compared to what's"},{"text":"displayed in the view. Explicit values also provide a more performant"},{"text":"for complex view types. In the below example, type select is explicitly"},{"text":"set to allow selection of views that otherwise only display an image."},{"text":""},{"text":" List(people, selection: $selectedPersonID) { person in"},{"text":" person.avatar"},{"text":" .accessibilityLabel(person.name)"},{"text":" .typeSelectEquivalent(person.name)"},{"text":" }"},{"text":""},{"text":"Setting an empty string value disables text selection for the view,"},{"text":"and a value of `nil` results in the view using its default value."},{"text":""},{"text":"- Parameter string: The string to use as a type select equivalent for a"},{"text":"view in a collection."}]},"functionSignature":{"parameters":[{"name":"string","declarationFragments":[{"kind":"identifier","spelling":"string"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"typeSelectEquivalent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"string"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onHover(perform:)"],"names":{"title":"onHover(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user moves the pointer over or away"},{"text":"from the view's frame."},{"text":""},{"text":"Calling this method defines a region for detecting pointer movement with"},{"text":"the size and position of this view."},{"text":""},{"text":"- Parameter action: The action to perform whenever the pointer enters or"},{"text":" exits this view's frame. If the pointer is in the view's frame, the"},{"text":" `action` closure passes `true` as a parameter; otherwise, `false`."},{"text":""},{"text":"- Returns: A view that triggers `action` when the pointer enters or"},{"text":" exits this view's frame."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onHover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSeparator(_:edges:)"],"names":{"title":"listRowSeparator(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the display mode for the separator associated with this specific row."},{"text":""},{"text":"Separators can be presented above and below a row. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter of the separator visibility."},{"text":""},{"text":"The following example shows a simple grouped list whose row separators"},{"text":"are hidden:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparator(.hidden)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the color of a row separators, use"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To hide or change the tint color for a section separators, use"},{"text":"``View/listSectionSeparator(_:edges:)`` and"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of this row's separators."},{"text":" - edges: The set of row edges for which this preference applies."},{"text":" The list style might already decide to not display separators for"},{"text":" some edges, typically the top edge. The default is"},{"text":" ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSeparatorTint(_:edges:)"],"names":{"title":"listRowSeparatorTint(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint color associated with a row."},{"text":""},{"text":"Separators can be presented above and below a row. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter for the separator tint."},{"text":""},{"text":"The following example shows a simple grouped list whose row separators"},{"text":"are tinted based on row-specific data:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To hide a row separators, use"},{"text":"``View/listRowSeparator(_:edges:)``."},{"text":"To hide or change the tint color for a section separator, use"},{"text":"``View/listSectionSeparator(_:edges:)`` and"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The color to use to tint the row separators, or `nil` to"},{"text":" use the default color for the current list style."},{"text":" - edges: The set of row edges for which the tint applies."},{"text":" The list style might decide to not display certain separators,"},{"text":" typically the top edge. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSeparator(_:edges:)"],"names":{"title":"listSectionSeparator(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether to hide the separator associated with a list section."},{"text":""},{"text":"Separators can be presented above and below a section. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter of the separator visibility."},{"text":""},{"text":"The following example shows a simple grouped list whose bottom"},{"text":"sections separator are hidden:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage) { garage in"},{"text":" Section(header: Text(garage.location)) {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listSectionSeparator(.hidden, edges: .bottom)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the visibility and tint color for a row separator, use"},{"text":"``View/listRowSeparator(_:edges:)`` and"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To set the tint color for a section separator, use"},{"text":"``View/listSectionSeparatorTint(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: The visibility of this section's separators."},{"text":" - edges: The set of row edges for which the preference applies."},{"text":" The list style might already decide to not display separators for"},{"text":" some edges. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSeparatorTint(_:edges:)"],"names":{"title":"listSectionSeparatorTint(_:edges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint color associated with a section."},{"text":""},{"text":"Separators can be presented above and below a section. You can specify to"},{"text":"which edge this preference should apply."},{"text":""},{"text":"This modifier expresses a preference to the containing ``List``. The list"},{"text":"style is the final arbiter for the separator tint."},{"text":""},{"text":"The following example shows a simple grouped list whose section separators"},{"text":"are tinted based on section-specific data:"},{"text":""},{"text":" List {"},{"text":" ForEach(garage) { garage in"},{"text":" Section(header: Text(garage.location)) {"},{"text":" ForEach(garage.cars) { car in"},{"text":" Text(car.model)"},{"text":" .listRowSeparatorTint(car.brandColor)"},{"text":" }"},{"text":" }"},{"text":" .listSectionSeparatorTint("},{"text":" garage.cars.last?.brandColor, edges: .bottom)"},{"text":" }"},{"text":" }"},{"text":" .listStyle(.grouped)"},{"text":""},{"text":"To change the visibility and tint color for a row separator, use"},{"text":"``View/listRowSeparator(_:edges:)`` and"},{"text":"``View/listRowSeparatorTint(_:edges:)``."},{"text":"To hide a section separator, use"},{"text":"``View/listSectionSeparator(_:edges:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - color: The color to use to tint the section separators, or `nil` to"},{"text":" use the default color for the current list style."},{"text":" - edges: The set of row edges for which the tint applies."},{"text":" The list style might decide to not display certain separators,"},{"text":" typically the top edge. The default is ``VerticalEdge/Set/all``."},{"text":""}]},"functionSignature":{"parameters":[{"name":"color","declarationFragments":[{"kind":"identifier","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]},{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSeparatorTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"color"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"VerticalEdge","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI12VerticalEdgeO3SetV"},{"kind":"text","spelling":" = .all) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilitySortPriority(_:)"],"names":{"title":"accessibilitySortPriority(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilitySortPriority"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sort priority order for this view's accessibility element,"},{"text":"relative to other elements at the same level."},{"text":""},{"text":"Higher numbers are sorted first. The default sort priority is zero."}]},"functionSignature":{"parameters":[{"name":"sortPriority","declarationFragments":[{"kind":"identifier","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilitySortPriority"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sortPriority"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollAction(_:)"],"names":{"title":"accessibilityScrollAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility scroll action to the view. Actions allow"},{"text":"assistive technologies, such as the VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how a scroll action to trigger"},{"text":"a refresh could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" ContentView()"},{"text":" }"},{"text":" .accessibilityScrollAction { edge in"},{"text":" if edge == .top {"},{"text":" // Refresh content"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogDefaultDirectory(_:)"],"names":{"title":"fileDialogDefaultDirectory(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogDefaultDirectory"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the ``fileExporter``, ``fileImporter``, or ``fileMover`` to"},{"text":"open with the specified default directory."},{"text":""},{"text":"- Parameter defaultDirectory: The directory to show when"},{"text":" the system file dialog launches. If the given file dialog has"},{"text":" a `fileDialogCustomizationID` if stores the user-chosen directory and subsequently"},{"text":" opens with it, ignoring the default value provided in this modifier."}]},"functionSignature":{"parameters":[{"name":"defaultDirectory","declarationFragments":[{"kind":"identifier","spelling":"defaultDirectory"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogDefaultDirectory"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultDirectory"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogCustomizationID(_:)"],"names":{"title":"fileDialogCustomizationID(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogCustomizationID"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the `fileExporter`, `fileImporter`,"},{"text":"or `fileMover` to persist and restore the file dialog configuration."},{"text":""},{"text":"Among other parameters, it stores the current directory,"},{"text":"view style (e.g., Icons, List, Columns), recent places,"},{"text":"and expanded window size."},{"text":"It enables a refined user experience; for example,"},{"text":"when importing an image, the user might switch to the Icons view,"},{"text":"but the List view could be more convenient in another context."},{"text":"The file dialog stores these settings and applies them"},{"text":"every time before presenting the panel."},{"text":"If not provided, on every launch, the file dialog"},{"text":"uses the default configuration."},{"text":""},{"text":"- Parameter id: An identifier of the configuration."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogCustomizationID"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``, or ``fileMover``"},{"text":"with a custom text that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter message: The optional text to use as the file dialog message."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter messageKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"messageKey","declarationFragments":[{"kind":"identifier","spelling":"messageKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"messageKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter messageResource: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"messageResource","declarationFragments":[{"kind":"identifier","spelling":"messageResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"messageResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogMessage(_:)"],"names":{"title":"fileDialogMessage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom message that is presented to the user,"},{"text":"similar to a title."},{"text":""},{"text":"- Parameter message: The string to use as the file dialog message."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogMessage"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter label: The string to use as the label for the confirmation button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with custom text as a confirmation button label."},{"text":""},{"text":"- Parameter label: The optional text to use as the label for the confirmation button."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter labelKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogConfirmationLabel(_:)"],"names":{"title":"fileDialogConfirmationLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` with a custom confirmation button label."},{"text":""},{"text":"- Parameter label: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogConfirmationLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a text to use as a label for the file name field."},{"text":"- Parameter label: The optional text to use as the label for the file name field."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter labelKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter label: The localized string resource to display."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporterFilenameLabel(_:)"],"names":{"title":"fileExporterFilenameLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``"},{"text":"with a label for the file name field."},{"text":"- Parameter label: The string to use as the label for the file name field."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporterFilenameLabel"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogURLEnabled(_:)"],"names":{"title":"fileDialogURLEnabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogURLEnabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileImporter``"},{"text":"or ``fileMover`` to conditionally disable presented URLs."},{"text":""},{"text":"- Parameter predicate: The predicate that evaluates the"},{"text":" URLs presented to the user to conditionally disable them."},{"text":" The implementation is expected to have constant complexity"},{"text":" and should not access the files contents or metadata. A common use case"},{"text":" is inspecting the path or the file name."}]},"functionSignature":{"parameters":[{"name":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogURLEnabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Predicate","preciseIdentifier":"s:10Foundation9PredicateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogImportsUnresolvedAliases(_:)"],"names":{"title":"fileDialogImportsUnresolvedAliases(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogImportsUnresolvedAliases"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` behavior when a user chooses an alias."},{"text":""},{"text":"By default, file dialogs resolve aliases and"},{"text":"provide the URL of the item referred to by the chosen alias."},{"text":"This modifier allows control of this behavior: pass `true` if the"},{"text":"application doesn't want file dialog to resolve aliases."},{"text":"- Parameter imports: A Boolean value that indicates"},{"text":" if the application receives unresolved or resolved URLs"},{"text":" when a user chooses aliases."}]},"functionSignature":{"parameters":[{"name":"imports","declarationFragments":[{"kind":"identifier","spelling":"imports"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogImportsUnresolvedAliases"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"imports"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileDialogBrowserOptions(_:)"],"names":{"title":"fileDialogBrowserOptions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogBrowserOptions"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"On macOS, configures the ``fileExporter``, ``fileImporter``,"},{"text":"or ``fileMover`` to provide a refined URL search experience: include or exclude"},{"text":"hidden files, allow searching by tag, etc."},{"text":""},{"text":"- Parameter options: The search options to apply to a given file dialog."}]},"functionSignature":{"parameters":[{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileDialogBrowserOptions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FileDialogBrowserOptions","preciseIdentifier":"s:7SwiftUI24FileDialogBrowserOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The title of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: The title of the suppression toggle in the dialog."},{"text":" This parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" \"Do not ask about erasing items again\","},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(_:isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(_:isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a custom suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle("},{"text":" Text(\"Do not ask about erasing items again\"),"},{"text":" isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: The label of the suppression toggle in the dialog. This"},{"text":" parameter can be elided to use the default suppression title."},{"text":" - isSuppressed: Whether the suppression toggle is on or off in the"},{"text":" dialog."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dialogSuppressionToggle(isSuppressed:)"],"names":{"title":"dialogSuppressionToggle(isSuppressed:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Enables user suppression of dialogs and alerts presented within `self`,"},{"text":"with a default suppression message on macOS. Unused on other platforms."},{"text":""},{"text":"Applying dialog suppression adds a toggle to dialogs on macOS,"},{"text":"which allows the user to request the alert not be displayed again."},{"text":"Typically whether a dialog is suppressed is stored in `AppStorage`"},{"text":"and used to decide whether to present the dialog in the future."},{"text":""},{"text":"The following example configures a `confirmationDialog` with a"},{"text":"suppression toggle. The toggle's state is stored in `AppStorage` and"},{"text":"used to determine whether or not to show the dialog when the"},{"text":"\"Delete Items\" button is pressed."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":""},{"text":" @AppStorage(\"suppressEraseItemAlert\")"},{"text":" private var suppressAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Delete Items\") {"},{"text":" if !suppressAlert {"},{"text":" isShowingDialog = true"},{"text":" } else {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to erase these items?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Erase\", role: .destructive) {"},{"text":" // Handle item deletion."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" .dialogSuppressionToggle(isSuppressed: $suppressAlert)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter isSuppressed: Whether the suppression toggle is on or off"},{"text":" in the dialog."}]},"functionSignature":{"parameters":[{"name":"isSuppressed","declarationFragments":[{"kind":"identifier","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dialogSuppressionToggle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isSuppressed"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:onCompletion:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import an existing"},{"text":"file."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, an application can have a button that allows the user to choose the default directory"},{"text":"with document templates loaded on every launch. Such a button might look like this:"},{"text":""},{"text":" struct PickTemplatesDirectoryButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var onTemplatesDirectoryPicked: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose templates directory\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.directory]"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let directory):"},{"text":" // gain access to the directory"},{"text":" let gotAccess = directory.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" onTemplatesDirectoryPicked(directory)"},{"text":" // release access"},{"text":" directory.stopAccessingSecurityScopedResource()"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` while the file importer is"},{"text":" presented will have no immediate effect, however will apply the next"},{"text":" time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import multiple"},{"text":"files."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to choose multiple PDF files for the application"},{"text":"to combine them later, might look like this:"},{"text":""},{"text":" struct PickPDFsButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var handlePickedPDF: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose PDFs to combine\", systemImage: \"doc.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.pdf],"},{"text":" allowsMultipleSelection: true"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let files):"},{"text":" files.forEach { file in"},{"text":" // gain access to the directory"},{"text":" let gotAccess = file.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" handlePickedPDF(file)"},{"text":" // release access"},{"text":" file.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` or `allowsMultipleSelection`"},{"text":" while the file importer is presented will have no immediate effect,"},{"text":" however will apply the next time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - allowsMultipleSelection: Whether the importer allows the user to"},{"text":" select more than one file to import."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"allowsMultipleSelection","declarationFragments":[{"kind":"identifier","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)"],"names":{"title":"fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to import multiple"},{"text":"files."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCompletion` will not be"},{"text":"called."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to choose multiple PDF files for the application"},{"text":"to combine them later, might look like this:"},{"text":""},{"text":" struct PickPDFsButton: View {"},{"text":" @State private var showFileImporter = false"},{"text":" var handlePickedPDF: (URL) -> Void"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileImporter = true"},{"text":" } label: {"},{"text":" Label(\"Choose PDFs to combine\", systemImage: \"doc.circle\")"},{"text":" }"},{"text":" .fileImporter("},{"text":" isPresented: $showFileImporter,"},{"text":" allowedContentTypes: [.pdf],"},{"text":" allowsMultipleSelection: true"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let files):"},{"text":" files.forEach { file in"},{"text":" // gain access to the directory"},{"text":" let gotAccess = file.startAccessingSecurityScopedResource()"},{"text":" if !gotAccess { return }"},{"text":" // access the directory URL"},{"text":" // (read templates in the directory, make a bookmark, etc.)"},{"text":" handlePickedPDF(file)"},{"text":" // release access"},{"text":" file.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" // handle error"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Note: Changing `allowedContentTypes` or `allowsMultipleSelection`"},{"text":" while the file importer is presented will have no immediate effect,"},{"text":" however will apply the next time it is presented."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - allowedContentTypes: The list of supported content types which can"},{"text":" be imported."},{"text":" - allowsMultipleSelection: Whether the importer allows the user to"},{"text":" select more than one file to import."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether the operation"},{"text":" succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"allowedContentTypes","declarationFragments":[{"kind":"identifier","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"allowsMultipleSelection","declarationFragments":[{"kind":"identifier","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileImporter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"allowedContentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"allowsMultipleSelection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sheet(item:onDismiss:content:)"],"names":{"title":"sheet(item:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a sheet using the given item as a data source"},{"text":"for the sheet's content."},{"text":""},{"text":"Use this method when you need to present a modal view with content"},{"text":"from a custom data source. The example below shows a custom data source"},{"text":"`InventoryItem` that the `content` closure uses to populate the display"},{"text":"the action sheet shows to the user:"},{"text":""},{"text":" struct ShowPartDetail: View {"},{"text":" @State private var sheetDetail: InventoryItem?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Part Details\") {"},{"text":" sheetDetail = InventoryItem("},{"text":" id: \"0123456789\","},{"text":" partNumber: \"Z-1234A\","},{"text":" quantity: 100,"},{"text":" name: \"Widget\")"},{"text":" }"},{"text":" .sheet(item: $sheetDetail,"},{"text":" onDismiss: didDismiss) { detail in"},{"text":" VStack(alignment: .leading, spacing: 20) {"},{"text":" Text(\"Part Number: \\(detail.partNumber)\")"},{"text":" Text(\"Name: \\(detail.name)\")"},{"text":" Text(\"Quantity On-Hand: \\(detail.quantity)\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" sheetDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct InventoryItem: Identifiable {"},{"text":" var id: String"},{"text":" let partNumber: String"},{"text":" let quantity: Int"},{"text":" let name: String"},{"text":" }"},{"text":""},{"text":"![A view showing a custom structure acting as a data source, providing"},{"text":"data to a modal sheet.](SwiftUI-View-SheetItemContent.png)"},{"text":""},{"text":"In vertically compact environments, such as iPhone in landscape"},{"text":"orientation, a sheet presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".sheet(item: $sheetDetail,"},{"text":" onDismiss: didDismiss) { detail in"},{"text":" VStack(alignment: .leading, spacing: 20) {"},{"text":" Text(\"Part Number: \\(detail.partNumber)\")"},{"text":" Text(\"Name: \\(detail.name)\")"},{"text":" Text(\"Quantity On-Hand: \\(detail.quantity)\")"},{"text":" }"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":" .onTapGesture {"},{"text":" sheetDetail = nil"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"> Passing a `.none` value for a sheet has no effect."},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the sheet."},{"text":" When `item` is non-`nil`, the system passes the item's content to"},{"text":" the modifier's closure. You display this content in a sheet that you"},{"text":" create that the system displays to the user. If `item` changes,"},{"text":" the system dismisses the sheet and replaces it with a new one"},{"text":" using the same process."},{"text":" - onDismiss: The closure to execute when dismissing the sheet."},{"text":" - content: A closure returning the content of the sheet."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sheet(isPresented:onDismiss:content:)"],"names":{"title":"sheet(isPresented:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a sheet when a binding to a Boolean value that you"},{"text":"provide is true."},{"text":""},{"text":"Use this method when you want to present a modal view to the"},{"text":"user when a Boolean value you provide is true. The example"},{"text":"below displays a modal view of the mockup for a software license"},{"text":"agreement when the user toggles the `isShowingSheet` variable by"},{"text":"clicking or tapping on the \"Show License Agreement\" button:"},{"text":""},{"text":" struct ShowLicenseAgreement: View {"},{"text":" @State private var isShowingSheet = false"},{"text":" var body: some View {"},{"text":" Button(action: {"},{"text":" isShowingSheet.toggle()"},{"text":" }) {"},{"text":" Text(\"Show License Agreement\")"},{"text":" }"},{"text":" .sheet(isPresented: $isShowingSheet,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" .padding(50)"},{"text":" Text(\"\"\""},{"text":" Terms and conditions go here."},{"text":" \"\"\")"},{"text":" .padding(50)"},{"text":" Button(\"Dismiss\","},{"text":" action: { isShowingSheet.toggle() })"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a full-screen modal sheet showing the mockup of a"},{"text":"software license agreement with a Dismiss"},{"text":"button.](SwiftUI-View-SheetIsPresentingContent.png)"},{"text":""},{"text":"In vertically compact environments, such as iPhone in landscape"},{"text":"orientation, a sheet presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".sheet(isPresented: $isShowingSheet,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" .padding(50)"},{"text":" Text(\"\"\""},{"text":" Terms and conditions go here."},{"text":" \"\"\")"},{"text":" .padding(50)"},{"text":" Button(\"Dismiss\","},{"text":" action: { isShowingSheet.toggle() })"},{"text":" }"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"> Passing a `.none` value for a sheet has no effect."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the sheet that you create in the modifier's"},{"text":" `content` closure."},{"text":" - onDismiss: The closure to execute when dismissing the sheet."},{"text":" - content: A closure that returns the content of the sheet."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sheet"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fullScreenCover(item:onDismiss:content:)"],"names":{"title":"fullScreenCover(item:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a modal view that covers as much of the screen as"},{"text":"possible using the binding you provide as a data source for the"},{"text":"sheet's content."},{"text":""},{"text":"Use this method to display a modal view that covers as much of the"},{"text":"screen as possible. In the example below a custom structure —"},{"text":"`CoverData` — provides data for the full-screen view to display in the"},{"text":"`content` closure when the user clicks or taps the"},{"text":"\"Present Full-Screen Cover With Data\" button:"},{"text":""},{"text":" struct FullScreenCoverItemOnDismissContent: View {"},{"text":" @State private var coverData: CoverData?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Present Full-Screen Cover With Data\") {"},{"text":" coverData = CoverData(body: \"Custom Data\")"},{"text":" }"},{"text":" .fullScreenCover(item: $coverData,"},{"text":" onDismiss: didDismiss) { details in"},{"text":" VStack(spacing: 20) {"},{"text":" Text(\"\\(details.body)\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" coverData = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":""},{"text":" }"},{"text":""},{"text":" struct CoverData: Identifiable {"},{"text":" var id: String {"},{"text":" return body"},{"text":" }"},{"text":" let body: String"},{"text":" }"},{"text":""},{"text":"![A full-screen modal view that shows Custom"},{"text":"Content.](SwiftUI-FullScreenCoverItemOnDismissContent.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the sheet."},{"text":" When `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You display this content in a sheet that you"},{"text":" create that the system displays to the user. If `item` changes,"},{"text":" the system dismisses the currently displayed sheet and replaces"},{"text":" it with a new one using the same process."},{"text":" - onDismiss: The closure to execute when dismissing the modal view."},{"text":" - content: A closure returning the content of the modal view."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fullScreenCover(isPresented:onDismiss:content:)"],"names":{"title":"fullScreenCover(isPresented:onDismiss:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a modal view that covers as much of the screen as"},{"text":"possible when binding to a Boolean value you provide is true."},{"text":""},{"text":"Use this method to show a modal view that covers as much of the screen"},{"text":"as possible. The example below displays a custom view when the user"},{"text":"toggles the value of the `isPresenting` binding:"},{"text":""},{"text":" struct FullScreenCoverPresentedOnDismiss: View {"},{"text":" @State private var isPresenting = false"},{"text":" var body: some View {"},{"text":" Button(\"Present Full-Screen Cover\") {"},{"text":" isPresenting.toggle()"},{"text":" }"},{"text":" .fullScreenCover(isPresented: $isPresenting,"},{"text":" onDismiss: didDismiss) {"},{"text":" VStack {"},{"text":" Text(\"A full-screen modal view.\")"},{"text":" .font(.title)"},{"text":" Text(\"Tap to Dismiss\")"},{"text":" }"},{"text":" .onTapGesture {"},{"text":" isPresenting.toggle()"},{"text":" }"},{"text":" .foregroundColor(.white)"},{"text":" .frame(maxWidth: .infinity,"},{"text":" maxHeight: .infinity)"},{"text":" .background(Color.blue)"},{"text":" .ignoresSafeArea(edges: .all)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func didDismiss() {"},{"text":" // Handle the dismissing action."},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A full-screen modal view with the text A full-screen modal view"},{"text":"and Tap to Dismiss.](SwiftUI-FullScreenCoverIsPresented.png)"},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the sheet."},{"text":" - onDismiss: The closure to execute when dismissing the modal view."},{"text":" - content: A closure that returns the content of the modal view."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"onDismiss","declarationFragments":[{"kind":"identifier","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fullScreenCover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"onDismiss"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultAppStorage(_:)"],"names":{"title":"defaultAppStorage(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAppStorage"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The default store used by `AppStorage` contained within the view."},{"text":""},{"text":"If unspecified, the default store for a view hierarchy is"},{"text":"`UserDefaults.standard`, but can be set a to a custom one. For example,"},{"text":"sharing defaults between an app and an extension can override the"},{"text":"default store to one created with `UserDefaults.init(suiteName:_)`."},{"text":""},{"text":"- Parameter store: The user defaults to use as the default"},{"text":" store for `AppStorage`."}]},"functionSignature":{"parameters":[{"name":"store","declarationFragments":[{"kind":"identifier","spelling":"store"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAppStorage"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"store"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UserDefaults","preciseIdentifier":"c:objc(cs)NSUserDefaults"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onSubmit(of:_:)"],"names":{"title":"onSubmit(of:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onSubmit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user submits a value to this view."},{"text":""},{"text":"Different views may have different triggers for the provided action."},{"text":"A ``TextField``, or ``SecureField`` will trigger this action when the"},{"text":"user hits the hardware or software return key. This modifier may also"},{"text":"bind this action to a default action keyboard shortcut. You may set this"},{"text":"action on an individual view or an entire view hierarchy."},{"text":""},{"text":" TextField(\"Username\", text: $username)"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"You can use the ``View/submitScope(_:)`` modifier to stop a submit"},{"text":"trigger from a control from propagating higher up in the view hierarchy"},{"text":"to higher `View.onSubmit(of:_:)` modifiers."},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", text: $viewModel.userName)"},{"text":" SecureField(\"Password\", text: $viewModel.password)"},{"text":""},{"text":" TextField(\"Tags\", text: $viewModel.tags)"},{"text":" .submitScope()"},{"text":" }"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"You can use different submit triggers to filter the types of triggers"},{"text":"that should invoke the provided submission action. For example, you"},{"text":"may provide a value of ``SubmitTriggers/search`` to only hear"},{"text":"submission triggers that originate from search fields vended by"},{"text":"searchable modifiers."},{"text":""},{"text":" @StateObject private var viewModel = ViewModel()"},{"text":""},{"text":" NavigationView {"},{"text":" SidebarView()"},{"text":" DetailView()"},{"text":" }"},{"text":" .searchable("},{"text":" text: $viewModel.searchText,"},{"text":" placement: .sidebar"},{"text":" ) {"},{"text":" SuggestionsView()"},{"text":" }"},{"text":" .onSubmit(of: .search) {"},{"text":" viewModel.submitCurrentSearchQuery()"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - triggers: The triggers that should invoke the provided action."},{"text":" - action: The action to perform on submission of a value."}]},"functionSignature":{"parameters":[{"name":"of","internalName":"triggers","declarationFragments":[{"kind":"identifier","spelling":"triggers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onSubmit"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"triggers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitTriggers","preciseIdentifier":"s:7SwiftUI14SubmitTriggersV"},{"kind":"text","spelling":" = .text, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","submitScope(_:)"],"names":{"title":"submitScope(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitScope"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Prevents submission triggers originating from this view to invoke"},{"text":"a submission action configured by a submission modifier higher up"},{"text":"in the view hierarchy."},{"text":""},{"text":"Use this modifier when you want to avoid specific views from initiating"},{"text":"a submission action configured by the ``View/onSubmit(of:_:)`` modifier."},{"text":"In the example below, the tag field doesn't trigger the submission of"},{"text":"the form:"},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", text: $viewModel.userName)"},{"text":" SecureField(\"Password\", text: $viewModel.password)"},{"text":""},{"text":" TextField(\"Tags\", text: $viewModel.tags)"},{"text":" .submitScope()"},{"text":" }"},{"text":" .onSubmit {"},{"text":" guard viewModel.validate() else { return }"},{"text":" viewModel.login()"},{"text":" }"},{"text":""},{"text":"- Parameter isBlocking: A Boolean that indicates whether this scope is"},{"text":" actively blocking submission triggers from reaching higher submission"},{"text":" actions."}]},"functionSignature":{"parameters":[{"name":"isBlocking","declarationFragments":[{"kind":"identifier","spelling":"isBlocking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitScope"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isBlocking"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationLinkIndicatorVisibility(_:)"],"names":{"title":"navigationLinkIndicatorVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationLinkIndicatorVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures whether navigation links show a disclosure indicator."},{"text":""},{"text":"If you need to detect whether the navigation disclosure indicator"},{"text":"should be shown for the current view, read the"},{"text":"``EnvironmentValues/navigationLinkIndicatorVisibility`` environment value."},{"text":""},{"text":"The following example hides the indicator for all links in the list."},{"text":"The indicator can be hidden for a specific link by placing the"},{"text":"modifier on the `NavigationLink` itself."},{"text":""},{"text":" struct NoIndicatorLink: View {"},{"text":" var body: some View {"},{"text":" NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"See detail\") {"},{"text":" Text(\"Detail view\")"},{"text":" }"},{"text":" }"},{"text":" .navigationLinkIndicatorVisibility(.hidden)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Important: Current releases support setting the indicator visibility"},{"text":"to `.visible` regardless of whether the link is within a list."},{"text":"On operating systems prior to iOS 26 and aligned releases,"},{"text":"setting the link indicator visibility to `.visible` is only"},{"text":"supported for navigation links contained in a `List`."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationLinkIndicatorVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"visionOS","introduced":{"major":1,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarHidden(_:)"],"names":{"title":"navigationBarHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarHidden(_:)` to hide the navigation bar. This modifier"},{"text":"only takes effect when this view is inside of and visible within a"},{"text":"``NavigationView``."},{"text":""},{"text":"- Parameter hidden: A Boolean value that indicates whether to hide the"},{"text":" navigation bar."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use toolbar(.hidden)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar."},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"The example below shows setting the title of the navigation bar using a"},{"text":"``Text`` view:"},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(Text(\"Today's Flavors\"))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the title of a navigation bar configured using a"},{"text":"text view.](SwiftUI-navigationBarTitle-Text.png)"},{"text":""},{"text":"- Parameter title: A description of this view to display in the"},{"text":" navigation bar."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title of this view's navigation bar with a localized string."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar"},{"text":"using a ``LocalizedStringKey`` that will be used to search for a"},{"text":"matching localized string in the application's localizable strings"},{"text":"assets."},{"text":""},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, a string constant is used to access a"},{"text":"``LocalizedStringKey`` that will be resolved at run time to provide a"},{"text":"title for the navigation bar. If the localization key cannot be"},{"text":"resolved, the text of the key name will be used as the title text."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(\"Today's Flavors\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter titleKey: A key to a localized description of this view to"},{"text":" display in the navigation bar."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:)"],"names":{"title":"navigationBarTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title of this view's navigation bar with a string."},{"text":""},{"text":"Use `navigationBarTitle(_:)` to set the title of the navigation bar"},{"text":"using a `String`. This modifier only takes effect when this view is"},{"text":"inside of and visible within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a string:"},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" let text = \"Today's Flavors\""},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(text)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter title: A title for this view to display in the navigation"},{"text":" bar."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"navigationTitle(_:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the title"},{"text":"from one of the ``NavigationBarItem/TitleDisplayMode`` styles. This"},{"text":"modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a ``Text`` view. The navigation bar title's"},{"text":"``NavigationBarItem/TitleDisplayMode`` is set to `.inline` which places"},{"text":"the navigation bar title in the bounds of the navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(Text(\"Today's Flavors\", displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - title: A title for this view to display in the navigation bar."},{"text":" - displayMode: The style to use for displaying the navigation bar title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the title"},{"text":"from one of the ``NavigationBarItem/TitleDisplayMode`` styles. This"},{"text":"modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationView``."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided"},{"text":"using a string. The navigation bar title's"},{"text":"``NavigationBarItem/TitleDisplayMode`` is set to `.inline` which places"},{"text":"the navigation bar title in the bounds of the navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(\"Today's Flavors\", displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If the `titleKey` can't be found, the title uses the text of the key"},{"text":"name instead."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: A key to a localized description of this view to display"},{"text":" in the navigation bar."},{"text":" - displayMode: The style to use for displaying the navigation bar"},{"text":" title."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitle(_:displayMode:)"],"names":{"title":"navigationBarTitle(_:displayMode:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title and display mode in the navigation bar for this view."},{"text":""},{"text":"Use `navigationBarTitle(_:displayMode:)` to set the title of the"},{"text":"navigation bar for this view and specify a display mode for the"},{"text":"title from one of the `NavigationBarItem.Title.DisplayMode`"},{"text":"styles. This modifier only takes effect when this view is inside of and"},{"text":"visible within a `NavigationView`."},{"text":""},{"text":"In the example below, `navigationBarTitle(_:displayMode:)` uses a"},{"text":"string to provide a title for the navigation bar. Setting the title's"},{"text":"`displayMode` to `.inline` places the navigation bar title within the"},{"text":"bounds of the navigation bar."},{"text":""},{"text":"In the example below, text for the navigation bar title is provided using"},{"text":"a string. The navigation bar title's `displayMode` is set to"},{"text":"`.inline` which places the navigation bar title in the bounds of the"},{"text":"navigation bar."},{"text":""},{"text":" struct FlavorView: View {"},{"text":" let items = [\"Chocolate\", \"Vanilla\", \"Strawberry\", \"Mint Chip\","},{"text":" \"Pistachio\"]"},{"text":" let title = \"Today's Flavors\""},{"text":" var body: some View {"},{"text":" NavigationView {"},{"text":" List(items, id: \\.self) {"},{"text":" Text($0)"},{"text":" }"},{"text":" .navigationBarTitle(title, displayMode: .inline)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a navigation bar, showing the title within the bounds"},{"text":" of the navigation bar]"},{"text":"(SwiftUI-navigationBarTitle-stringProtocol.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - title: A title for this view to display in the navigation bar."},{"text":" - displayMode: The way to display the title."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"macOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use navigationTitle(_:) with navigationBarTitleDisplayMode(_:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarBackButtonHidden(_:)"],"names":{"title":"navigationBarBackButtonHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarBackButtonHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the navigation bar back button for the view."},{"text":""},{"text":"Use `navigationBarBackButtonHidden(_:)` to hide the back button for this"},{"text":"view."},{"text":""},{"text":"This modifier only takes effect when this view is inside of and visible"},{"text":"within a ``NavigationStack`` or a ``NavigationSplitView`` in narrow size classes."},{"text":""},{"text":"The example below demonstrates how to hide the navigation back button"},{"text":"for a view within a navigation stack:"},{"text":""},{"text":"```swift"},{"text":"NavigationStack {"},{"text":" List {"},{"text":" NavigationLink(\"Mint\") {"},{"text":" Color.mint"},{"text":" .navigationBarBackButtonHidden()"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameter hidesBackButton: A Boolean value that indicates whether to"},{"text":" hide the back button. The default value is `true`."}]},"functionSignature":{"parameters":[{"name":"hidesBackButton","declarationFragments":[{"kind":"identifier","spelling":"hidesBackButton"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarBackButtonHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidesBackButton"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textInputFormattingControlVisibility(_:for:)"],"names":{"title":"textInputFormattingControlVisibility(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputFormattingControlVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies which system text formatting controls are available"},{"text":"for people to format text."},{"text":""},{"text":"A ``TextEditor`` with a binding to an `AttributedString` offers"},{"text":"built-in controls for formatting text. These controls appear in"},{"text":"different placements depending on the platform. By default,"},{"text":"`TextEditor` shows them in the context menu and in the"},{"text":"keyboard toolbar on iOS. See ``TextInputFormattingControlPlacement/Set``"},{"text":"for the available placements."},{"text":""},{"text":"In this example, the formatting accessory bar is shown in a macOS editor:"},{"text":""},{"text":" struct StyledTextEditingView: View {"},{"text":" @State private var text: AttributedString = \"\""},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .textInputFormattingControlVisibility(.visible, for: .accessoryBar)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: Whether the controls in the given placements may"},{"text":" become visible."},{"text":" - placement: The onscreen control to modify."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textInputFormattingControlVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextInputFormattingControlPlacement","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI35TextInputFormattingControlPlacementV3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRespondsToUserInteraction(_:isEnabled:)"],"names":{"title":"accessibilityRespondsToUserInteraction(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this Accessibility element responds to user"},{"text":"interaction and would thus be interacted with by technologies such as"},{"text":"Switch Control, Voice Control or Full Keyboard Access."},{"text":""},{"text":"If this is not set, the value is inferred from the traits of the"},{"text":"Accessibility element, the presence of Accessibility actions on the"},{"text":"element, or the presence of gestures on the element or containing views."},{"text":""},{"text":"- Parameters:"},{"text":" - respondsToUserInteraction: Whether the view responds to user"},{"text":" interaction."},{"text":" - isEnabled: If true the accessibility interaction state is applied;"},{"text":" otherwise the accessibility interaction state is unchanged."}]},"functionSignature":{"parameters":[{"name":"respondsToUserInteraction","declarationFragments":[{"kind":"identifier","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRespondsToUserInteraction(_:)"],"names":{"title":"accessibilityRespondsToUserInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this Accessibility element responds to user"},{"text":"interaction and would thus be interacted with by technologies such as"},{"text":"Switch Control, Voice Control or Full Keyboard Access."},{"text":""},{"text":"If this is not set, the value is inferred from the traits of the"},{"text":"Accessibility element, the presence of Accessibility actions on the"},{"text":"element, or the presence of gestures on the element or containing views."}]},"functionSignature":{"parameters":[{"name":"respondsToUserInteraction","declarationFragments":[{"kind":"identifier","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRespondsToUserInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"respondsToUserInteraction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonStyle(_:)"],"names":{"title":"buttonStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for buttons within this view to a button style with a"},{"text":"custom appearance and custom interaction behavior."},{"text":""},{"text":"Use this modifier to set a specific style for button instances"},{"text":"within a view:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" Button(\"Register\", action: register)"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"PrimitiveButtonStyle","rhsPrecise":"s:7SwiftUI20PrimitiveButtonStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PrimitiveButtonStyle","preciseIdentifier":"s:7SwiftUI20PrimitiveButtonStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focused(_:equals:)"],"names":{"title":"focused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its focus state to the given state value."},{"text":""},{"text":"Use this modifier to cause the view to receive focus whenever the"},{"text":"`binding` equals the `value`. Typically, you create an enumeration"},{"text":"of fields that may receive focus, bind an instance of this enumeration,"},{"text":"and assign its cases to focusable views."},{"text":""},{"text":"The following example uses the cases of a `LoginForm` enumeration to"},{"text":"bind the focus state of two ``TextField`` views. A sign-in button"},{"text":"validates the fields and sets the bound `focusedField` value to"},{"text":"any field that requires the user to correct a problem."},{"text":""},{"text":" struct LoginForm {"},{"text":" enum Field: Hashable {"},{"text":" case usernameField"},{"text":" case passwordField"},{"text":" }"},{"text":""},{"text":" @State private var username = \"\""},{"text":" @State private var password = \"\""},{"text":" @FocusState private var focusedField: Field?"},{"text":""},{"text":" var body: some View {"},{"text":" Form {"},{"text":" TextField(\"Username\", text: $username)"},{"text":" .focused($focusedField, equals: .usernameField)"},{"text":""},{"text":" SecureField(\"Password\", text: $password)"},{"text":" .focused($focusedField, equals: .passwordField)"},{"text":""},{"text":" Button(\"Sign In\") {"},{"text":" if username.isEmpty {"},{"text":" focusedField = .usernameField"},{"text":" } else if password.isEmpty {"},{"text":" focusedField = .passwordField"},{"text":" } else {"},{"text":" handleLogin(username, password)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To control focus using a Boolean, use the ``View/focused(_:)`` method"},{"text":"instead."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When focus moves to the"},{"text":" modified view, the binding sets the bound value to the corresponding"},{"text":" match value. If a caller sets the state value programmatically to the"},{"text":" matching value, then focus moves to the modified view. When focus"},{"text":" leaves the modified view, the binding sets the bound value to"},{"text":" `nil`. If a caller sets the value to `nil`, SwiftUI automatically"},{"text":" dismisses focus."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focused(_:)"],"names":{"title":"focused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its focus state to the given Boolean state"},{"text":"value."},{"text":""},{"text":"Use this modifier to cause the view to receive focus whenever the"},{"text":"`condition` value is `true`. You can use this modifier to"},{"text":"observe the focus state of a single view, or programmatically set and"},{"text":"remove focus from the view."},{"text":""},{"text":"In the following example, a single ``TextField`` accepts a user's"},{"text":"desired `username`. The text field binds its focus state to the"},{"text":"Boolean value `usernameFieldIsFocused`. A \"Submit\" button's action"},{"text":"verifies whether the name is available. If the name is unavailable, the"},{"text":"button sets `usernameFieldIsFocused` to `true`, which causes focus to"},{"text":"return to the text field, so the user can enter a different name."},{"text":""},{"text":" @State private var username: String = \"\""},{"text":" @FocusState private var usernameFieldIsFocused: Bool"},{"text":" @State private var showUsernameTaken = false"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextField(\"Choose a username.\", text: $username)"},{"text":" .focused($usernameFieldIsFocused)"},{"text":" if showUsernameTaken {"},{"text":" Text(\"That username is taken. Please choose another.\")"},{"text":" }"},{"text":" Button(\"Submit\") {"},{"text":" showUsernameTaken = false"},{"text":" if !isUserNameAvailable(username: username) {"},{"text":" usernameFieldIsFocused = true"},{"text":" showUsernameTaken = true"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To control focus by matching a value, use the"},{"text":"``View/focused(_:equals:)`` method instead."},{"text":""},{"text":"- Parameter condition: The focus state to bind. When focus moves"},{"text":" to the view, the binding sets the bound value to `true`. If a caller"},{"text":" sets the value to `true` programmatically, then focus moves to the"},{"text":" modified view. When focus leaves the modified view, the binding"},{"text":" sets the value to `false`. If a caller sets the value to `false`,"},{"text":" SwiftUI automatically dismisses focus."},{"text":""},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"FocusState","preciseIdentifier":"s:7SwiftUI10FocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI10FocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","submitLabel(_:)"],"names":{"title":"submitLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the submit label for this view."},{"text":""},{"text":" Form {"},{"text":" TextField(\"Username\", $viewModel.username)"},{"text":" .submitLabel(.continue)"},{"text":" SecureField(\"Password\", $viewModel.password)"},{"text":" .submitLabel(.done)"},{"text":" }"},{"text":""},{"text":"- Parameter submitLabel: One of the cases specified in ``SubmitLabel``."}]},"functionSignature":{"parameters":[{"name":"submitLabel","declarationFragments":[{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"submitLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"submitLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"SubmitLabel","preciseIdentifier":"s:7SwiftUI11SubmitLabelV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","refreshable(action:)"],"names":{"title":"refreshable(action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"refreshable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an asynchronous handler that can update the data the view"},{"text":"displays when a person initiates a request, such as by pulling to refresh."},{"text":""},{"text":"Apply this modifier to a view to set the ``EnvironmentValues/refresh``"},{"text":"value in the view's environment to a ``RefreshAction`` instance that"},{"text":"uses the specified `action` as its handler. Views that detect the"},{"text":"presence of the instance can change their appearance to provide a"},{"text":"way for a person to execute the handler."},{"text":""},{"text":"For example, when you apply this modifier on iOS and iPadOS to a"},{"text":"``List``, the list enables a standard pull-to-refresh gesture that"},{"text":"refreshes the list contents. When a person drags the top of the"},{"text":"scrollable area downward, the view reveals a progress indicator"},{"text":"and executes the specified handler. The indicator remains visible"},{"text":"for the duration of the refresh, which runs asynchronously:"},{"text":""},{"text":" List(mailbox.conversations) { conversation in"},{"text":" ConversationCell(conversation)"},{"text":" }"},{"text":" .refreshable {"},{"text":" await mailbox.fetch()"},{"text":" }"},{"text":""},{"text":"You can add refresh capability to your own views as well. For"},{"text":"information on how to do that, see ``RefreshAction``."},{"text":""},{"text":"- Parameters:"},{"text":" - action: An asynchronous handler that SwiftUI executes when"},{"text":" a person requests a refresh. Use this handler to initiate"},{"text":" an update of model data displayed in the modified view. Use"},{"text":" `await` in front of any asynchronous calls inside the handler."},{"text":"- Returns: A view with a new refresh action in its environment."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"refreshable"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","projectionEffect(_:)"],"names":{"title":"projectionEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"projectionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Applies a projection transformation to this view's rendered output."},{"text":""},{"text":"Use `projectionEffect(_:)` to apply a 3D transformation to the view."},{"text":""},{"text":"The example below rotates the text 30˚ around the `z` axis, which is the"},{"text":"axis pointing out of the screen:"},{"text":""},{"text":" // This transform represents a 30˚ rotation around the z axis."},{"text":" let transform = CATransform3DMakeRotation("},{"text":" -30 * (.pi / 180), 0.0, 0.0, 1.0)"},{"text":""},{"text":" Text(\"Projection effects using transforms\")"},{"text":" .projectionEffect(.init(transform))"},{"text":" .border(Color.gray)"},{"text":""},{"text":"![A screenshot showing text rotated 30 degrees around the axis pointing"},{"text":"out of the screen.](SwiftUI-View-projectionEffect.png)"},{"text":""},{"text":"- Parameter transform: A ``ProjectionTransform`` to apply to the view."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"projectionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ProjectionTransform","preciseIdentifier":"s:7SwiftUI19ProjectionTransformV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationViewStyle(_:)"],"names":{"title":"navigationViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for navigation views within this view."},{"text":""},{"text":"Use this modifier to change the appearance and behavior of navigation"},{"text":"views. For example, by default, navigation views appear with multiple"},{"text":"columns in wider environments, like iPad in landscape orientation:"},{"text":""},{"text":"![A screenshot of an iPad in landscape orientation mode showing a"},{"text":"multicolumn navigation view. The left column lists the colors Purple,"},{"text":"Pink, and Orange, with Purple selected. The right column presents a"},{"text":"detail view that shows a purple square.](View-navigationViewStyle-1)"},{"text":""},{"text":"You can apply the ``NavigationViewStyle/stack`` style to force"},{"text":"single-column stack navigation in these environments:"},{"text":""},{"text":" NavigationView {"},{"text":" List {"},{"text":" NavigationLink(\"Purple\", destination: ColorDetail(color: .purple))"},{"text":" NavigationLink(\"Pink\", destination: ColorDetail(color: .pink))"},{"text":" NavigationLink(\"Orange\", destination: ColorDetail(color: .orange))"},{"text":" }"},{"text":" .navigationTitle(\"Colors\")"},{"text":""},{"text":" Text(\"Select a Color\") // A placeholder to show before selection."},{"text":" }"},{"text":" .navigationViewStyle(.stack)"},{"text":""},{"text":"![A screenshot of an iPad in landscape orientation mode showing a"},{"text":"single column containing the list Purple, Pink, and"},{"text":"Orange.](View-navigationViewStyle-2)"}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"NavigationViewStyle","rhsPrecise":"s:7SwiftUI19NavigationViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"NavigationViewStyle","preciseIdentifier":"s:7SwiftUI19NavigationViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"replace styled NavigationView with NavigationStack or NavigationSplitView instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(menuItems:)"],"names":{"title":"contextMenu(menuItems:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu to a view."},{"text":""},{"text":"Use this modifier to add a context menu to a view in your app's"},{"text":"user interface. Compose the menu by returning controls like ``Button``,"},{"text":"``Toggle``, and ``Picker`` from the `menuItems` closure. You can also"},{"text":"use ``Menu`` to define submenus or ``Section`` to group items."},{"text":""},{"text":"The following example creates a ``Text`` view that has a context menu"},{"text":"with two buttons:"},{"text":""},{"text":" Text(\"Turtle Rock\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system displays the menu next to the content:"},{"text":""},{"text":"![A screenshot of a context menu showing two menu items: Add to"},{"text":"Favorites, and Show in Maps.](View-contextMenu-1-iOS)"},{"text":""},{"text":"The system dismisses the menu if someone makes a selection, or taps"},{"text":"or clicks outside the menu."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/contextMenuPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"> Note: This view modifier produces a context menu on macOS, but that"},{"text":"platform doesn't display a preview."},{"text":""},{"text":"If you want to show a different preview, you can use"},{"text":"``View/contextMenu(menuItems:preview:)``. To add a context menu to a"},{"text":"container that supports selection, like a ``List`` or a ``Table``, and"},{"text":"to distinguish between menu activation on a selection and"},{"text":"activation in an empty area of the container, use"},{"text":"``View/contextMenu(forSelectionType:menu:primaryAction:)``."},{"text":""},{"text":"- Parameter menuItems: A closure that produces the menu's contents. You"},{"text":" can deactivate the context menu by returning nothing from the closure."},{"text":""},{"text":"- Returns: A view that can display a context menu."}]},"functionSignature":{"parameters":[{"name":"menuItems","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"MenuItems","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(menuItems:preview:)"],"names":{"title":"contextMenu(menuItems:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu with a custom preview to a view."},{"text":""},{"text":"When you use this modifer to add a context menu to a view in your"},{"text":"app's user interface, the system displays the custom preview beside the"},{"text":"menu."},{"text":"Compose the menu by returning controls like ``Button``, ``Toggle``, and"},{"text":"``Picker`` from the `menuItems` closure. You can also use ``Menu`` to"},{"text":"define submenus or ``Section`` to group items."},{"text":""},{"text":"Define the custom preview by returning a view from the `preview`"},{"text":"closure. The system sizes the preview to match the size of its content."},{"text":"For example, you can add a two button context menu to a ``Text`` view,"},{"text":"and use an ``Image`` as the preview:"},{"text":""},{"text":" Text(\"Turtle Rock\")"},{"text":" .padding()"},{"text":" .contextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" } preview: {"},{"text":" Image(\"turtlerock\") // Loads the image from an asset catalog."},{"text":" }"},{"text":""},{"text":"When someone activates the context menu with an action like touch and"},{"text":"hold in iOS or iPadOS, the system displays the image and the menu:"},{"text":""},{"text":"![A screenshot of a context menu with two buttons that are labeled"},{"text":"Add to Favorites, and Show in Maps. An image of a Joshua Tree appears"},{"text":"above the menu.](View-contextMenu-2-iOS)"},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/contextMenuPreview`` kind. For example, you"},{"text":"can change the lift preview's corner radius or use a nested view as the"},{"text":"lift preview."},{"text":""},{"text":"> Note: This view modifier produces a context menu on macOS, but that"},{"text":"platform doesn't display the preview."},{"text":""},{"text":"If you don't need a preview, use ``View/contextMenu(menuItems:)``"},{"text":"instead. If you want to add a context menu to a container that supports"},{"text":"selection, like a ``List`` or a ``Table``, and you want to distinguish"},{"text":"between menu activation on a selection and activation in an empty area"},{"text":"of the container, use"},{"text":"``View/contextMenu(forSelectionType:menu:primaryAction:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - menuItems: A closure that produces the menu's contents. You can"},{"text":" deactivate the context menu by returning nothing from the closure."},{"text":" - preview: A view that the system displays along with the menu."},{"text":""},{"text":"- Returns: A view that can display a context menu with a preview."}]},"functionSignature":{"parameters":[{"name":"menuItems","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"M","index":0,"depth":1},{"name":"P","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"P"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menuItems"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"P"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(_:)"],"names":{"title":"contextMenu(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a context menu to the view."},{"text":""},{"text":"Use this method to attach a specified context menu to a view."},{"text":"You can make the context menu unavailable by conditionally passing `nil`"},{"text":"as the value for the `contextMenu`."},{"text":""},{"text":"The example below creates a ``ContextMenu`` that contains two items and"},{"text":"passes them into the modifier. The Boolean value `shouldShowMenu`,"},{"text":"which defaults to `true`, controls the context menu availability:"},{"text":""},{"text":" private let menuItems = ContextMenu {"},{"text":" Button {"},{"text":" // Add this item to a list of favorites."},{"text":" } label: {"},{"text":" Label(\"Add to Favorites\", systemImage: \"heart\")"},{"text":" }"},{"text":" Button {"},{"text":" // Open Maps and center it on this item."},{"text":" } label: {"},{"text":" Label(\"Show in Maps\", systemImage: \"mappin\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" private struct ContextMenuMenuItems: View {"},{"text":" @State private var shouldShowMenu = true"},{"text":""},{"text":" var body: some View {"},{"text":" Text(\"Turtle Rock\")"},{"text":" .contextMenu(shouldShowMenu ? menuItems : nil)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a context menu showing two menu items: Add to"},{"text":"Favorites, and Show in Maps.](View-contextMenu-1-iOS)"},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/contextMenuPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter contextMenu: A context menu container for views that you"},{"text":" present as menu items in a context menu."},{"text":""},{"text":"- Returns: A view that can show a context menu."}]},"functionSignature":{"parameters":[{"name":"contextMenu","declarationFragments":[{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"MenuItems","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"MenuItems"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"contextMenu"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContextMenu","preciseIdentifier":"s:7SwiftUI11ContextMenuV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"MenuItems"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `contextMenu(menuItems:)` instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","windowToolbarFullScreenVisibility(_:)"],"names":{"title":"windowToolbarFullScreenVisibility(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"windowToolbarFullScreenVisibility"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the visibility of the window toolbar when the window enters"},{"text":"full screen mode."},{"text":""},{"text":"By default, the window toolbar will show at the top of the display,"},{"text":"above the window's contents."},{"text":""},{"text":"You can use this modifier to override the default behavior."},{"text":""},{"text":"For example, you can specify that the window toolbar should be hidden"},{"text":"by default, and only show once the mouse moves into the area occupied"},{"text":"by the menu bar:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .toolbar {"},{"text":" ..."},{"text":" }"},{"text":" .windowToolbarFullScreenVisibility(.onHover)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter visibility: The visibility to use for the window toolbar in"},{"text":" full screen mode."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"windowToolbarFullScreenVisibility"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"WindowToolbarFullScreenVisibility","preciseIdentifier":"s:7SwiftUI33WindowToolbarFullScreenVisibilityV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","itemProvider(_:)"],"names":{"title":"itemProvider(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"itemProvider"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Provides a closure that vends the drag representation to be used for a"},{"text":"particular data element."}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"itemProvider"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Optional","preciseIdentifier":"s:Sq"},{"kind":"text","spelling":"<() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":"?>) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","paletteSelectionEffect(_:)"],"names":{"title":"paletteSelectionEffect(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"paletteSelectionEffect"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the selection effect to apply to a palette item."},{"text":""},{"text":"``PaletteSelectionEffect/automatic`` applies the system's default"},{"text":"appearance when selected. When using un-tinted SF Symbols or template"},{"text":"images, the current tint color is applied to the selected items' image."},{"text":"If the provided SF Symbols have custom tints, a stroke is drawn around selected items."},{"text":""},{"text":"If you wish to provide a specific image (or SF Symbol) to indicate"},{"text":"selection, use ``PaletteSelectionEffect/custom`` to forgo the system's"},{"text":"default selection appearance allowing the provided image to solely"},{"text":"indicate selection instead."},{"text":""},{"text":"The following example creates a palette picker that disables the"},{"text":"system selection behavior:"},{"text":""},{"text":" Menu {"},{"text":" Picker(\"Palettes\", selection: $selection) {"},{"text":" ForEach(palettes) { palette in"},{"text":" Label(palette.title, image: selection == palette ?"},{"text":" \"selected-palette\" : \"palette\")"},{"text":" .tint(palette.tint)"},{"text":" .tag(palette)"},{"text":" }"},{"text":" }"},{"text":" .pickerStyle(.palette)"},{"text":" .paletteSelectionEffect(.custom)"},{"text":" } label: {"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"If a specific SF Symbol variant is preferable instead, use"},{"text":"``PaletteSelectionEffect/symbolVariant(_:)``."},{"text":""},{"text":" Menu {"},{"text":" ControlGroup {"},{"text":" ForEach(ColorTags.allCases) { colorTag in"},{"text":" Toggle(isOn: $selectedColorTags[colorTag]) {"},{"text":" Label(colorTag.name, systemImage: \"circle\")"},{"text":" }"},{"text":" .tint(colorTag.color)"},{"text":" }"},{"text":" }"},{"text":" .controlGroupStyle(.palette)"},{"text":" .paletteSelectionEffect(.symbolVariant(.fill))"},{"text":" }"},{"text":""},{"text":"- Parameter effect: The type of effect to apply when a palette item is selected."}]},"functionSignature":{"parameters":[{"name":"effect","declarationFragments":[{"kind":"identifier","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"paletteSelectionEffect"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"effect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PaletteSelectionEffect","preciseIdentifier":"s:7SwiftUI22PaletteSelectionEffectV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonStyle(_:)"],"names":{"title":"buttonStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for buttons within this view to a button style with a"},{"text":"custom appearance and standard interaction behavior."},{"text":""},{"text":"Use this modifier to set a specific style for all button instances"},{"text":"within a view:"},{"text":""},{"text":" HStack {"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" Button(\"Register\", action: register)"},{"text":" }"},{"text":" .buttonStyle(.bordered)"},{"text":""},{"text":"You can also use this modifier to set the style for controls that"},{"text":"acquire a button style through composition, like the ``Menu`` and"},{"text":"``Toggle`` views in the following example:"},{"text":""},{"text":" VStack {"},{"text":" Menu(\"Terms and Conditions\") {"},{"text":" Button(\"Open in Preview\", action: openInPreview)"},{"text":" Button(\"Save as PDF\", action: saveAsPDF)"},{"text":" }"},{"text":" Toggle(\"Remember Password\", isOn: $isToggleOn)"},{"text":" Toggle(\"Flag\", isOn: $flagged)"},{"text":" Button(\"Sign In\", action: signIn)"},{"text":" }"},{"text":" .menuStyle(.button)"},{"text":" .toggleStyle(.button)"},{"text":" .buttonStyle(.bordered)"},{"text":""},{"text":"The ``View/menuStyle(_:)`` modifier causes the Terms"},{"text":"and Conditions menu to render as a button. Similarly, the"},{"text":"``View/toggleStyle(_:)`` modifier causes the two toggles to"},{"text":"render as buttons. The button style modifier then causes not only"},{"text":"the explicit Sign In ``Button``, but also the menu and toggles with"},{"text":"button styling, to render with the bordered button style."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ButtonStyle","rhsPrecise":"s:7SwiftUI11ButtonStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ButtonStyle","preciseIdentifier":"s:7SwiftUI11ButtonStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textFieldStyle(_:)"],"names":{"title":"textFieldStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textFieldStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for text fields within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TextFieldStyle","rhsPrecise":"s:7SwiftUI14TextFieldStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textFieldStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TextFieldStyle","preciseIdentifier":"s:7SwiftUI14TextFieldStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a localized"},{"text":"string key for the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a localized"},{"text":"string resource for the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a string"},{"text":"variable as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:)"],"names":{"title":"alert(_:isPresented:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when a given condition is true, using a text view for"},{"text":"the title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true, using"},{"text":"a localized string key for a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true, using"},{"text":"a localized string resource for a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" \"Login failed.\","},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true using"},{"text":"a string variable as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:actions:message:)"],"names":{"title":"alert(_:isPresented:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when a given condition is true using"},{"text":"a text view as a title."},{"text":""},{"text":"In the example below, a login form conditionally presents an alert by"},{"text":"setting the `didFail` state variable. When the form sets the value to"},{"text":"to `true`, the system displays an alert with an \"OK\" action."},{"text":""},{"text":" struct Login: View {"},{"text":" @State private var didFail = false"},{"text":" let alertTitle: String = \"Login failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" LoginForm(didFail: $didFail)"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didFail"},{"text":" ) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle the acknowledgement."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"Please check your credentials and try again.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a string variable as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:)"],"names":{"title":"alert(_:isPresented:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a text view as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a string variable as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:)"],"names":{"title":"alert(_:item:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert using the given data to produce the alert's content"},{"text":"and a text view as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save()"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a string variable as a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:isPresented:presenting:actions:message:)"],"names":{"title":"alert(_:isPresented:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a text view for a title."},{"text":""},{"text":"For the alert to appear, both `isPresented` must be `true` and"},{"text":"`data` must not be `nil`. The data should not change after the"},{"text":"presentation occurs. Any changes that you make after the presentation"},{"text":"occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var didError = false"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" Text(alertTitle),"},{"text":" isPresented: $didError,"},{"text":" presenting: details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the alert."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - data: An optional source of truth for the alert. The system passes"},{"text":" the contents to the modifier's closures. You use this data to"},{"text":" populate the fields of an alert that you create that the system"},{"text":" displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string key for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a localized string resource for a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" \"Save failed.\","},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(_:item:actions:message:)"],"names":{"title":"alert(_:item:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message using the given data to produce the"},{"text":"alert's content and a string variable as a title."},{"text":""},{"text":"For the alert to appear, `data` must not be `nil`. The data should not"},{"text":"change after the presentation occurs. Any changes that you make after"},{"text":"the presentation occurs are ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of an alert with"},{"text":"content from a data source. The example below shows a custom data"},{"text":"source, `SaveDetails`, that provides data to populate the alert:"},{"text":""},{"text":" struct SaveDetails: Identifiable {"},{"text":" let name: String"},{"text":" let error: String"},{"text":" let id = UUID()"},{"text":" }"},{"text":""},{"text":" struct SaveButton: View {"},{"text":" @State private var details: SaveDetails?"},{"text":" let alertTitle: String = \"Save failed.\""},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Save\") {"},{"text":" details = model.save(didError: $didError)"},{"text":" }"},{"text":" .alert("},{"text":" alertTitle,"},{"text":" item: $details"},{"text":" ) { details in"},{"text":" Button(role: .destructive) {"},{"text":" // Handle the deletion."},{"text":" } label: {"},{"text":" Text(\"Delete \\(details.name)\")"},{"text":" }"},{"text":" Button(\"Retry\") {"},{"text":" // Handle the retry action."},{"text":" }"},{"text":" } message: { details in"},{"text":" Text(details.error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"Only unstyled text is supported for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the alert."},{"text":" - data: A binding to optional source of truth for the alert. The"},{"text":" system presents the alert when the binding's value is non-nil. When"},{"text":" the user presses or taps one of the alert's actions, the system sets"},{"text":" this value to `nil` and dismisses. The system passes the contents"},{"text":" to the modifier's closures. You use this data to populate the"},{"text":" fields of an alert that you create that the system displays to the"},{"text":" user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:error:actions:)"],"names":{"title":"alert(isPresented:error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":" @State private var showAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(showAlert: $showAlert, error: $error)"},{"text":" .alert(isPresented: $showAlert, error: error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - error: An optional localized Error that is used to generate the"},{"text":" alert's title. The system passes the contents to the modifier's"},{"text":" closures. You use this data to populate the fields of an alert that"},{"text":" you create that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(isPresented:error:actions:message:)"],"names":{"title":"alert(isPresented:error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":" @State private var showAlert = false"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(showAlert: $showAlert, error: $error)"},{"text":" .alert(isPresented: $showAlert, error: error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the alert. When the user presses or taps one of the alert's"},{"text":" actions, the system sets this value to `false` and dismisses."},{"text":" - error: An optional localized Error that is used to generate the"},{"text":" alert's title. The system passes the contents to the modifier's"},{"text":" closures. You use this data to populate the fields of an alert that"},{"text":" you create that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A content builder returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:)"],"names":{"title":"alert(error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`"},{"text":"if the error is a `LocalizedError`; otherwise it will be"},{"text":"``Error/localizedDescription``."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" If the error is a `LocalizedError`, its `errorDescription`"},{"text":" will be used as the title, otherwise, the title will be"},{"text":" ``Error/localizedDescription``."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:message:)"],"names":{"title":"alert(error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`"},{"text":"if the error is a `LocalizedError`; otherwise it will be"},{"text":"``Error/localizedDescription``."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The system passes the error to the modifier's closures. You use this"},{"text":" data to populate the fields of an alert that the system displays to"},{"text":" the user. If the error is a `LocalizedError`, its `errorDescription`"},{"text":" will be used as the title, otherwise, the title will be"},{"text":" ``Error/localizedDescription``."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:)"],"names":{"title":"alert(error:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) {"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The error's `errorDescription` will be used as the title."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","alert(error:actions:message:)"],"names":{"title":"alert(error:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents an alert with a message when an error is present."},{"text":""},{"text":"In the example below, a form conditionally presents an alert depending"},{"text":"upon the value of an error. When the error value isn't `nil`, the system"},{"text":"presents an alert with an \"OK\" action."},{"text":""},{"text":"The title of the alert is inferred from the error's `errorDescription`."},{"text":""},{"text":" struct TicketPurchase: View {"},{"text":" @State private var error: TicketPurchaseError? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" TicketForm(error: $error)"},{"text":" .alert(error: $error) { _ in"},{"text":" Button(\"OK\") {"},{"text":" // Handle acknowledgement."},{"text":" }"},{"text":" } message: { error in"},{"text":" Text(error.recoverySuggestion ?? \"Try again later.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in an alert dismiss the alert after the action runs."},{"text":"The default button is shown with greater prominence. You can"},{"text":"influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"If no actions are present, the system includes a standard \"OK\""},{"text":"action. No default cancel action is provided. If you want to show a"},{"text":"cancel action, use a button with a role of ``ButtonRole/cancel``."},{"text":""},{"text":"On iOS, tvOS, and watchOS, alerts only support controls with labels that"},{"text":"are ``Text``. Passing any other type of view results in the content"},{"text":"being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - error: A binding to an optional localized Error. The system presents"},{"text":" the alert when the binding's value is non-nil, and uses the error to"},{"text":" generate the alert's title. When the user presses or taps one of the"},{"text":" alert's actions, the system sets this value to `nil` and dismisses."},{"text":" The system passes the error to the modifier's closures. You use this"},{"text":" data to populate the fields of an alert that the system displays to"},{"text":" the user. The error's `errorDescription` will be used as the title."},{"text":" - actions: A ``ContentBuilder`` returning the alert's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the alert given"},{"text":" the current error."}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"E","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"LocalizedError","rhsPrecise":"s:10Foundation14LocalizedErrorP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"alert"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":"?>, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LocalizedError","preciseIdentifier":"s:10Foundation14LocalizedErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabItem(_:)"],"names":{"title":"tabItem(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabItem"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tab bar item associated with this view."},{"text":""},{"text":"Use `tabItem(_:)` to configure a view as a tab bar item in a"},{"text":"``TabView``. The example below adds two views as tabs in a ``TabView``:"},{"text":""},{"text":" struct View1: View {"},{"text":" var body: some View {"},{"text":" Text(\"View 1\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct View2: View {"},{"text":" var body: some View {"},{"text":" Text(\"View 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct TabItem: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" View1()"},{"text":" .tabItem {"},{"text":" Label(\"Menu\", systemImage: \"list.dash\")"},{"text":" }"},{"text":""},{"text":" View2()"},{"text":" .tabItem {"},{"text":" Label(\"Order\", systemImage: \"square.and.pencil\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of a two views configured as tab items in a tab"},{"text":"view.](SwiftUI-View-tabItem.png)"},{"text":""},{"text":"- Parameter label: The tab bar item to associate with this view."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabItem"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Use `Tab(title:image:value:content:)` and related initializers instead"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","moveDisabled(_:)"],"names":{"title":"moveDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"moveDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition for whether the view's view hierarchy is movable."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"moveDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","scrollContentBackground(_:)"],"names":{"title":"scrollContentBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollContentBackground"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the visibility of the background for scrollable views within"},{"text":"this view."},{"text":""},{"text":"The following example hides the standard system background of the List."},{"text":""},{"text":" List {"},{"text":" Text(\"One\")"},{"text":" Text(\"Two\")"},{"text":" Text(\"Three\")"},{"text":" }"},{"text":" .scrollContentBackground(.hidden)"},{"text":""},{"text":"On macOS 15.0 and later, the visibility of the scroll background helps"},{"text":"achieve the seamless window/titlebar appearance for scroll views that"},{"text":"fill the window's content view, or a pane's full width and height."},{"text":"`List` and `Form` have the seamless appearance by default, configurable"},{"text":"by hiding the scroll background. `ScrollView` can become seamless by"},{"text":"making the background visible."},{"text":""},{"text":"- Parameters:"},{"text":" - visibility: the visibility to use for the background."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scrollContentBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationBehavior(_:for:)"],"names":{"title":"toolbarMinimizationBehavior(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the minimize behavior for the specified bars."},{"text":""},{"text":"Use this modifier to enable toolbar minimization in response to"},{"text":"scrolling. The supported placement is"},{"text":"``ToolbarPlacement/navigationBar``."},{"text":"When the navigation bar minimizes, an integrated top tab bar will"},{"text":"also minimize."},{"text":""},{"text":"By default, the safe area adjusts as the navigation bar minimizes."},{"text":"Use ``toolbarMinimizationSafeAreaAdjustment(_:for:)`` to customize"},{"text":"this."},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" ForEach(0 ..< 50) { index in"},{"text":" Text(\"\\(index)\").padding()"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"Minimizing Title\")"},{"text":" .toolbarMinimizationBehavior(.onScrollDown, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - behavior: The minimize behavior."},{"text":" - bars: The bars to apply the behavior to."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationBehavior","preciseIdentifier":"s:7SwiftUI27ToolbarMinimizationBehaviorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationSafeAreaAdjustment(_:for:)"],"names":{"title":"toolbarMinimizationSafeAreaAdjustment(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationSafeAreaAdjustment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the safe area adjustment for the specified bars during"},{"text":"minimization."},{"text":""},{"text":"By default, the safe area adjusts as bars minimize, allowing"},{"text":"content to reflow into the space vacated by the bar. Use this"},{"text":"modifier to disable that adjustment when content should remain in"},{"text":"place -- for example, when displaying full-bleed media beneath a"},{"text":"minimizing bar."},{"text":""},{"text":"Currently, only ``ToolbarPlacement/navigationBar`` supports"},{"text":"customizing the safe area adjustment."},{"text":""},{"text":"Use this modifier alongside"},{"text":"``toolbarMinimizationBehavior(_:for:)``:"},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .toolbarMinimizationBehavior("},{"text":" .onScrollDown, for: .navigationBar)"},{"text":" .toolbarMinimizationSafeAreaAdjustment("},{"text":" .disabled, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - adjustment: The safe area adjustment."},{"text":" - bars: The bars to apply the adjustment to."}]},"functionSignature":{"parameters":[{"name":"adjustment","declarationFragments":[{"kind":"identifier","spelling":"adjustment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationSafeAreaAdjustment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"adjustment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationSafeAreaAdjustment","preciseIdentifier":"s:7SwiftUI37ToolbarMinimizationSafeAreaAdjustmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarMinimizationRestoration(_:for:)"],"names":{"title":"toolbarMinimizationRestoration(_:for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationRestoration"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the restoration behavior for the specified bars during"},{"text":"minimization."},{"text":""},{"text":"Use this modifier alongside ``toolbarMinimizationBehavior(_:for:)``"},{"text":"to customize when a minimized bar restores. By default, the bar"},{"text":"restores when the user reverses scroll direction. Use"},{"text":"``ToolbarMinimizationRestoration/atScrollEdge`` to restrict"},{"text":"restoration to when the scroll view's content reaches the scroll"},{"text":"edge -- appropriate for screens where the bar is mostly chrome"},{"text":"that doesn't need to follow the user."},{"text":""},{"text":" NavigationStack {"},{"text":" ScrollView {"},{"text":" // ..."},{"text":" }"},{"text":" .toolbarMinimizationBehavior("},{"text":" .onScrollDown, for: .navigationBar)"},{"text":" .toolbarMinimizationRestoration("},{"text":" .atScrollEdge, for: .navigationBar)"},{"text":" }"},{"text":""},{"text":"Currently, only ``ToolbarPlacement/navigationBar`` supports"},{"text":"customizing the restoration behavior, and only when used in"},{"text":"combination with ``ToolbarMinimizationBehavior/onScrollDown``."},{"text":""},{"text":"- Parameters:"},{"text":" - restoration: The restoration behavior."},{"text":" - bars: The bars to apply the restoration behavior to."}]},"functionSignature":{"parameters":[{"name":"restoration","declarationFragments":[{"kind":"identifier","spelling":"restoration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"}]},{"name":"for","internalName":"bars","declarationFragments":[{"kind":"identifier","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"..."}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarMinimizationRestoration"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"restoration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarMinimizationRestoration","preciseIdentifier":"s:7SwiftUI30ToolbarMinimizationRestorationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"bars"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarPlacement","preciseIdentifier":"s:7SwiftUI16ToolbarPlacementV"},{"kind":"text","spelling":"...) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationSizing(_:)"],"names":{"title":"presentationSizing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationSizing"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the sizing of the containing presentation."},{"text":""},{"text":"Use this modifier to apply a ``PresentationSizing`` to a"},{"text":"presentation like ``View/sheet(isPresented:onDismiss:content:)``."},{"text":"The `sizing` parameter defines the size proposed to the content, and the"},{"text":"presentation adopts the returned size. The default value is `automatic`."},{"text":""},{"text":"Sizings can be modified to fix their dimensions based on the content,"},{"text":"and optionally be sticky."},{"text":"- Seealso: ``PresentationSizing/fitted(horizontal:vertical:)`` and"},{"text":"``PresentationSizing/sticky(horizontal:vertical:)``."},{"text":""},{"text":"- Note: If the presentation's root container is a `NavigationSplitView`,"},{"text":"the proposed width only applies to the `detail` column. The `sidebar`"},{"text":"and `content` column widths use system-provided values, or those from"},{"text":"``View/navigationSplitViewColumnWidth(_:)`` or"},{"text":"``View/navigationSplitViewColumnWidth(min:ideal:max:)`` modifiers."},{"text":""},{"text":"For example, a presentation with facts about flowers could"},{"text":"prefer `.page` sizing because its content is primarily"},{"text":"informational. Since the user can choose different flowers from the"},{"text":"picker, each with different lengths of information, the size is fitted"},{"text":"vertically to size the sheet to the textual content, and vertically"},{"text":"sticky is specified to prevent the presentation from changing size too"},{"text":"frequently as the user changes selection."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var presentInfo = true"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView.sheet(isPresented: $presentInfo) {"},{"text":" VStack {"},{"text":" Picker(\"Flower Species\", selection: $flower) {"},{"text":" ForEach(Flower.allCases) {"},{"text":" Text($0.rawValue.uppercased()).tag($0)"},{"text":" }"},{"text":" }"},{"text":" Text(flower.emoji).font(.largeTitle)"},{"text":" Text(flower.informationalText)"},{"text":" }"},{"text":" .frame(maxHeight: .infinity, alignment: .top)"},{"text":" .padding()"},{"text":" .presentationSizing("},{"text":" .page"},{"text":" .fitted(horizontal: false, vertical: true)"},{"text":" .sticky(horizontal: false, vertical: true))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - sizing: A value dictating size to propose to presentation content"},{"text":" and how the presentation responds to changes in content size."}]},"functionSignature":{"parameters":[{"name":"sizing","declarationFragments":[{"kind":"identifier","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some PresentationSizing","rhs":"PresentationSizing","rhsPrecise":"s:7SwiftUI18PresentationSizingP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationSizing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sizing"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"PresentationSizing","preciseIdentifier":"s:7SwiftUI18PresentationSizingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspector(isPresented:content:)"],"names":{"title":"inspector(isPresented:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspector"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Inserts an inspector at the applied position in the view hierarchy."},{"text":""},{"text":"Apply this modifier to declare an inspector with a context-dependent"},{"text":"presentation. For example, an inspector can present as a trailing"},{"text":"column in a horizontally regular size class, but adapt to a sheet in a"},{"text":"horizontally compact size class."},{"text":""},{"text":" struct ShapeEditor: View {"},{"text":" @State var presented: Bool = false"},{"text":" var body: some View {"},{"text":" MyEditorView()"},{"text":" .inspector(isPresented: $presented) {"},{"text":" TextTraitsInspectorView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to `Bool` controlling the presented state."},{"text":" - content: The inspector content."},{"text":""},{"text":"- Note: Trailing column inspectors have their presentation state"},{"text":"restored by the framework."},{"text":"- Seealso: ``InspectorCommands`` for including the default inspector"},{"text":"commands and keyboard shortcuts."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspector"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspectorColumnWidth(min:ideal:max:)"],"names":{"title":"inspectorColumnWidth(min:ideal:max:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a flexible, preferred width for the inspector in a trailing-column"},{"text":"presentation."},{"text":""},{"text":"Apply this modifier on the content of a"},{"text":"``View/inspector(isPresented:content:)`` to specify a preferred flexible"},{"text":"width for the column. Use ``View/inspectorColumnWidth(_:)`` if you need"},{"text":"to specify a fixed width."},{"text":""},{"text":"The following example shows an editor interface with an inspector, which"},{"text":"when presented as a trailing-column, has a preferred width of 225"},{"text":"points, maximum of 400, and a minimum of 150 at which point it will"},{"text":"collapse, if allowed."},{"text":""},{"text":" MyEditorView()"},{"text":" .inspector {"},{"text":" TextTraitsInspectorView()"},{"text":" .inspectorColumnWidth(min: 150, ideal: 225, max: 400)"},{"text":" }"},{"text":""},{"text":"Only some platforms enable flexible inspector columns. If"},{"text":"you specify a width that the current presentation environment doesn't"},{"text":"support, SwiftUI may use a different width for your column."},{"text":"- Parameters:"},{"text":" - min: The minimum allowed width for the trailing column inspector"},{"text":" - ideal: The initial width of the inspector in the absence of state"},{"text":" restoration. `ideal` influences the resulting width on macOS when a"},{"text":" user double-clicks the divider on the leading edge of the inspector."},{"text":" clicks a divider to readjust"},{"text":" - max: The maximum allowed width for the trailing column inspector"}]},"functionSignature":{"parameters":[{"name":"min","declarationFragments":[{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]},{"name":"ideal","declarationFragments":[{"kind":"identifier","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"max","declarationFragments":[{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"min"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"ideal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"max"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","inspectorColumnWidth(_:)"],"names":{"title":"inspectorColumnWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed, preferred width for the inspector containing this view"},{"text":"when presented as a trailing column."},{"text":""},{"text":"Apply this modifier on the content of a"},{"text":"``View/inspector(isPresented:content:)`` to specify a fixed preferred"},{"text":"width for the trailing column. Use"},{"text":"``View/inspectorColumnWidth(min:ideal:max:)`` if you need to specify a"},{"text":"flexible width."},{"text":""},{"text":"The following example shows an editor interface with an inspector, which"},{"text":"when presented as a trailing-column, has a fixed width of 225"},{"text":"points. The example also uses ``View/interactiveDismissDisabled(_:)`` to"},{"text":"prevent the inspector from being collapsed by user action like dragging"},{"text":"a divider."},{"text":""},{"text":" MyEditorView()"},{"text":" .inspector {"},{"text":" TextTraitsInspectorView()"},{"text":" .inspectorColumnWidth(225)"},{"text":" .interactiveDismissDisabled()"},{"text":" }"},{"text":""},{"text":"- Parameter width: The preferred fixed width for the inspector if"},{"text":"presented as a trailing column."},{"text":"- Note: A fixed width does not prevent the user collapsing the"},{"text":"inspector on macOS. See ``View/interactiveDismissDisabled(_:)``."}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inspectorColumnWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","progressViewStyle(_:)"],"names":{"title":"progressViewStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"progressViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for progress views in this view."},{"text":""},{"text":"For example, the following code creates a progress view that uses the"},{"text":"\"circular\" style:"},{"text":""},{"text":" ProgressView()"},{"text":" .progressViewStyle(.circular)"},{"text":""},{"text":"- Parameter style: The progress view style to use for this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ProgressViewStyle","rhsPrecise":"s:7SwiftUI17ProgressViewStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"progressViewStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ProgressViewStyle","preciseIdentifier":"s:7SwiftUI17ProgressViewStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewDevice(_:)"],"names":{"title":"previewDevice(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDevice"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the device for a preview."},{"text":""},{"text":"By default, Xcode automatically chooses a preview device based"},{"text":"on your currently selected run destination. If you want to"},{"text":"choose a device that doesn't change based on Xcode settings,"},{"text":"provide a ``PreviewDevice`` instance that you initialize with"},{"text":"the name or model of a specific device:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewDevice(PreviewDevice(rawValue: \"iPad Pro (11-inch)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can get a list of supported preview device names, like \"iPhone 11\","},{"text":"\"iPad Pro (11-inch)\", and \"Apple Watch Series 5 - 44mm\", by using the"},{"text":"`xcrun` command in the Terminal app:"},{"text":""},{"text":" % xcrun simctl list devicetypes"},{"text":""},{"text":"Additionally, you can use the following values for macOS platform"},{"text":"development:"},{"text":"- \"Mac\""},{"text":"- \"Mac Catalyst\""},{"text":""},{"text":"- Parameter value: A device to use for preview, or `nil` to let Xcode"},{"text":" automatically choose a device based on the run destination."},{"text":"- Returns: A preview that uses the given device."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDevice"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewDevice","preciseIdentifier":"s:7SwiftUI13PreviewDeviceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use the device picker in Xcode's canvas."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewLayout(_:)"],"names":{"title":"previewLayout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewLayout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the size of the container for the preview."},{"text":""},{"text":"By default, previews use the ``PreviewLayout/device`` layout,"},{"text":"which places the view inside a visual representation of the chosen"},{"text":"device. You can instead tell a preview to use a different layout"},{"text":"by choosing one of the ``PreviewLayout`` values, like"},{"text":"``PreviewLayout/sizeThatFits``:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewLayout(.sizeThatFits)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter value: A layout to use for preview."},{"text":"- Returns: A preview that uses the given layout."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewLayout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PreviewLayout","preciseIdentifier":"s:21DeveloperToolsSupport13PreviewLayoutO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .sizeThatFitsLayout) or .fixedLayout(width:height:) instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewDisplayName(_:)"],"names":{"title":"previewDisplayName(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDisplayName"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a user visible name to show in the canvas for a preview."},{"text":""},{"text":"Apply this modifier to a view inside your ``PreviewProvider``"},{"text":"implementation to associate a display name with that view's preview:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewDisplayName(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot of the Xcode preview canvas cropped to just the top of a"},{"text":"preview, highlighting the name in the preview's title bar, which is set"},{"text":"to the word circle.](View-previewDisplayName-1)"},{"text":""},{"text":"Add a name when you have multiple previews together in the canvas that"},{"text":"you need to tell apart. The default value is `nil`, in which case"},{"text":"Xcode displays a default string."},{"text":""},{"text":"- Parameter value: A name for the preview."},{"text":"- Returns: A preview that uses the given name."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewDisplayName"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"tvOS","introduced":{"major":13,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(\\\"name\\\") instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewContext(_:)"],"names":{"title":"previewContext(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewContext"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Declares a context for the preview."},{"text":""},{"text":"- Parameter value: The context for the preview; the default is `nil`."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"PreviewContext","rhsPrecise":"s:7SwiftUI14PreviewContextP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewContext"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PreviewContext","preciseIdentifier":"s:7SwiftUI14PreviewContextP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."},{"domain":"watchOS","introduced":{"major":7,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview with a Widget timeline provider or entries instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","previewInterfaceOrientation(_:)"],"names":{"title":"previewInterfaceOrientation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewInterfaceOrientation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the orientation of the preview."},{"text":""},{"text":"By default, device previews appear right side up, using orientation"},{"text":"``InterfaceOrientation/portrait``. You can"},{"text":"change the orientation of a preview using one of the values in"},{"text":"the ``InterfaceOrientation`` structure:"},{"text":""},{"text":" struct CircleImage_Previews: PreviewProvider {"},{"text":" static var previews: some View {"},{"text":" CircleImage()"},{"text":" .previewInterfaceOrientation(.landscapeRight)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter value: An orientation to use for preview."},{"text":"- Returns: A preview that uses the given orientation."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"previewInterfaceOrientation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"InterfaceOrientation","preciseIdentifier":"s:7SwiftUI20InterfaceOrientationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"macOS","introduced":{"major":12,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"tvOS","introduced":{"major":15,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"visionOS","deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."},{"domain":"watchOS","introduced":{"major":8,"minor":0},"deprecated":{"major":27,"minor":0},"message":"Use #Preview(traits: .landscapeLeft) or other orientation traits instead."}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","popover(item:attachmentAnchor:arrowEdge:content:)"],"names":{"title":"popover(item:attachmentAnchor:arrowEdge:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a popover using the given item as a data source for the"},{"text":"popover's content."},{"text":""},{"text":"Use this method when you need to present a popover with content"},{"text":"from a custom data source. The example below uses data in"},{"text":"the `PopoverModel` structure to populate the view in the `content`"},{"text":"closure that the popover displays to the user:"},{"text":""},{"text":" struct PopoverExample: View {"},{"text":" @State private var popover: PopoverModel?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Popover\") {"},{"text":" popover = PopoverModel(message: \"Custom Message\")"},{"text":" }"},{"text":" .popover(item: $popover, arrowEdge: .bottom) { detail in"},{"text":" Text(\"\\(detail.message)\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct PopoverModel: Identifiable {"},{"text":" var id: String { message }"},{"text":" let message: String"},{"text":" }"},{"text":""},{"text":"![A screenshot showing a popover that says Custom Message hovering"},{"text":"over a Show Popover button.](View-popover-2)"},{"text":""},{"text":"- Important: Prior to iOS 18.1, the popover arrow edge was not"},{"text":"respected. Apps that are re-compiled with the iOS 18.1 or later SDK or"},{"text":"visionOS 2.1 or later SDK and run on iOS 18.1 or later or visionOS 2.1"},{"text":"or later have the arrow edge respected. On macOS, arrow edge has always"},{"text":"been respected. Alternatively, to allow the system to choose the"},{"text":"best orientation of the popover's arrow, use the"},{"text":"``View/popover(item:attachmentAnchor:content:)`` variant."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".popover(item: $popover) { detail in"},{"text":" Text(\"\\(detail.message)\")"},{"text":" .padding()"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - item: A binding to an optional source of truth for the popover."},{"text":" When `item` is non-`nil`, the system passes the contents to"},{"text":" the modifier's closure. You use this content to populate the fields"},{"text":" of a popover that you create that the system displays to the user."},{"text":" If `item` changes, the system dismisses the currently presented"},{"text":" popover and replaces it with a new popover using the same process."},{"text":" - attachmentAnchor: The positioning anchor that defines the"},{"text":" attachment point of the popover. The default is"},{"text":" ``Anchor/Source/bounds``."},{"text":" - arrowEdge: The edge of the `attachmentAnchor` that defines the"},{"text":" location of the popover's arrow. The default is"},{"text":" `nil`, which results in the system allowing any arrow edge."},{"text":" - content: A closure returning the content of the popover."}]},"functionSignature":{"parameters":[{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>"}]},{"name":"attachmentAnchor","declarationFragments":[{"kind":"identifier","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"}]},{"name":"arrowEdge","declarationFragments":[{"kind":"identifier","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":" = .rect(.bounds), "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","popover(isPresented:attachmentAnchor:arrowEdge:content:)"],"names":{"title":"popover(isPresented:attachmentAnchor:arrowEdge:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a popover when a given condition is true."},{"text":""},{"text":"Use this method to show a popover with contents that are a SwiftUI view, which you provide when"},{"text":"a bound Boolean variable is `true`. In the example below, a popover displays whenever the user"},{"text":"toggles the `isShowingPopover` state variable by pressing the \"Show Popover\" button:"},{"text":""},{"text":"```swift"},{"text":"struct PopoverExample: View {"},{"text":" @State private var isShowingPopover = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Show Popover\") {"},{"text":" self.isShowingPopover = true"},{"text":" }"},{"text":" .popover(isPresented: $isShowingPopover) {"},{"text":" Text(\"Popover Content\")"},{"text":" .padding()"},{"text":" }"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"![A screenshot showing a popover that says Popover Content hovering"},{"text":"over a Show Popover button.](View-popover-1)"},{"text":""},{"text":"- Important: Prior to iOS 18.1, the popover arrow edge was not"},{"text":"respected. Apps that are re-compiled with the iOS 18.1 or later SDK or"},{"text":"visionOS 2.1 or later SDK and run on iOS 18.1 or later or visionOS 2.1"},{"text":"or later have the arrow edge respected. On macOS, arrow edge has always"},{"text":"been respected. Alternatively, to allow the system to choose the"},{"text":"best orientation of the popover's arrow, use the"},{"text":"``View/popover(isPresented:attachmentAnchor:content:)`` variant."},{"text":""},{"text":"On iPhone, popovers adapt into sheets. In vertically compact environments, such as iPhone in"},{"text":"landscape orientation, a popover presentation automatically adapts to appear as a"},{"text":"full-screen cover. Use the ``View/presentationCompactAdaptation(_:)`` or"},{"text":"``View/presentationCompactAdaptation(horizontal:vertical:)`` modifier to"},{"text":"override this behavior."},{"text":""},{"text":"### Breakthrough effect"},{"text":""},{"text":"In visionOS, most system presentations appear with a breakthrough effect by"},{"text":"default. To change how the enclosing presentation breaks through"},{"text":"content occluding it, use ``presentationBreakthroughEffect(_:)``,"},{"text":"like in the following example:"},{"text":"```swift"},{"text":".popover(isPresented: $isShowingPopover) {"},{"text":" Text(\"Popover Content\")"},{"text":" .padding()"},{"text":" .presentationBreakthroughEffect(.prominent)"},{"text":"}"},{"text":"```"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the popover content that you return from the modifier's"},{"text":" `content` closure."},{"text":" - attachmentAnchor: The positioning anchor that defines the"},{"text":" attachment point of the popover. The default is"},{"text":" ``Anchor/Source/bounds``."},{"text":" - arrowEdge: The edge of the `attachmentAnchor` that defines the"},{"text":" location of the popover's arrow. The default is `nil`, which results in the system allowing"},{"text":" any arrow edge."},{"text":" - content: A closure returning the content of the popover."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"attachmentAnchor","declarationFragments":[{"kind":"identifier","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"}]},{"name":"arrowEdge","declarationFragments":[{"kind":"identifier","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"?"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"attachmentAnchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PopoverAttachmentAnchor","preciseIdentifier":"s:7SwiftUI23PopoverAttachmentAnchorO"},{"kind":"text","spelling":" = .rect(.bounds), "},{"kind":"externalParam","spelling":"arrowEdge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"? = nil, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDirectTouch(_:options:)"],"names":{"title":"accessibilityDirectTouch(_:options:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDirectTouch"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Explicitly set whether this accessibility element is a direct touch"},{"text":"area. Direct touch areas passthrough touch events to the app rather"},{"text":"than being handled through an assistive technology, such as VoiceOver."},{"text":"The modifier accepts an optional `AccessibilityDirectTouchOptions`"},{"text":"option set to customize the functionality of the direct touch area."},{"text":""},{"text":"For example, this is how a direct touch area would allow a VoiceOver"},{"text":"user to interact with a view with a `rotationEffect` controlled by a"},{"text":"`RotationGesture`. The direct touch area would require a user to"},{"text":"activate the area before using the direct touch area."},{"text":""},{"text":" var body: some View {"},{"text":" Rectangle()"},{"text":" .frame(width: 200, height: 200, alignment: .center)"},{"text":" .rotationEffect(angle)"},{"text":" .gesture(rotation)"},{"text":" .accessibilityDirectTouch(options: .requiresActivation)"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"isDirectTouchArea","declarationFragments":[{"kind":"identifier","spelling":"isDirectTouchArea"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"options","declarationFragments":[{"kind":"identifier","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDirectTouch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDirectTouchArea"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"externalParam","spelling":"options"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityDirectTouchOptions","preciseIdentifier":"s:7SwiftUI31AccessibilityDirectTouchOptionsV"},{"kind":"text","spelling":" = []) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listItemTint(_:)"],"names":{"title":"listItemTint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the tint effect for content in a list."},{"text":""},{"text":"The containing list's style applies the tint as appropriate. For"},{"text":"example, watchOS uses the tint color for its background platter"},{"text":"appearance. Sidebars on iOS and macOS apply the tint color to their"},{"text":"``Label`` icons, which otherwise use the accent color by default."},{"text":""},{"text":"- Parameter tint: The tint effect to use. Use `nil` to avoid"},{"text":" overriding the inherited tint."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListItemTint","preciseIdentifier":"s:7SwiftUI12ListItemTintV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listItemTint(_:)"],"names":{"title":"listItemTint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a fixed tint color for content in a list."},{"text":""},{"text":"The containing list's style applies the tint as appropriate. For"},{"text":"example, watchOS uses the tint color for its background platter"},{"text":"appearance. Sidebars on iOS and macOS apply the tint color to their"},{"text":"``Label`` icons, which otherwise use the accent color by default."},{"text":""},{"text":"> Note: This modifier is equivalent to using the version of the modifier"},{"text":" that takes a ``ListItemTint`` value and specifying the `tint` color in"},{"text":" the corresponding ``ListItemTint/fixed(_:)`` input."},{"text":""},{"text":"- Parameter tint: The color to use to tint the content. Use `nil` to"},{"text":" avoid overriding the inherited tint."}]},"functionSignature":{"parameters":[{"name":"tint","declarationFragments":[{"kind":"identifier","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listItemTint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Color","preciseIdentifier":"s:7SwiftUI5ColorV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelsHidden()"],"names":{"title":"labelsHidden()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsHidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides the labels of any controls contained within this view."},{"text":""},{"text":"Use this modifier when you want to omit a label from one or more"},{"text":"controls in your user interface. For example, the first ``Toggle`` in"},{"text":"the following example hides its label:"},{"text":""},{"text":" VStack {"},{"text":" Toggle(isOn: $toggle1) {"},{"text":" Text(\"Toggle 1\")"},{"text":" }"},{"text":" .labelsHidden()"},{"text":""},{"text":" Toggle(isOn: $toggle2) {"},{"text":" Text(\"Toggle 2\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``VStack`` in the example above centers the first toggle's control"},{"text":"element in the available space, while it centers the second toggle's"},{"text":"combined label and control element:"},{"text":""},{"text":"![A screenshot showing a view with two toggle controls where one label"},{"text":" is visible and the other label is hidden.](View-labelsHidden-1.png)"},{"text":""},{"text":"Always provide a label for controls, even when you hide the label,"},{"text":"because SwiftUI uses labels for other purposes, including accessibility."},{"text":""},{"text":"> Note: This modifier doesn't work for all labels. It applies to"},{"text":" labels that are separate from the rest of the control's interface,"},{"text":" like they are for ``Toggle``, but not to controls like a bordered"},{"text":" button where the label is inside the button's border."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelsHidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card."},{"text":""},{"text":"Use this modifier to override the default launch-card title,"},{"text":"which is the application name. Apply the modifier to a"},{"text":"``DocumentLaunchView`` or any of its ancestors."},{"text":""},{"text":"- Parameter title: The title to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a localized string key."},{"text":""},{"text":"- Parameter titleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a localized string resource."},{"text":""},{"text":"- Parameter titleResource: The resource to display."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchTitle(_:)"],"names":{"title":"documentLaunchTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the title displayed on the document launch card,"},{"text":"using a string."},{"text":""},{"text":"- Parameter title: The string to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card."},{"text":""},{"text":"Use this modifier to add descriptive text beneath the launch"},{"text":"card title. Apply the modifier to a ``DocumentLaunchView`` or"},{"text":"any of its ancestors."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a localized string key."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a localized string resource."},{"text":""},{"text":"- Parameter subtitleResource: The resource to display."}]},"functionSignature":{"parameters":[{"name":"subtitleResource","declarationFragments":[{"kind":"identifier","spelling":"subtitleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","documentLaunchSubtitle(_:)"],"names":{"title":"documentLaunchSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the subtitle displayed beneath the title on the document"},{"text":"launch card, using a string."},{"text":""},{"text":"- Parameter subtitle: The string to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"documentLaunchSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","pickerStyle(_:)"],"names":{"title":"pickerStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for pickers within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"PickerStyle","rhsPrecise":"s:7SwiftUI11PickerStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"PickerStyle","preciseIdentifier":"s:7SwiftUI11PickerStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSpacing(_:)"],"names":{"title":"listSectionSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spacing between adjacent sections in a ``List``."},{"text":""},{"text":"Pass `.default` for the default spacing, or use `.compact` for"},{"text":"a compact appearance between sections."},{"text":""},{"text":"The following example creates a ``List`` with compact spacing between"},{"text":"sections:"},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":" .listSectionSpacing(.compact)"},{"text":""},{"text":"Spacing can also be specified on an individual ``Section``, as in this"},{"text":"example:"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(.compact)"},{"text":""},{"text":"Spacing applied on sections in the ``List`` overrides spacing applied on"},{"text":"the ``List`` as a whole."},{"text":""},{"text":"- Parameter spacing: the ``ListSectionSpacing`` to apply."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ListSectionSpacing","preciseIdentifier":"s:7SwiftUI18ListSectionSpacingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionSpacing(_:)"],"names":{"title":"listSectionSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the spacing between adjacent sections in a ``List`` to a custom"},{"text":"value."},{"text":""},{"text":"The following example creates a ``List`` with 5 pts of spacing between"},{"text":"sections:"},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" }"},{"text":" .listSectionSpacing(5.0)"},{"text":""},{"text":"Spacing can also be specified on an individual ``Section``, as in this"},{"text":"example:"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(10.0)"},{"text":""},{"text":"If adjacent sections have different spacing applied, each section"},{"text":"applies half its spacing above and below. Sections without"},{"text":"explicit spacing apply the spacing of their adjacent sections."},{"text":""},{"text":" List {"},{"text":" Section(\"Colors\") {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":""},{"text":" Section(\"Borders\") {"},{"text":" Text(\"Dashed\")"},{"text":" Text(\"Solid\")"},{"text":" }"},{"text":" .listSectionSpacing(10.0)"},{"text":""},{"text":" Section(\"Shapes\") {"},{"text":" Text(\"Square\")"},{"text":" Text(\"Circle\")"},{"text":" }"},{"text":" .listSectionSpacing(100.0)"},{"text":" }"},{"text":""},{"text":"In the above example, the \"Colors\" and \"Borders\" section are separated"},{"text":"by 10 pts of spacing, and the \"Borders\" and \"Shapes\" section are"},{"text":"separated by 55 pts of spacing."},{"text":""},{"text":"Spacing applied on sections in the ``List`` overrides spacing applied on"},{"text":"the ``List`` as a whole."},{"text":""},{"text":"- Parameter spacing: the amount of spacing to apply."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHidden(_:isEnabled:)"],"names":{"title":"accessibilityHidden(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."},{"text":""},{"text":"- Parameters:"},{"text":" - hidden: Whether to hide this view from accessibility features."},{"text":" - isEnabled: If true the accessibility hidden state is applied;"},{"text":" otherwise the accessibility hidden state is unchanged."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityHidden(_:)"],"names":{"title":"accessibilityHidden(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies whether to hide this view from system accessibility features."}]},"functionSignature":{"parameters":[{"name":"hidden","declarationFragments":[{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityHidden"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hidden"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPencilDoubleTap(perform:)"],"names":{"title":"onPencilDoubleTap(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilDoubleTap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform after the user double-taps their Apple Pencil."},{"text":""},{"text":"You should respect people’s setting for the double-tap gesture by"},{"text":"reading the ``EnvironmentValues/preferredPencilDoubleTapAction``"},{"text":"environment value, if the setting makes sense in your app. If it"},{"text":"doesn’t, consider giving people a way to specify custom behavior in your"},{"text":"app instead."},{"text":""},{"text":"In the example below, double-tapping an Apple Pencil will…"},{"text":""},{"text":"- do nothing if this is what the user selected in the Settings app,"},{"text":"- switch the tool to ”Lasso” if this is the action they have configured"},{"text":" in the app,"},{"text":"- switch the tool to ”Eraser” if they haven’t configured a custom action"},{"text":" in the app and this is what they selected in the Settings app,"},{"text":"- switch the tool to the last used one otherwise."},{"text":""},{"text":"```"},{"text":"enum MyDrawingTool: Equatable {"},{"text":" case brush"},{"text":" case lasso"},{"text":" case eraser"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"enum MyPencilAction: String {"},{"text":" case switchLasso"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"@State private var currentTool = MyDrawingTool.brush"},{"text":"@State private var lastTool: MyDrawingTool?"},{"text":""},{"text":"@Environment(\\.preferredPencilDoubleTapAction) private var globalAction"},{"text":"@AppStorage(\"customPencilDoubleTapAction\") private var customAction: MyPencilAction?"},{"text":""},{"text":"var body: some View {"},{"text":" MyDrawingCanvas()"},{"text":" .onPencilDoubleTap { _ in"},{"text":" guard globalAction != .ignore else {"},{"text":" // Respect the user’s preference to ignore the double-tap gesture."},{"text":" return"},{"text":" }"},{"text":" if let customAction {"},{"text":" // If a custom action is configured, respect it."},{"text":" if customAction == .switchLasso, currentTool != .lasso {"},{"text":" (currentTool, lastTool) = (.lasso, currentTool)"},{"text":" }"},{"text":" } else if globalAction == .switchEraser, currentTool != .eraser {"},{"text":" // Switch to eraser if the user prefers it otherwise."},{"text":" (currentTool, lastTool) = (.eraser, currentTool)"},{"text":" } else if let lastTool {"},{"text":" // Switch to the last used tool by default."},{"text":" (currentTool, self.lastTool) = (lastTool, currentTool)"},{"text":" }"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"For more information about Apple Pencil double-tap gestures, see"},{"text":"[Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/apple-pencil-and-scribble#Double-tap)."},{"text":""},{"text":"> Note: If multiple views with the `onPencilDoubleTap` view modifier"},{"text":"> are visible, all their action closures will be performed after the"},{"text":"> user double-taps their Apple Pencil."},{"text":""},{"text":"- Parameters:"},{"text":" - action: The action to perform after the user double-taps their"},{"text":" Apple Pencil."},{"text":""},{"text":"- Returns: A view that performs `action` after the user double-taps"},{"text":" their Apple Pencil."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilDoubleTap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PencilDoubleTapGestureValue","preciseIdentifier":"s:7SwiftUI27PencilDoubleTapGestureValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":5}},{"domain":"macOS","introduced":{"major":14,"minor":5}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":2}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onPencilSqueeze(perform:)"],"names":{"title":"onPencilSqueeze(perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilSqueeze"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when the user squeezes their Apple Pencil."},{"text":""},{"text":"You should respect people’s setting for the squeeze gesture by reading"},{"text":"the ``EnvironmentValues/preferredPencilSqueezeAction`` environment"},{"text":"value, if the setting makes sense in your app. If it doesn’t, consider"},{"text":"giving people a way to specify custom behavior in your app instead."},{"text":""},{"text":"In the example below, completing an Apple Pencil squeeze gesture will…"},{"text":""},{"text":"- do nothing if this is what the user selected in the Settings app,"},{"text":"- switch the tool to ”Lasso” if this is the action they have configured"},{"text":" in the app,"},{"text":"- spill the ink if this is the action they have configured in the app,"},{"text":"- present a custom contextual palette if they haven’t configured a"},{"text":" custom action in the app and this is what they selected in the"},{"text":" Settings app."},{"text":""},{"text":"```"},{"text":"enum MyPencilAction: String {"},{"text":" case spillInk"},{"text":" ..."},{"text":"}"},{"text":""},{"text":"@Environment(\\.preferredPencilSqueezeAction) private var preferredAction"},{"text":"@AppStorage(\"customPencilSqueezeAction\") private var customAction: MyPencilAction?"},{"text":""},{"text":"@State private var contextualPaletteAnchor: PopoverAttachmentAnchor?"},{"text":"@State private var contextualPalettePresented = false"},{"text":""},{"text":"var body: some View {"},{"text":" MyDrawingCanvas()"},{"text":" .onPencilSqueeze { phase in"},{"text":" guard preferredAction != .ignore else {"},{"text":" // Skip if this is what the user prefers."},{"text":" return"},{"text":" }"},{"text":" if let customAction {"},{"text":" // If a custom action is configured, respect it."},{"text":" if customAction == .spillInk {"},{"text":" switch phase {"},{"text":" // Spill the ink while the user is squeezing their Apple Pencil."},{"text":" }"},{"text":" }"},{"text":" } else if preferredAction == .showContextualPalette, case let .ended(value) = phase {"},{"text":" // Present a custom contextual palette if the user prefers it."},{"text":" contextualPaletteAnchor = value.hoverPose?.anchor.map { .point($0) }"},{"text":" contextualPalettePresented = true"},{"text":" }"},{"text":" }"},{"text":" .popover("},{"text":" isPresented: $contextualPalettePresented,"},{"text":" attachmentAnchor: contextualPaletteAnchor ?? .point(.center)"},{"text":" ) {"},{"text":" MyContextualPalette()"},{"text":" }"},{"text":"```"},{"text":""},{"text":"> Note: If multiple views with the `onPencilSqueeze` view modifier"},{"text":"> are visible, all their action closures will be performed when the"},{"text":"> user squeezes their Apple Pencil."},{"text":""},{"text":"- Parameters:"},{"text":" - action: The action to perform when the user squeezes their"},{"text":" Apple Pencil."},{"text":""},{"text":"- Returns: A view that performs `action` when the user squeezes"},{"text":" their Apple Pencil."}]},"functionSignature":{"parameters":[{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onPencilSqueeze"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PencilSqueezeGesturePhase","preciseIdentifier":"s:7SwiftUI25PencilSqueezeGesturePhaseO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":5}},{"domain":"macOS","introduced":{"major":14,"minor":5}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":2}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarHeader(content:)"],"names":{"title":"tabViewSidebarHeader(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarHeader"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom header to the sidebar of a tab view."},{"text":""},{"text":"The header appears at the top of the sidebar before"},{"text":"any tab labels and can scroll with the content. The header is"},{"text":"only visible when the ``TabView`` is displaying the sidebar."},{"text":""},{"text":"The following example adds a welcome message to"},{"text":"the top of the sidebar:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarHeader {"},{"text":" WelcomeHeaderView()"},{"text":" }"},{"text":""},{"text":"> Note: To have a sidebar, a``TabView`` needs the"},{"text":" ``TabViewStyle/sidebarAdaptable`` style."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarHeader"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarFooter(content:)"],"names":{"title":"tabViewSidebarFooter(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarFooter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom footer to the sidebar of a tab view."},{"text":""},{"text":"The footer appears at the bottom of the sidebar after"},{"text":"any tab labels and can scroll with the content. The footer is"},{"text":"only visible when the ``TabView`` is displaying the sidebar."},{"text":""},{"text":"The following example adds a link to contact support to"},{"text":"the bottom of the sidebar content:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarFooter {"},{"text":" ContactSupportLink()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarFooter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewSidebarBottomBar(content:)"],"names":{"title":"tabViewSidebarBottomBar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarBottomBar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a custom bottom bar to the sidebar of a tab view."},{"text":""},{"text":"The content is pinned at the bottom of the sidebar, so it's"},{"text":"always visible when the sidebar is visible and doesn't"},{"text":"scroll with the content."},{"text":""},{"text":"The following example adds an account button to"},{"text":"the bottom of the sidebar:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\") {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewSidebarBottomBar {"},{"text":" AccountButton()"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewSidebarBottomBar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - statusKey: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"statusKey","declarationFragments":[{"kind":"identifier","spelling":"statusKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"statusKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityScrollStatus(_:isEnabled:)"],"names":{"title":"accessibilityScrollStatus(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Changes the announcement provided by accessibility technologies"},{"text":"when a user scrolls a scroll view within this view."},{"text":""},{"text":"Use this modifier to provide a description of the content at the"},{"text":"current position in the scroll view. For example, you could use this"},{"text":"modifier to announce the current month being scrolled to in a view that"},{"text":"contains a calendar."},{"text":""},{"text":" @State private var position = ScrollPosition(idType: Month.ID.self)"},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(months) { months in"},{"text":" MonthView(month: months)"},{"text":" }"},{"text":" }"},{"text":" .scrollTargetLayout()"},{"text":" }"},{"text":" .scrollPosition($position)"},{"text":" .accessibilityScrollStatus(\"\\(months.name(position.viewID)) \\(year)\")"},{"text":""},{"text":"By default, VoiceOver announces \"Page X of Y\" while scrolling."},{"text":""},{"text":"- Parameters:"},{"text":" - status: The current status of the scroll view."},{"text":" - isEnabled: If true the accessibility scroll status is applied;"},{"text":" otherwise the accessibility scroll status is unchanged."}]},"functionSignature":{"parameters":[{"name":"status","declarationFragments":[{"kind":"identifier","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityScrollStatus"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"status"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabels: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabelKeys: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabelKeys","declarationFragments":[{"kind":"identifier","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:isEnabled:)"],"names":{"title":"accessibilityInputLabels(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameters:"},{"text":" - inputLabels: The accessibility input labels to apply."},{"text":" - isEnabled: If true the accessibility input labels are applied;"},{"text":" otherwise the accessibility input labels are unchanged."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."},{"text":""},{"text":"- Parameter inputLabels: An array of Text elements to use as input labels."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."}]},"functionSignature":{"parameters":[{"name":"inputLabelKeys","declarationFragments":[{"kind":"identifier","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabelKeys"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityInputLabels(_:)"],"names":{"title":"accessibilityInputLabels(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets alternate input labels with which users identify a view."},{"text":""},{"text":"Provide labels in descending order of importance. Voice Control"},{"text":"and Full Keyboard Access use the input labels."},{"text":""},{"text":"> Note: If you don't specify any input labels, the user can still"},{"text":" refer to the view using the accessibility label that you add with the"},{"text":" `accessibilityLabel()` modifier."}]},"functionSignature":{"parameters":[{"name":"inputLabels","declarationFragments":[{"kind":"identifier","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityInputLabels"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"inputLabels"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","searchCompletion(_:)"],"names":{"title":"searchCompletion(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchCompletion"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Associates a fully formed string with the value of this view when used"},{"text":"as a search suggestion."},{"text":""},{"text":"Use this method to associate a fully formed string with a"},{"text":"view that is within a search suggestion list context. The system"},{"text":"uses this value when the view is selected to replace the"},{"text":"partial text being currently edited of the associated search field."},{"text":""},{"text":"On tvOS, the string that you provide to the this modifier is"},{"text":"used when displaying the associated suggestion and when"},{"text":"replacing the partial text of the search field."},{"text":""},{"text":" SearchPlaceholderView()"},{"text":" .searchable(text: $text) {"},{"text":" Text(\"🍎\").searchCompletion(\"apple\")"},{"text":" Text(\"🍐\").searchCompletion(\"pear\")"},{"text":" Text(\"🍌\").searchCompletion(\"banana\")"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - completion: A string to use as the view’s completion."}]},"functionSignature":{"parameters":[{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"searchCompletion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotorEntry(id:in:)"],"names":{"title":"accessibilityRotorEntry(id:in:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotorEntry"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines an explicit identifier tying an Accessibility element for this"},{"text":"view to an entry in an Accessibility Rotor."},{"text":""},{"text":"Use this when creating an AccessibilityRotorEntry without a namespace"},{"text":"does not allow SwiftUI to automatically find and reveal the element,"},{"text":"or when the Rotor entry should be associated with a sub-element of"},{"text":"a complex view generated in a ForEach, for example."},{"text":""},{"text":"- Parameter id: An arbitrary hashable identifier. Pass this same value"},{"text":"when initializing an AccessibilityRotorEntry."},{"text":"- Parameter namespace: A namespace created with `@Namespace()`. Pass this"},{"text":"same namespace when initializing an `AccessibilityRotorEntry`."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotorEntry"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonBorderShape(_:)"],"names":{"title":"buttonBorderShape(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonBorderShape"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the border shape for buttons in this view."},{"text":""},{"text":"The border shape is used to draw the platter for a bordered button."},{"text":""},{"text":"The border shape affects buttons of the"},{"text":"``PrimitiveButtonStyle/bordered`` and"},{"text":"``PrimitiveButtonStyle/borderedProminent`` styles."},{"text":""},{"text":"- Note: In macOS 15 and earlier, some border shapes are only applicable"},{"text":" to bordered buttons in widgets."},{"text":""},{"text":"- Parameter shape: The shape to use."}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonBorderShape"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonBorderShape","preciseIdentifier":"s:7SwiftUI17ButtonBorderShapeV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sceneAccessory(content:)"],"names":{"title":"sceneAccessory(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sceneAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines any scene accessories associated with `self`."},{"text":""},{"text":"A scene accessory declares supplementary content that the system"},{"text":"presents on the app's behalf when an associated piece of system"},{"text":"functionality becomes available, for example when an external display"},{"text":"is connected. The app declares what content to provide;"},{"text":"the system decides when and where to present it. Scene accessories"},{"text":"enhance the app's experience when available, but the app must remain"},{"text":"fully functional without them."},{"text":""},{"text":"For example, you can define a scene accessory for previewing a"},{"text":"non-interactive presentation, which may be presented when an external"},{"text":"display is connected:"},{"text":""},{"text":" struct RootView: View {"},{"text":" var document: PresentationDocument"},{"text":""},{"text":" var body: some View {"},{"text":" PresentationDocumentView(document: document)"},{"text":" .sceneAccessory {"},{"text":" ExternalNonInteractiveAccessory {"},{"text":" PresentationPreview(document: document)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Use the ``SceneAccessoryContent/onAvailabilityChange`` modifier to"},{"text":"observe a scene accessory's system-determined availability. Observe the"},{"text":"lifecycle of the accessory's content using ``View/onAppear``,"},{"text":"``View/onDisappear``, and ``EnvironmentValues/scenePhase``."},{"text":""},{"text":"For example, you can present various controls based on the scene"},{"text":"accessory's current state:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @State private var isEnabled = false"},{"text":" @State private var isAvailable = false"},{"text":" @State private var isPresented = false"},{"text":" var document: PresentationDocument"},{"text":""},{"text":" var body: some View {"},{"text":" PresentationDocumentView(document: document)"},{"text":" .toolbar {"},{"text":" if isAvailable {"},{"text":" // Include a toolbar button to enable the"},{"text":" // scene accessory when a display is available."},{"text":" SecondaryDisplayToggle(isEnabled: $isEnabled)"},{"text":""},{"text":" // Include additional toolbar controls once the"},{"text":" // accessory is presented."},{"text":" if isPresented {"},{"text":" SecondaryDisplayControls()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .sceneAccessory {"},{"text":" ExternalNonInteractiveAccessory("},{"text":" isEnabled: $isEnabled"},{"text":" ) {"},{"text":" PresentationPreview(document: document)"},{"text":" .onAppear { isPresented = true }"},{"text":" .onDisappear { isPresented = false }"},{"text":" }"},{"text":" .onAvailabilityChange { newValue in"},{"text":" isAvailable = newValue"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"SceneAccessoryContent","rhsPrecise":"s:7SwiftUI21SceneAccessoryContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sceneAccessory"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"SceneAccessoryContent","preciseIdentifier":"s:7SwiftUI21SceneAccessoryContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macCatalyst","isUnconditionallyUnavailable":true},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model knows"},{"text":" // about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":"Replacing system Rotors this way is useful when the System Rotor"},{"text":"does not automatically pick up elements that aren't on-screen,"},{"text":"such as elements far down in a `LazyVStack` or `List`."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"headings."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var contentHeadingRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(.heading) {"},{"text":" ForEach(range in message.contentHeadingRanges) {"},{"text":" AccessibilityRotorEntry(textRange: range)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMessages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" id: \\.uuid, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to the headings in its vertical stack of"},{"text":"messages."},{"text":""},{"text":" // `messageListItems` is a list of `Identifiable` `MessageListItem`s"},{"text":" // that are either a `Message` or a heading, containing a `subject`."},{"text":" // `headingMessageListItems` is a filtered list of"},{"text":" // `messageListItems` containing just the headings."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messageListItems) { messageListItem in"},{"text":" switch messageListItem {"},{"text":" case .heading(let subject):"},{"text":" Text(subject)"},{"text":" case .message(let message):"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor("},{"text":" .heading, entries: headingMessageListItems, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to the headings in its vertical stack of"},{"text":"messages."},{"text":""},{"text":" // `messageListItems` is a list of `MessageListItem`s"},{"text":" // that are either a `Message` or a heading, containing a `subject`"},{"text":" // and a `uuid`."},{"text":" // `headingMessageListItems` is a filtered list of"},{"text":" // `messageListItems` containing just the headings."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messageListItems) { messageListItem in"},{"text":" switch messageListItem {"},{"text":" case .heading(let subject):"},{"text":" Text(subject)"},{"text":" case .message(let message):"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor("},{"text":" .heading, entries: headingMessageListItems,"},{"text":" entryID: \\.uuid, label: \\.subject"},{"text":" )"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor replacing the specified system-provided"},{"text":"Rotor. The Rotor will be attached to the current Accessibility element,"},{"text":"and each entry will go the specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing headings."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated when"},{"text":" // `content` is set and then cached so that we don't have to"},{"text":" // re-compute them."},{"text":" var headingRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor("},{"text":" .heading,"},{"text":" textRanges: message.headingRanges"},{"text":" )"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - systemRotor: The system-provided Rotor that will be overridden"},{"text":" by this custom Rotor."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"systemRotor","declarationFragments":[{"kind":"identifier","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"systemRotor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilitySystemRotor","preciseIdentifier":"s:7SwiftUI24AccessibilitySystemRotorV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:)"],"names":{"title":"accessibilityRotor(_:entries:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label,"},{"text":"and entries generated from the content closure."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\") {"},{"text":" // Not all the MessageViews are generated at once, the model"},{"text":" // knows about all the messages."},{"text":" ForEach(messages) { message in"},{"text":" // If the Message is from a VIP, make a Rotor entry for it."},{"text":" if message.isVIP {"},{"text":" AccessibilityRotorEntry(message.subject, id: message.id)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - entries: Content used to generate Rotor entries. This can"},{"text":" include AccessibilityRotorEntry structs, as well as constructs such"},{"text":" as if and ForEach."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"Content","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"Content","rhs":"AccessibilityRotorContent","rhsPrecise":"s:7SwiftUI25AccessibilityRotorContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AccessibilityRotorContent","preciseIdentifier":"s:7SwiftUI25AccessibilityRotorContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelKey","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMessages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelResource: Localized label identifying this Rotor to the"},{"text":" user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelResource","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Identifiable` `Message`s that have a"},{"text":" // `subject`."},{"text":" // `vipMesages` is a filtered version of that list containing only"},{"text":" // messages from VIPs."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of identifiable values that will be"},{"text":" used to generate the entries of the Rotor. The identifiers"},{"text":" of the `Identifiable` values must match up with identifiers in a"},{"text":" `ForEach` or explicit `id` calls within the `ScrollView`."},{"text":" When the user navigates to entries from this Rotor, SwiftUI will"},{"text":" automatically scroll them into place as needed."},{"text":" - entryLabel: Key path on the `Identifiable` type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"EntryModel","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"EntryModel","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires that the Rotor be attached to a"},{"text":"`ScrollView`, or an Accessibility Element directly within a"},{"text":"`ScrollView`, such as a `ForEach`. When the user navigates to entries"},{"text":"from this Rotor, SwiftUI will automatically scroll them into place as"},{"text":"needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMesages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryID: \\.uuid, entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelKey: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelKey","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires that the Rotor be attached to a"},{"text":"`ScrollView`, or an Accessibility Element directly within a"},{"text":"`ScrollView`, such as a `ForEach`. When the user navigates to entries"},{"text":"from this Rotor, SwiftUI will automatically scroll them into place as"},{"text":"needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":""},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMesages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" entryID: \\.uuid, entryLabel: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabelResource: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabelResource","declarationFragments":[{"kind":"identifier","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"EntryModel","index":0,"depth":1},{"name":"ID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabelResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:entries:entryID:entryLabel:)"],"names":{"title":"accessibilityRotor(_:entries:entryID:entryLabel:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"Using this modifier requires"},{"text":"that the Rotor be attached to a `ScrollView`, or an Accessibility"},{"text":"Element directly within a `ScrollView`, such as a `ForEach`."},{"text":"When the user navigates to entries from this Rotor, SwiftUI will"},{"text":"automatically scroll them into place as needed."},{"text":""},{"text":"In the following example, a Message application creates a Rotor"},{"text":"allowing users to navigate to specifically the messages originating from"},{"text":"VIPs."},{"text":" // `messages` is a list of `Message`s that have a `subject` and a"},{"text":" // `uuid`. `vipMessages` is a filtered version of that list"},{"text":" // containing only messages from VIPs."},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(messages) { message in"},{"text":" MessageView(message)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .accessibilityElement(children: .contain)"},{"text":" .accessibilityRotor(\"VIPs\", entries: vipMessages,"},{"text":" id: \\.uuid, label: \\.subject)"},{"text":""},{"text":"- Parameters:"},{"text":" - rotorLabel: Localized label identifying this Rotor to the user."},{"text":" - entries: An array of values that will be used to generate"},{"text":" the entries of the Rotor."},{"text":" - entryID: Key path on the entry type that can be used"},{"text":" to generate an identifier for the Entry. The identifiers"},{"text":" must match up with identifiers in `ForEach` or explicit `id` calls"},{"text":" within the `ScrollView`."},{"text":" - entryLabel: Key path on the entry type that can be"},{"text":" used to get a user-visible label for every Rotor entry. This is used"},{"text":" on macOS when the user opens the list of entries for the Rotor."}]},"functionSignature":{"parameters":[{"name":"rotorLabel","declarationFragments":[{"kind":"identifier","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"entries","declarationFragments":[{"kind":"identifier","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"]"}]},{"name":"entryID","declarationFragments":[{"kind":"identifier","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">"}]},{"name":"entryLabel","declarationFragments":[{"kind":"identifier","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"EntryModel","index":1,"depth":1},{"name":"ID","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"ID","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rotorLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"entries"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"entryID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"entryLabel"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"EntryModel"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - labelKey: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRotor(_:textRanges:)"],"names":{"title":"accessibilityRotor(_:textRanges:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Create an Accessibility Rotor with the specified user-visible label"},{"text":"and entries for each of the specified ranges. The Rotor will be attached"},{"text":"to the current Accessibility element, and each entry will go the"},{"text":"specified range of that element."},{"text":""},{"text":"An Accessibility Rotor is a shortcut for Accessibility users to"},{"text":"quickly navigate to specific elements of the user interface,"},{"text":"and optionally specific ranges of text within those elements."},{"text":""},{"text":"In the following example, a Message application adds a Rotor allowing"},{"text":"the user to navigate through all the ranges of text containing"},{"text":"email addresses."},{"text":""},{"text":" extension Message {"},{"text":" // Ranges of special areas in the `content` text. Calculated"},{"text":" // when `content` is set and then cached so that we don't have"},{"text":" // to re-compute them."},{"text":" var emailAddressRanges: [Range]"},{"text":" }"},{"text":""},{"text":" struct MessageContentView: View {"},{"text":" TextEditor(.constant(message.content))"},{"text":" .accessibilityRotor(\"Email Addresses\","},{"text":" textRanges: message.emailAddressRanges)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - label: Localized label identifying this Rotor to the user."},{"text":" - textRanges: An array of ranges that will be used to generate"},{"text":" the entries of the Rotor."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"textRanges","declarationFragments":[{"kind":"identifier","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRotor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"textRanges"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Index","preciseIdentifier":"s:SS5IndexV"},{"kind":"text","spelling":">]) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","formStyle(_:)"],"names":{"title":"formStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"formStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for forms in a view hierarchy."},{"text":""},{"text":"- Parameter style: The form style to set."},{"text":"- Returns: A view that uses the specified form style for itself"},{"text":" and its child views."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"FormStyle","rhsPrecise":"s:7SwiftUI9FormStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"formStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FormStyle","preciseIdentifier":"s:7SwiftUI9FormStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActions(edge:allowsFullSwipe:content:)"],"names":{"title":"swipeActions(edge:allowsFullSwipe:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom swipe actions to a row in a list."},{"text":""},{"text":"Use this method to add swipe actions to a view that acts as a row in a"},{"text":"list. Indicate the ``HorizontalEdge`` where the swipe action"},{"text":"originates, and define individual actions with ``Button`` instances."},{"text":"For example, if you have a list of messages,"},{"text":"you can add an action to toggle a message as unread"},{"text":"on a swipe from the leading edge,"},{"text":"and actions to delete or flag messages on a trailing edge swipe:"},{"text":""},{"text":" List {"},{"text":" ForEach(store.messages) { message in"},{"text":" MessageCell(message: message)"},{"text":" .swipeActions(edge: .leading) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) {"},{"text":" store.delete(message)"},{"text":" } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" Button { store.flag(message) } label: {"},{"text":" Label(\"Flag\", systemImage: \"flag\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Actions appear in the order you list them, starting from the swipe's"},{"text":"originating edge. In the example above, the Delete action appears"},{"text":"closest to the screen's trailing edge:"},{"text":""},{"text":"![A screenshot of a list of messages, where one of the messages has been"},{"text":" swiped from the trailing edge, revealing a Flag and Delete button."},{"text":" The Flag button is grey, while the Delete button is"},{"text":" red.](View-swipeActions-1)"},{"text":""},{"text":"For labels or images that appear in swipe actions, SwiftUI automatically"},{"text":"applies the ``SymbolVariants/fill-swift.type.property`` symbol variant,"},{"text":"as shown above."},{"text":""},{"text":"By default, the user can perform the first action for a given swipe"},{"text":"direction with a full swipe. For the example above, the user can perform"},{"text":"both the toggle unread and delete actions with full swipes."},{"text":"You can opt out of this behavior for an edge by setting"},{"text":"the `allowsFullSwipe` parameter to `false`. For example, you can"},{"text":"disable the full swipe on the leading edge:"},{"text":""},{"text":" .swipeActions(edge: .leading, allowsFullSwipe: false) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When you set a role for a button using one of the values from the"},{"text":"``ButtonRole`` enumeration, SwiftUI styles the button according to"},{"text":"its role. In the example above, the delete action appears in"},{"text":"``ShapeStyle/red`` because it has the ``ButtonRole/destructive`` role."},{"text":"If you want to set a different color — for example, to match the"},{"text":"overall theme of your app's UI — add the ``View/tint(_:)``"},{"text":"modifier to the button:"},{"text":""},{"text":" MessageCell(message: message)"},{"text":" .swipeActions(edge: .leading) {"},{"text":" Button { store.toggleUnread(message) } label: {"},{"text":" if message.isUnread {"},{"text":" Label(\"Read\", systemImage: \"envelope.open\")"},{"text":" } else {"},{"text":" Label(\"Unread\", systemImage: \"envelope.badge\")"},{"text":" }"},{"text":" }"},{"text":" .tint(.blue)"},{"text":" }"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) { store.delete(message) } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" Button { store.flag(message) } label: {"},{"text":" Label(\"Flag\", systemImage: \"flag\")"},{"text":" }"},{"text":" .tint(.orange)"},{"text":" }"},{"text":""},{"text":"The modifications in the code above make the toggle unread action"},{"text":"``ShapeStyle/blue`` and the flag action ``ShapeStyle/orange``:"},{"text":""},{"text":"![A screenshot of a row that the user swiped from the leading edge"},{"text":" to reveal a blue Unread button, and another screenshot of the same"},{"text":" row after the user swiped from the trailing edge to reveal an"},{"text":" orange Flag button and a red Delete button.](View-swipeActions-2)"},{"text":""},{"text":"When you add swipe actions, SwiftUI no longer synthesizes the Delete"},{"text":"actions that otherwise appear when using the"},{"text":"``ForEach/onDelete(perform:)`` method on a ``ForEach`` instance."},{"text":"You become responsible for creating a Delete"},{"text":"action, if appropriate, among your swipe actions."},{"text":""},{"text":"Actions accumulate for a given edge if you call the modifier multiple"},{"text":"times on the same list row view."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The edge of the view to associate the swipe actions with."},{"text":" The default is ``HorizontalEdge/trailing``."},{"text":" - allowsFullSwipe: A Boolean value that indicates whether a full swipe"},{"text":" automatically performs the first action. The default is `true`."},{"text":" - content: The content of the swipe actions."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"allowsFullSwipe","declarationFragments":[{"kind":"identifier","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":" = .trailing, "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)"],"names":{"title":"swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPresentationChanged"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom swipe actions to a row in a list or container,"},{"text":"notifying you when the actions are revealed or dismissed."},{"text":""},{"text":"Use this overload when you need to react to the swipe"},{"text":"actions's visibility — for example, to dim the row or"},{"text":"update surrounding chrome while actions are showing."},{"text":""},{"text":" @State private var isSwiped = false"},{"text":""},{"text":" MessageRow(message)"},{"text":" .opacity(isSwiped ? 0.5 : 1.0)"},{"text":" .swipeActions(edge: .trailing) {"},{"text":" Button(role: .destructive) {"},{"text":" store.delete(message)"},{"text":" } label: {"},{"text":" Label(\"Delete\", systemImage: \"trash\")"},{"text":" }"},{"text":" } onPresentationChanged: {"},{"text":" isSwiped = $0"},{"text":" }"},{"text":""},{"text":"The closure is called with `true` when the row's swipe"},{"text":"actions become visible and `false` when they are"},{"text":"dismissed."},{"text":""},{"text":"- Parameters:"},{"text":" - edge: The edge of the view to associate the swipe"},{"text":" actions with."},{"text":" The default is ``HorizontalEdge/trailing``."},{"text":" - allowsFullSwipe: A Boolean value that indicates"},{"text":" whether a full swipe automatically performs the"},{"text":" first action. The default is `true`."},{"text":" - content: The content of the swipe actions."},{"text":" - onPresentationChanged: A closure called when the"},{"text":" swipe actions are revealed or dismissed."}]},"functionSignature":{"parameters":[{"name":"edge","declarationFragments":[{"kind":"identifier","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"}]},{"name":"allowsFullSwipe","declarationFragments":[{"kind":"identifier","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},{"name":"onPresentationChanged","declarationFragments":[{"kind":"identifier","spelling":"onPresentationChanged"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActions"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"edge"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalEdge","preciseIdentifier":"s:7SwiftUI14HorizontalEdgeO"},{"kind":"text","spelling":" = .trailing, "},{"kind":"externalParam","spelling":"allowsFullSwipe"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPresentationChanged"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","swipeActionsContainer()"],"names":{"title":"swipeActionsContainer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActionsContainer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Coordinates swipe action dismissal and mutual"},{"text":"exclusion across rows in a container."},{"text":""},{"text":"Apply this modifier to a `ScrollView` or other"},{"text":"container that holds rows using the"},{"text":"``View/swipeActions(edge:allowsFullSwipe:content:)``"},{"text":"modifier. The container ensures that:"},{"text":""},{"text":"- Only one row's swipe actions are revealed at"},{"text":" a time."},{"text":"- Scrolling the container dismisses any open"},{"text":" actions."},{"text":"- Tapping outside the active row dismisses its"},{"text":" actions."},{"text":""},{"text":"`List` provides this coordination automatically."},{"text":"Use `swipeActionsContainer()` when building custom"},{"text":"row-based layouts that use `ScrollView`,"},{"text":"`LazyVStack`, or similar containers."},{"text":""},{"text":" ScrollView {"},{"text":" LazyVStack {"},{"text":" ForEach(items) { item in"},{"text":" ItemRow(item)"},{"text":" .swipeActions {"},{"text":" Button(\"Delete\", role: .destructive) {"},{"text":" delete(item)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .swipeActionsContainer()"},{"text":""},{"text":"Applying this modifier to a `List` is a no-op,"},{"text":"since `List` already provides this coordination."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swipeActionsContainer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dismissalConfirmationDialog(_:shouldPresent:actions:message:)"],"names":{"title":"dismissalConfirmationDialog(_:shouldPresent:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a dismiss action has been triggered."},{"text":""},{"text":"On macOS, the dialog will be presented when attempting to dismiss the"},{"text":"window for this view."},{"text":""},{"text":"For example, you could present a dialog asking to persist unsaved"},{"text":"changes:"},{"text":""},{"text":"```swift"},{"text":"struct ComposeMessage: View {"},{"text":" @State private var message = Message()"},{"text":""},{"text":" var body: some View {"},{"text":" MessageEditor(message: $message)"},{"text":" .dismissalConfirmationDialog("},{"text":" \"Save This Message As Draft?\","},{"text":" shouldPresent: message.hasUnsavedChanges"},{"text":" ) {"},{"text":" Button(\"Save\") {"},{"text":" message.save()"},{"text":" }"},{"text":" Button(\"Don't Save\", role: .destructive) {"},{"text":" message.discard()"},{"text":" }"},{"text":" } message: {"},{"text":" Text("},{"text":" \"\"\""},{"text":" This message has not been sent and contains\\"},{"text":" unsaved changes."},{"text":" \"\"\")"},{"text":" }"},{"text":"}"},{"text":"```"},{"text":""},{"text":"All actions in the dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dismissal dialogs include a standard cancellation action by default."},{"text":"If you provide a button with a role of ``ButtonRole/cancel``, that"},{"text":"button takes the place of the default cancellation action."},{"text":""},{"text":"The cancellation action will always prevent the dismissal, while other"},{"text":"actions will allow the dismiss to proceed."},{"text":""},{"text":"On iOS, in addition to the standard cancellation action, the dismissal"},{"text":"dialog also includes a standard close action by default. If you provide"},{"text":"a button with a role of ``ButtonRole/destructive``, that button takes the"},{"text":"place of the default close action. This action will immediately dismiss the"},{"text":"dialog and the view's associated window."},{"text":""},{"text":"- Parameters:"},{"text":" - title: The title of the dialog."},{"text":" - shouldPresent: A Boolean value that determines whether"},{"text":" to present the dialog upon dismissal."},{"text":" - actions: A content builder returning the dialog's actions."},{"text":" - message: A content builder returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"shouldPresent","declarationFragments":[{"kind":"identifier","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dismissalConfirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"shouldPresent"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","deleteDisabled(_:)"],"names":{"title":"deleteDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"deleteDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a condition for whether the view's view hierarchy is deletable."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"deleteDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIdentifier(_:isEnabled:)"],"names":{"title":"accessibilityIdentifier(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the string you specify to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."},{"text":""},{"text":"- Parameters:"},{"text":" - identifier: The accessibility identifier to apply."},{"text":" - isEnabled: If true the accessibility identifier is applied;"},{"text":" otherwise the accessibility identifier is unchanged."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityIdentifier(_:)"],"names":{"title":"accessibilityIdentifier(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Uses the string you specify to identify the view."},{"text":""},{"text":"Use this value for testing. It isn't visible to the user."}]},"functionSignature":{"parameters":[{"name":"identifier","declarationFragments":[{"kind":"identifier","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityIdentifier"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"identifier"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowSpacing(_:)"],"names":{"title":"listRowSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the vertical spacing between two adjacent rows in a List."},{"text":""},{"text":"The following example creates a List with 10 pts of spacing between each"},{"text":"row:"},{"text":""},{"text":" List {"},{"text":" Text(\"Blue\")"},{"text":" Text(\"Red\")"},{"text":" }"},{"text":" .listRowSpacing(10.0)"},{"text":""},{"text":"- Parameter spacing: The spacing value to use. A value of `nil` uses"},{"text":" the default spacing."}]},"functionSignature":{"parameters":[{"name":"spacing","declarationFragments":[{"kind":"identifier","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"spacing"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - maximumDistance: The maximum distance that the fingers or cursor"},{"text":" performing the long press can move before the gesture fails."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."},{"text":""},{"text":"- Parameters:"},{"text":" - minimumDuration: The minimum duration of the long press that must"},{"text":" elapse before the gesture succeeds."},{"text":" - maximumDistance: The maximum distance that the fingers or cursor"},{"text":" performing the long press can move before the gesture fails."},{"text":" - inputKinds: A set of input kinds that this gesture recognizes."},{"text":" If not specified, the gesture will recognize all applicable input"},{"text":" kinds that a person can use to perform it."},{"text":" - action: The action to perform when a long press is recognized."},{"text":" - onPressingChanged: A closure to run when the pressing state of the"},{"text":" gesture changes, passing the current state as a parameter."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"inputKinds","declarationFragments":[{"kind":"identifier","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onPressingChanged","declarationFragments":[{"kind":"identifier","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onPressingChanged"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)"],"names":{"title":"onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a long press"},{"text":"gesture."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"maximumDistance","declarationFragments":[{"kind":"identifier","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]},{"name":"pressing","declarationFragments":[{"kind":"identifier","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"maximumDistance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":" = 10, "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"macOS","introduced":{"major":10,"minor":15},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"},{"domain":"watchOS","introduced":{"major":6,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:maximumDuration:perform:onPressingChanged:)"}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onLongPressGesture(minimumDuration:pressing:perform:)"],"names":{"title":"onLongPressGesture(minimumDuration:pressing:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes"},{"text":"a long press gesture."}]},"functionSignature":{"parameters":[{"name":"minimumDuration","declarationFragments":[{"kind":"identifier","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"pressing","declarationFragments":[{"kind":"identifier","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onLongPressGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"minimumDuration"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" = 0.5, "},{"kind":"externalParam","spelling":"pressing"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":10,"minor":15},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"renamed":"onLongPressGesture(minimumDuration:perform:onPressingChanged:)"},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":6,"minor":0},"isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"localized string key for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are ``Text``. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"localized string resource for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are ``Text``. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"string variable as a title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title,"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog when a given condition is true, using a"},{"text":"text view for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Permanently erase the items in the trash?\"),"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a localized string key for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a localized string resource for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Permanently erase the items in the Trash?\","},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a string variable for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title,"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" isShowingDialog = false"},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether to"},{"text":" present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message when a given condition is"},{"text":"true, using a text view for the title."},{"text":""},{"text":"In the example below, a button conditionally presents a confirmation"},{"text":"dialog depending upon the value of a bound Boolean variable. When the"},{"text":"Boolean value is set to `true`, the system displays a confirmation"},{"text":"dialog with a cancel action and a destructive action."},{"text":""},{"text":" struct ConfirmEraseItems: View {"},{"text":" @State private var isShowingDialog = false"},{"text":" var body: some View {"},{"text":" Button(\"Empty Trash\") {"},{"text":" isShowingDialog = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Permanently erase the items in the trash?\"),"},{"text":" isPresented: $isShowingDialog"},{"text":" ) {"},{"text":" Button(\"Empty Trash\", role: .destructive) {"},{"text":" // Handle empty trash action."},{"text":" }"},{"text":" } message: {"},{"text":" Text(\"You cannot undo this action.\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string key for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string resource for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a string variable for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" var title: String"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title, isPresented: $isConfirming,"},{"text":" presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a text view for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Import New File?\"),"},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"\"\""},{"text":" Import \\(detail.name)"},{"text":" File Type: \\(detail.fileType.description)"},{"text":" \"\"\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string key for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a localized string resource for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a string variable for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"T","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog using data to produce the dialog's"},{"text":"content and a text view for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"T","index":1,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string key for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf, and"},{"text":"treats the localized key similar to"},{"text":"``Text/init(_:tableName:bundle:comment:)``. See ``Text`` for more"},{"text":"information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string resource for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" \"Are you sure you want to import this file?\","},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This modifier creates a ``Text`` view for the title on your behalf. See"},{"text":"``Text`` for more information about localizing strings."},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a string variable for the title."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" var title: String"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" title, isPresented: $isConfirming,"},{"text":" presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"],"names":{"title":"confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a text view for the message."},{"text":""},{"text":"In order for the interface to appear, both `isPresented` must be `true`"},{"text":"and `data` must not be `nil`. `data` should not change after the"},{"text":"presentation occurs. Any changes which occur after the presentation"},{"text":"occurs will be ignored."},{"text":""},{"text":"Use this method when you need to populate the fields of a confirmation"},{"text":"dialog with content from a data source. The example below shows a custom"},{"text":"data source, `FileDetails`, that provides data to populate the dialog:"},{"text":""},{"text":" struct FileDetails: Identifiable {"},{"text":" var id: String { name }"},{"text":" let name: String"},{"text":" let fileType: UTType"},{"text":" }"},{"text":" struct ConfirmFileImport: View {"},{"text":" @State private var isConfirming = false"},{"text":" @State private var dialogDetail: FileDetails?"},{"text":" var body: some View {"},{"text":" Button(\"Import File\") {"},{"text":" dialogDetail = FileDetails("},{"text":" name: \"MyImageFile.png\", fileType: .png)"},{"text":" isConfirming = true"},{"text":" }"},{"text":" .confirmationDialog("},{"text":" Text(\"Import New File?\"),"},{"text":" isPresented: $isConfirming, presenting: dialogDetail"},{"text":" ) { detail in"},{"text":" Button {"},{"text":" // Handle import action."},{"text":" } label: {"},{"text":" Text(\"Import \\(detail.name)\")"},{"text":" }"},{"text":" Button(\"Cancel\", role: .cancel) {"},{"text":" dialogDetail = nil"},{"text":" }"},{"text":" } message: { detail in"},{"text":" Text("},{"text":" \"\"\""},{"text":" This will add \\(detail.name).\\(detail.fileType) \\"},{"text":" to your library."},{"text":" \"\"\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"All actions in a confirmation dialog will dismiss the dialog after the"},{"text":"action runs. The default button will be shown with greater prominence."},{"text":"You can influence the default button by assigning it the"},{"text":"``KeyboardShortcut/defaultAction`` keyboard shortcut."},{"text":""},{"text":"The system may reorder the buttons based on their role and prominence."},{"text":""},{"text":"Dialogs include a standard dismiss action by default. If you provide a"},{"text":"button with a role of ``ButtonRole/cancel``, that button takes the place"},{"text":"of the default dismiss action. You don't have to dismiss the"},{"text":"presentation with the cancel button's action."},{"text":""},{"text":"> Note: In regular size classes in iOS, the system renders confirmation"},{"text":"dialogs as a popover that the user dismisses by tapping anywhere outside"},{"text":"the popover, rather than displaying the standard dismiss action."},{"text":""},{"text":"On iOS, tvOS, and watchOS, confirmation dialogs only support controls"},{"text":"with labels that are `Text`. Passing any other type of view results in"},{"text":"the content being omitted."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - isPresented: A binding to a Boolean value that determines whether"},{"text":" to present the dialog. When the user presses or taps the dialog's"},{"text":" default action button, the system sets this value to `false`,"},{"text":" dismissing the dialog."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - data: An optional source of truth for the confirmation dialog. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"presenting","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"externalParam","spelling":"presenting"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string key for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleKey: The key for the localized string that describes the title"},{"text":" of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a localized string resource for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - titleResource: Text resource for the localized string that describes"},{"text":" the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a string variable for the title."},{"text":""},{"text":"- Parameters:"},{"text":" - title: A text string used as the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1},{"name":"A","index":1,"depth":1},{"name":"M","index":2,"depth":1},{"name":"T","index":3,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","confirmationDialog(_:item:titleVisibility:actions:message:)"],"names":{"title":"confirmationDialog(_:item:titleVisibility:actions:message:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a confirmation dialog with a message using data to produce the"},{"text":"dialog's content and a text view for the message."},{"text":""},{"text":"- Parameters:"},{"text":" - title: the title of the dialog."},{"text":" - data: A binding to optional source of truth for the confirmation"},{"text":" dialog. The system presents the dialog when the binding's value is"},{"text":" non-nil. When the user presses or taps the dialog's default action"},{"text":" button, the system sets this value to `nil` and dismisses. The"},{"text":" system passes the contents to the modifier's closures. You use this"},{"text":" data to populate the fields of a confirmation dialog that you create"},{"text":" that the system displays to the user."},{"text":" - titleVisibility: The visibility of the dialog's title. The default"},{"text":" value is ``Visibility/automatic``."},{"text":" - actions: A ``ContentBuilder`` returning the dialog's actions given the"},{"text":" currently available data."},{"text":" - message: A ``ContentBuilder`` returning the message for the dialog given"},{"text":" the currently available data."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"item","internalName":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>"}]},{"name":"titleVisibility","declarationFragments":[{"kind":"identifier","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]},{"name":"actions","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"}]},{"name":"message","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":1},{"name":"M","index":1,"depth":1},{"name":"T","index":2,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"confirmationDialog"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?>, "},{"kind":"externalParam","spelling":"titleVisibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":" = .automatic, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"actions"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"message"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"A"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellColumns(_:)"],"names":{"title":"gridCellColumns(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellColumns"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Tells a view that acts as a cell in a grid to span the specified"},{"text":"number of columns."},{"text":""},{"text":"By default, each view that you put into the content closure of a"},{"text":"``GridRow`` corresponds to exactly one column of the grid. Apply the"},{"text":"`gridCellColumns(_:)` modifier to a view that you want to span more"},{"text":"than one column, as in the following example of a typical macOS"},{"text":"configuration view:"},{"text":""},{"text":" Grid(alignment: .leadingFirstTextBaseline) {"},{"text":" GridRow {"},{"text":" Text(\"Regular font:\")"},{"text":" .gridColumnAlignment(.trailing)"},{"text":" Text(\"Helvetica 12\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Text(\"Fixed-width font:\")"},{"text":" Text(\"Menlo Regular 11\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.clear"},{"text":" .gridCellUnsizedAxes([.vertical, .horizontal])"},{"text":" Toggle(\"Use fixed-width font for new documents\", isOn: $isOn)"},{"text":" .gridCellColumns(2) // Span two columns."},{"text":" }"},{"text":" }"},{"text":""},{"text":"The ``Toggle`` in the example above spans the column that contains"},{"text":"the font names and the column that contains the buttons:"},{"text":""},{"text":"![A screenshot of a configuration view, arranged in a grid. The grid"},{"text":"has three colums and three rows. Scanning from top to bottom, the"},{"text":"left-most column contains a cell with the text Regular font, a cell with"},{"text":"the text Fixed-width font, and a blank cell. The middle row contains"},{"text":"a cell with the text Helvetica 12, a cell with the text Menlo Regular"},{"text":"11, and a cell with a labeled checkbox. The label says Use fixed-width"},{"text":"font for new documents. The label spans its own cell and the cell to"},{"text":"its right. The right-most column contains two cells with buttons"},{"text":"labeled Select. The last column's bottom cell is merged with the cell"},{"text":"from the middle columnn that holds the labeled"},{"text":"checkbox.](View-gridCellColumns-1-macOS)"},{"text":""},{"text":"> Important: When you tell a cell to span multiple columns, the grid"},{"text":"changes the merged cell to use anchor alignment, rather than the"},{"text":"usual alignment guides. For information about the behavior of"},{"text":"anchor alignment, see ``View/gridCellAnchor(_:)``."},{"text":""},{"text":"As a convenience you can cause a view to span all of the ``Grid``"},{"text":"columns by placing the view directly in the content closure of the"},{"text":"``Grid``, outside of a ``GridRow``, and omitting the modifier. To do"},{"text":"the opposite and include more than one view in a cell, group the views"},{"text":"using an appropriate layout container, like an ``HStack``, so that"},{"text":"they act as a single view."},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of columns that the view should consume"},{"text":" when placed in a grid row."},{"text":""},{"text":"- Returns: A view that occupies the specified number of columns in a"},{"text":" grid row."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellColumns"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellAnchor(_:)"],"names":{"title":"gridCellAnchor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellAnchor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies a custom alignment anchor for a view that acts as a grid cell."},{"text":""},{"text":"Grids, like stacks and other layout containers, perform most alignment"},{"text":"operations using alignment guides. The grid moves the contents of each"},{"text":"cell in a row in the y direction until the specified"},{"text":"``VerticalAlignment`` guide of each view in the row aligns with the same"},{"text":"guide of all the other views in the row. Similarly, the grid aligns the"},{"text":"``HorizontalAlignment`` guides of views in a column by adjusting views"},{"text":"in the x direction. See the guide types for more information about"},{"text":"typical SwiftUI alignment operations."},{"text":""},{"text":"When you use the `gridCellAnchor(_:)` modifier on a"},{"text":"view in a grid, the grid changes to an anchor-based alignment strategy"},{"text":"for the associated cell. With anchor alignment, the grid projects a"},{"text":"``UnitPoint`` that you specify onto both the view and the cell, and"},{"text":"aligns the two projections. For example, consider the following grid:"},{"text":""},{"text":" Grid(horizontalSpacing: 1, verticalSpacing: 1) {"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellAnchor(UnitPoint(x: 0.25, y: 0.75))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The grid creates red reference squares in the first row and column to"},{"text":"establish row and column sizes. Without the anchor modifier, the blue"},{"text":"marker in the remaining cell would appear at the center of its cell,"},{"text":"because of the grid's default ``Alignment/center`` alignment. With"},{"text":"the anchor modifier shown in the code above, the grid aligns the one"},{"text":"quarter point of the marker with the one quarter point of its cell in"},{"text":"the x direction, as measured from the origin at the top left of the"},{"text":"cell. The grid also aligns the three quarters point of the marker"},{"text":"with the three quarters point of the cell in the y direction:"},{"text":""},{"text":"![A screenshot of a grid with two rows and two columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The lower-right cell contains a small blue square that's"},{"text":"horizontally placed about one quarter of the way from the left to the"},{"text":"right, and about three quarters of the way from the top to the"},{"text":"bottom of the cell it occupies.](View-gridCellAnchor-1-iOS)"},{"text":""},{"text":"``UnitPoint`` defines many convenience points that correspond to the"},{"text":"typical alignment guides, which you can use as well. For example, you"},{"text":"can use ``UnitPoint/topTrailing`` to align the top and trailing edges"},{"text":"of a view in a cell with the top and trailing edges of the cell:"},{"text":""},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellAnchor(.topTrailing)"},{"text":""},{"text":"![A screenshot of a grid with two rows and two columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The lower-right cell contains a small blue square that's"},{"text":"horizontally aligned with the trailing edge, and vertically aligned"},{"text":"with the top edge of the cell.](View-gridCellAnchor-2-iOS)"},{"text":""},{"text":"Applying the anchor-based alignment strategy to a single cell"},{"text":"doesn't affect the alignment strategy that the grid uses on other cells."},{"text":""},{"text":"### Anchor alignment for merged cells"},{"text":""},{"text":"If you use the ``View/gridCellColumns(_:)`` modifier to cause"},{"text":"a cell to span more than one column, or if you place a view in a grid"},{"text":"outside of a row so that the view spans the entire grid, the grid"},{"text":"automatically converts its vertical and horizontal alignment guides"},{"text":"to the unit point equivalent for the merged cell, and uses an"},{"text":"anchor-based approach for that cell. For example, the following grid"},{"text":"places the marker at the center of the merged cell by converting the"},{"text":"grid's default ``Alignment/center`` alignment guide to a"},{"text":"``UnitPoint/center`` anchor for the blue marker in the merged cell:"},{"text":""},{"text":" Grid(alignment: .center, horizontalSpacing: 1, verticalSpacing: 1) {"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.red.frame(width: 60, height: 60)"},{"text":" Color.blue.frame(width: 10, height: 10)"},{"text":" .gridCellColumns(2)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The grid makes this conversion in part to avoid ambiguity. Each column"},{"text":"has its own horizontal guide, and it isn't clear which of these"},{"text":"a cell that spans multiple columns should align with. Further, in"},{"text":"the example above, neither of the center alignment guides for the"},{"text":"second or third column would provide the expected behavior, which is"},{"text":"to center the marker in the merged cell. Anchor alignment provides"},{"text":"this behavior:"},{"text":""},{"text":"![A screenshot of a grid with two rows and three columns. The cells in"},{"text":"the top row and left-most column are each completely filled with a red"},{"text":"rectangle. The other two cells are meged into a single cell that"},{"text":"contains a small blue square that's centered in the merged"},{"text":"cell.](View-gridCellAnchor-3-iOS)"},{"text":""},{"text":"- Parameters:"},{"text":" - anchor: The unit point that defines how to align the view"},{"text":" within the bounds of its grid cell."},{"text":""},{"text":"- Returns: A view that uses the specified anchor point to align its"},{"text":" content."}]},"functionSignature":{"parameters":[{"name":"anchor","declarationFragments":[{"kind":"identifier","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellAnchor"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"anchor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridColumnAlignment(_:)"],"names":{"title":"gridColumnAlignment(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridColumnAlignment"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Overrides the default horizontal alignment of the grid column that"},{"text":"the view appears in."},{"text":""},{"text":"You set a default alignment for the cells in a grid in both vertical"},{"text":"and horizontal dimensions when you create the grid with the"},{"text":"``Grid/init(alignment:horizontalSpacing:verticalSpacing:content:)``"},{"text":"initializer. However, you can use the `gridColumnAlignment(_:)` modifier"},{"text":"to override the horizontal alignment of a column within the grid. The"},{"text":"following example sets a grid's alignment to"},{"text":"``Alignment/leadingFirstTextBaseline``, and then sets the first column"},{"text":"to use ``HorizontalAlignment/trailing`` alignment:"},{"text":""},{"text":" Grid(alignment: .leadingFirstTextBaseline) {"},{"text":" GridRow {"},{"text":" Text(\"Regular font:\")"},{"text":" .gridColumnAlignment(.trailing) // Align the entire first column."},{"text":" Text(\"Helvetica 12\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Text(\"Fixed-width font:\")"},{"text":" Text(\"Menlo Regular 11\")"},{"text":" Button(\"Select...\") { }"},{"text":" }"},{"text":" GridRow {"},{"text":" Color.clear"},{"text":" .gridCellUnsizedAxes([.vertical, .horizontal])"},{"text":" Toggle(\"Use fixed-width font for new documents\", isOn: $isOn)"},{"text":" .gridCellColumns(2)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"This creates the layout of a typical macOS configuration"},{"text":"view, with the trailing edge of the first column flush with the"},{"text":"leading edge of the second column:"},{"text":""},{"text":"![A screenshot of a configuration view, arranged in a grid. The grid"},{"text":"has three colums and three rows. Scanning from top to bottom, the"},{"text":"left-most column contains a cell with the text Regular font, a cell with"},{"text":"the text Fixed-width font, and a blank cell. The middle row contains"},{"text":"a cell with the text Helvetica 12, a cell with the text Menlo Regular"},{"text":"11, and a cell with a labeled checkbox. The label says Use fixed-width"},{"text":"font for new documents. The label spans its own cell and the cell to"},{"text":"its right. The right-most column contains two cells with buttons"},{"text":"labeled Select. The last column's bottom cell is merged with the cell"},{"text":"from the middle columnn that holds the labeled"},{"text":"checkbox.](View-gridColumnAlignment-1-macOS)"},{"text":""},{"text":"Add the modifier to only one cell in a column. The grid"},{"text":"automatically aligns all cells in that column the same way."},{"text":"You get undefined behavior if you apply different alignments to"},{"text":"different cells in the same column."},{"text":""},{"text":"To override row alignment, see ``GridRow/init(alignment:content:)``. To"},{"text":"override alignment for a single cell, see ``View/gridCellAnchor(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - guide: The ``HorizontalAlignment`` guide to use for the grid"},{"text":" column that the view appears in."},{"text":""},{"text":"- Returns: A view that uses the specified horizontal alignment, and"},{"text":" that causes all cells in the same column of a grid to use the"},{"text":" same alignment."}]},"functionSignature":{"parameters":[{"name":"guide","declarationFragments":[{"kind":"identifier","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridColumnAlignment"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"guide"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"HorizontalAlignment","preciseIdentifier":"s:7SwiftUI19HorizontalAlignmentV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gridCellUnsizedAxes(_:)"],"names":{"title":"gridCellUnsizedAxes(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellUnsizedAxes"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Asks grid layouts not to offer the view extra size in the specified"},{"text":"axes."},{"text":""},{"text":"Use this modifier to prevent a flexible view from taking more space"},{"text":"on the specified axes than the other cells in a row or column require."},{"text":"For example, consider the following ``Grid`` that places a ``Divider``"},{"text":"between two rows of content:"},{"text":""},{"text":" Grid {"},{"text":" GridRow {"},{"text":" Text(\"Hello\")"},{"text":" Image(systemName: \"globe\")"},{"text":" }"},{"text":" Divider()"},{"text":" GridRow {"},{"text":" Image(systemName: \"hand.wave\")"},{"text":" Text(\"World\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The text and images all have ideal widths for their content. However,"},{"text":"because a divider takes as much space as its parent offers, the grid"},{"text":"fills the width of the display, expanding all the other cells to match:"},{"text":""},{"text":"![A screenshot of items arranged in a grid. The upper-left"},{"text":"cell in the grid contains the word hello. The upper-right contains"},{"text":"an image of a globe. The lower-left contains an image of a waving hand."},{"text":"The lower-right contains the word world. A dividing line that spans"},{"text":"the width of the grid separates the upper and lower elements. The grid's"},{"text":"rows have minimal vertical spacing, but it's columns have a lot of"},{"text":"horizontal spacing, with column content centered"},{"text":"horizontally.](View-gridCellUnsizedAxes-1-iOS)"},{"text":""},{"text":"You can prevent the grid from giving the divider more width than"},{"text":"the other cells require by adding the modifier with the"},{"text":"``Axis/horizontal`` parameter:"},{"text":""},{"text":" Divider()"},{"text":" .gridCellUnsizedAxes(.horizontal)"},{"text":""},{"text":"This restores the grid to the width that it would have without the"},{"text":"divider:"},{"text":""},{"text":"![A screenshot of items arranged in a grid. The upper-left"},{"text":"position in the grid contains the word hello. The upper-right contains"},{"text":"an image of a globe. The lower-left contains an image of a waving hand."},{"text":"The lower-right contains the word world. A dividing line that spans"},{"text":"the width of the grid separates the upper and lower elements. The grid's"},{"text":"rows and columns have minimal vertical or horizontal"},{"text":"spacing.](View-gridCellUnsizedAxes-2-iOS)"},{"text":""},{"text":"- Parameters:"},{"text":" - axes: The dimensions in which the grid shouldn't offer the view a"},{"text":" share of any available space. This prevents a flexible view like a"},{"text":" ``Spacer``, ``Divider``, or ``Color`` from defining the size of"},{"text":" a row or column."},{"text":""},{"text":"- Returns: A view that doesn't ask an enclosing grid for extra size"},{"text":" in one or more axes."}]},"functionSignature":{"parameters":[{"name":"axes","declarationFragments":[{"kind":"identifier","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gridCellUnsizedAxes"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"axes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Axis","preciseIdentifier":"s:7SwiftUI4AxisO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4AxisO3SetV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentToolbar(for:content:)"],"names":{"title":"contentToolbar(for:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar of the specified content view type with"},{"text":"the views you provide."},{"text":""},{"text":"Use this modifier to add toolbar content that remains consistent"},{"text":"regardless of the content view."},{"text":""},{"text":"Unlike the toolbar modifier, which configures the toolbar of the"},{"text":"modified view's container, the `contentToolbar` modifier configures the"},{"text":"toolbar within the modified view's content instead. This means that the"},{"text":"`contentToolbar` modifier should generally be applied directly to a"},{"text":"container view, instead of to the content within a container view. For"},{"text":"example, to configure the toolbar of tab view's sidebar, apply the"},{"text":"`contentToolbar` modifier to the `TabView` itself, not to any of the"},{"text":"tabs within the `TabView`."},{"text":""},{"text":"The example below adds a button to the tab view sidebar."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .contentToolbar(for: .tabViewSidebar) {"},{"text":" DisconnectDevicesButton()"},{"text":" }"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contentToolbar(for:content:)"],"names":{"title":"contentToolbar(for:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar of the specified content view type with"},{"text":"the views you provide."},{"text":""},{"text":"Use this modifier to add toolbar content that remains consistent"},{"text":"regardless of the content view. Use a `toolbar` modifier within the"},{"text":"content view if the toolbar content is dependent the content view is"},{"text":"showing."},{"text":""},{"text":"Unlike the toolbar modifier, which configures the toolbar of the"},{"text":"modified view's container, the `contentToolbar` modifier configures the"},{"text":"toolbar within the modified view's content instead. This means that the"},{"text":"`contentToolbar` modifier should generally be applied directly to a"},{"text":"container view, instead of to the content within a container view. For"},{"text":"example, to configure the toolbar of tab view's sidebar, apply the"},{"text":"`contentToolbar` modifier to the `TabView` itself, not to any of the"},{"text":"tabs within the `TabView`."},{"text":""},{"text":"The content toolbar modifier expects a collection of toolbar items that"},{"text":"you can provide by either supplying a collection of views with each view"},{"text":"wrapped in a ``ToolbarItem``, or by providing a collection of views as a"},{"text":"``ToolbarItemGroup``. The example below adds an account summary to the"},{"text":"bottom of the tab view sidebar and a button to the tab view sidebar"},{"text":"overflow menu."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Alerts\", systemImage: \"bell\") {"},{"text":" AlertsView()"},{"text":" }"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .contentToolbar(for: .tabViewSidebar) {"},{"text":" ToolbarItem(placement: .automatic) {"},{"text":" DisconnectDevicesButton()"},{"text":" }"},{"text":" ToolbarItem(placement: .bottomBar) {"},{"text":" AccountSummaryView()"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ToolbarContentBuilder","preciseIdentifier":"s:7SwiftUI21ToolbarContentBuilderV"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"ToolbarContent","rhsPrecise":"s:7SwiftUI14ToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contentToolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ContentToolbarPlacement","preciseIdentifier":"s:7SwiftUI23ContentToolbarPlacementV"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ToolbarContentBuilder","preciseIdentifier":"s:7SwiftUI21ToolbarContentBuilderV"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToolbarContent","preciseIdentifier":"s:7SwiftUI14ToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":4}},{"domain":"macOS","introduced":{"major":15,"minor":4}},{"domain":"tvOS","introduced":{"major":18,"minor":4}},{"domain":"visionOS","introduced":{"major":2,"minor":4}},{"domain":"watchOS","introduced":{"major":11,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(content:)"],"names":{"title":"toolbar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the views you provide."},{"text":""},{"text":"Use this modifier to add content to the toolbar. The toolbar modifier"},{"text":"expects a collection of toolbar items that you can provide either by"},{"text":"supplying a collection of views with each view wrapped in a"},{"text":"``ToolbarItem``, or by providing a collection of views as a"},{"text":"``ToolbarItemGroup``. The example below adds views to using a toolbar"},{"text":"item group to support text editing features:"},{"text":""},{"text":" struct StructToolbarItemGroupView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system(size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar {"},{"text":" ToolbarItemGroup {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing a font size selector, and toggles for bold, italic."},{"text":" and underlined text styling installed in the toolbar to"},{"text":" support text editing in"},{"text":" macOS.](SwiftUI-View-Styling-ToolbarContent.png)"},{"text":""},{"text":"- Parameter content: The views representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(content:)"],"names":{"title":"toolbar(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the specified items."},{"text":""},{"text":"Use this method to populate a toolbar with a collection of views that"},{"text":"you provide to a toolbar content builder."},{"text":""},{"text":"The toolbar modifier expects a collection of toolbar items which you can"},{"text":"provide either by supplying a collection of views with each view"},{"text":"wrapped in a ``ToolbarItem``, or by providing a collection of views as"},{"text":"a ``ToolbarItemGroup``. The example below uses a collection of"},{"text":"``ToolbarItem`` views to create a macOS toolbar that supports text"},{"text":"editing features:"},{"text":""},{"text":" struct StructToolbarItemGroupView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system(size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar {"},{"text":" ToolbarItemGroup {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing a font size selector, and toggles for bold, italic."},{"text":" and underlined text styling installed in the toolbar to"},{"text":" support text editing in"},{"text":" macOS.](SwiftUI-View-Styling-ToolbarContent.png)"},{"text":""},{"text":"Although it's not mandatory, wrapping a related group of toolbar"},{"text":"items together in a ``ToolbarItemGroup`` provides a one-to-one mapping"},{"text":"between controls and toolbar items which results in the correct layout"},{"text":"and spacing on each platform."},{"text":"For design guidance on toolbars, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":"- Parameter content: The items representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"ToolbarContent","rhsPrecise":"s:7SwiftUI14ToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ToolbarContent","preciseIdentifier":"s:7SwiftUI14ToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbar(id:content:)"],"names":{"title":"toolbar(id:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Populates the toolbar or navigation bar with the specified items,"},{"text":"allowing for user customization."},{"text":""},{"text":"Use this modifier when you want to allow the user to customize the"},{"text":"components and layout of elements in the toolbar. The toolbar modifier"},{"text":"expects a collection of toolbar items which you can provide either by"},{"text":"supplying a collection of views with each view wrapped in a"},{"text":"``ToolbarItem``."},{"text":""},{"text":"> Note: Customizable toolbars will be displayed on both macOS and iOS,"},{"text":" but only apps running on iPadOS 16.0 and later will support"},{"text":" user customization."},{"text":""},{"text":"The example below creates a view that represents each"},{"text":"``ToolbarItem`` along with an ID that uniquely identifies the toolbar"},{"text":"item to the customization editor:"},{"text":""},{"text":" struct ToolsEditorView: View {"},{"text":" @State private var text = \"\""},{"text":" @State private var bold = false"},{"text":" @State private var italic = false"},{"text":" @State private var fontSize = 12.0"},{"text":""},{"text":" var displayFont: Font {"},{"text":" let font = Font.system("},{"text":" size: CGFloat(fontSize),"},{"text":" weight: bold == true ? .bold : .regular)"},{"text":" return italic == true ? font.italic() : font"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" TextEditor(text: $text)"},{"text":" .font(displayFont)"},{"text":" .toolbar(id: \"editingtools\") {"},{"text":" ToolbarItem("},{"text":" id: \"sizeSelector\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Slider("},{"text":" value: $fontSize,"},{"text":" in: 8...120,"},{"text":" minimumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 8)),"},{"text":" maximumValueLabel:"},{"text":" Text(\"A\").font(.system(size: 16))"},{"text":" ) {"},{"text":" Text(\"Font Size (\\(Int(fontSize)))\")"},{"text":" }"},{"text":" .frame(width: 150)"},{"text":" }"},{"text":" ToolbarItem("},{"text":" id: \"bold\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Toggle(isOn: $bold) {"},{"text":" Image(systemName: \"bold\")"},{"text":" }"},{"text":" }"},{"text":" ToolbarItem("},{"text":" id: \"italic\", placement: .secondaryAction"},{"text":" ) {"},{"text":" Toggle(isOn: $italic) {"},{"text":" Image(systemName: \"italic\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .navigationTitle(\"My Note\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A window showing the macOS toolbar customization"},{"text":" editor.](SwiftUI-View-Styling-ToolbarCustomization.png)"},{"text":""},{"text":"> Note: Only ``ToolbarItemPlacement/secondaryAction`` items support"},{"text":" customization in iPadOS. Other items follow the normal"},{"text":" placement rules and can't be customized by the user."},{"text":""},{"text":"In macOS you can enable menu support for toolbar customization by"},{"text":"adding a ``ToolbarCommands`` instance to a scene using the"},{"text":"``Scene/commands(content:)`` scene modifier:"},{"text":""},{"text":" @main"},{"text":" struct ToolbarContent_macOSApp: App {"},{"text":" var body: some Scene {"},{"text":" WindowGroup {"},{"text":" ToolsEditorView()"},{"text":" .frame(maxWidth: .infinity, maxHeight: .infinity)"},{"text":" }"},{"text":" .commands {"},{"text":" ToolbarCommands()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"When you add the toolbar commands, the system adds a menu item to"},{"text":"your app's main menu to provide toolbar customization support."},{"text":"This is in addition to the ability to Control-click on the"},{"text":"toolbar to open the toolbar customization editor."},{"text":""},{"text":"![A screenshot of the toolbar editor support for the macOS view"},{"text":"menu.](SwiftUI-View-Styling-ToolbarCustomizationMenu.png)"},{"text":""},{"text":"- Parameters:"},{"text":" - id: A unique identifier for this toolbar."},{"text":" - content: The content representing the content of the toolbar."}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Content","rhs":"CustomizableToolbarContent","rhsPrecise":"s:7SwiftUI26CustomizableToolbarContentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbar"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"CustomizableToolbarContent","preciseIdentifier":"s:7SwiftUI26CustomizableToolbarContentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The title to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a localized string."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter titleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleKey","declarationFragments":[{"kind":"identifier","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a localized string resource."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter titleResource: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"titleResource","declarationFragments":[{"kind":"identifier","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"titleResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation, using a string."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"Refer to the article"},{"text":"for more information on navigation title modifiers."},{"text":""},{"text":"- Parameter title: The string to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationTitle(_:)"],"names":{"title":"navigationTitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's title for purposes of navigation,"},{"text":"using a custom view."},{"text":""},{"text":"A view's navigation title is used to visually display"},{"text":"the current navigation state of an interface."},{"text":"On iOS and watchOS, when a view is navigated to inside"},{"text":"of a navigation view, that view's title is displayed"},{"text":"in the navigation bar. On iPadOS, the primary destination's"},{"text":"navigation title is reflected as the window's title in the"},{"text":"App Switcher. Similarly on macOS, the primary destination's title"},{"text":"is used as the window title in the titlebar, Windows menu"},{"text":"and Mission Control."},{"text":""},{"text":"- Parameter title: The view to display."}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationTitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"title"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"macOS","introduced":{"major":11,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"tvOS","introduced":{"major":14,"minor":0},"isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","assistiveAccessNavigationIcon(_:)"],"names":{"title":"assistiveAccessNavigationIcon(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's icon for purposes of navigation."},{"text":""},{"text":"In an Assistive Access scene on iOS and iPadOS, the icon is displayed"},{"text":"adjacent to the navigation title. Otherwise, the icon is unused."},{"text":""},{"text":"- Parameters:"},{"text":" - icon: The icon image to display."}]},"functionSignature":{"parameters":[{"name":"icon","declarationFragments":[{"kind":"identifier","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"icon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Image","preciseIdentifier":"s:7SwiftUI5ImageV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","assistiveAccessNavigationIcon(systemImage:)"],"names":{"title":"assistiveAccessNavigationIcon(systemImage:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's icon for purposes of navigation."},{"text":""},{"text":"In an Assistive Access scene on iOS and iPadOS, the icon is displayed"},{"text":"adjacent to the navigation title. Otherwise, the icon is unused."},{"text":""},{"text":"- Parameters:"},{"text":" - systemImage: The system symbol to display."}]},"functionSignature":{"parameters":[{"name":"systemImage","declarationFragments":[{"kind":"identifier","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assistiveAccessNavigationIcon"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"systemImage"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationBarTitleDisplayMode(_:)"],"names":{"title":"navigationBarTitleDisplayMode(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the title display mode for this view."},{"text":""},{"text":"- Parameter displayMode: The style to use for displaying the title."}]},"functionSignature":{"parameters":[{"name":"displayMode","declarationFragments":[{"kind":"identifier","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationBarTitleDisplayMode"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"displayMode"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"NavigationBarItem","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"TitleDisplayMode","preciseIdentifier":"s:7SwiftUI17NavigationBarItemV16TitleDisplayModeO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a localized string."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a localized string resource."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitleKey: The key to a localized string to display."}]},"functionSignature":{"parameters":[{"name":"subtitleKey","declarationFragments":[{"kind":"identifier","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitleKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","navigationSubtitle(_:)"],"names":{"title":"navigationSubtitle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the view's subtitle for purposes of navigation,"},{"text":"using a string."},{"text":""},{"text":"A view's navigation subtitle is used to provide additional"},{"text":"contextual information alongside the navigation title."},{"text":"On macOS, the primary destination's subtitle is displayed"},{"text":"with the navigation title in the titlebar. On iOS and iPadOS,"},{"text":"the subtitle is displayed with the navigation title in the"},{"text":"navigation bar."},{"text":""},{"text":"- Parameter subtitle: The subtitle to display."}]},"functionSignature":{"parameters":[{"name":"subtitle","declarationFragments":[{"kind":"identifier","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"navigationSubtitle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"subtitle"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macCatalyst","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRepresentation(representation:)"],"names":{"title":"accessibilityRepresentation(representation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRepresentation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Replaces one or more accessibility elements for this view with new"},{"text":"accessibility elements."},{"text":""},{"text":"You can make controls accessible by using a custom style. For example, a custom"},{"text":"``ToggleStyle`` that you create inherits the accessibility features of ``Toggle``"},{"text":"automatically. When you can't use the parent view's accessibility elements, use the"},{"text":"`accessibilityRepresentation(representation:)`"},{"text":"modifier instead. This modifier replaces default accessibility elements with different accessibility"},{"text":"elements that you provide. You use synthetic, non-visual accessibility elements to represent"},{"text":"what the view displays."},{"text":""},{"text":"The example below makes a custom adjustable control accessible by explicitly"},{"text":"defining the representation of its step increments using a ``Slider``:"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" SliderTrack(...) // Custom slider implementation."},{"text":" }"},{"text":" .accessibilityRepresentation {"},{"text":" Slider(value: $value, in: 0...100) {"},{"text":" Text(\"Label\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI hides the view that you provide in the `representation` closure"},{"text":"and makes it non-interactive. The framework uses it only to"},{"text":"generate accessibility elements."},{"text":""},{"text":"- Parameter representation: A hidden view that the accessibility"},{"text":" system uses to generate accessibility elements."},{"text":""}]},"functionSignature":{"parameters":[{"name":"representation","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRepresentation"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"representation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityChildren(children:)"],"names":{"title":"accessibilityChildren(children:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChildren"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Replaces the existing accessibility element's children with one or"},{"text":"more new synthetic accessibility elements."},{"text":""},{"text":"Use this modifier to replace an existing element's children with one"},{"text":"or more new synthetic accessibility elements you provide. This allows"},{"text":"for synthetic, non-visual accessibility elements to be set as children"},{"text":"of a visual accessibility element."},{"text":""},{"text":"SwiftUI creates an accessibility container implicitly when needed."},{"text":"If an accessibility element already exists, the framework converts it"},{"text":"into an accessibility container."},{"text":""},{"text":"In the example below, a ``Canvas`` displays a graph of vertical bars that don't have any"},{"text":"inherent accessibility elements. You make the view accessible by adding"},{"text":"the ``accessibilityChildren(children:)`` modifier with views whose accessibility"},{"text":"elements represent the values of each bar drawn in the canvas:"},{"text":""},{"text":" var body: some View {"},{"text":" Canvas { context, size in"},{"text":" // Draw Graph"},{"text":" for data in dataSet {"},{"text":" let path = Path("},{"text":" roundedRect: CGRect("},{"text":" x: (size.width / CGFloat(dataSet.count))"},{"text":" * CGFloat(data.week),"},{"text":" y: 0,"},{"text":" width: size.width / CGFloat(dataSet.count),"},{"text":" height: CGFloat(data.lines),"},{"text":" cornerRadius: 5)"},{"text":" context.fill(path, with: .color(.blue))"},{"text":" }"},{"text":" // Draw Axis and Labels"},{"text":" ..."},{"text":" }"},{"text":" .accessibilityLabel(\"Lines of Code per Week\")"},{"text":" .accessibilityChildren {"},{"text":" HStack {"},{"text":" ForEach(dataSet) { data in"},{"text":" RoundedRectangle(cornerRadius: 5)"},{"text":" .accessibilityLabel(\"Week \\(data.week)\")"},{"text":" .accessibilityValue(\"\\(data.lines) lines\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"SwiftUI hides any views that you provide with the `children` parameter,"},{"text":"then the framework uses the views to generate the accessibility elements."},{"text":""},{"text":"- Parameter children: A ``ContentBuilder`` that represents the replacement"},{"text":" child views the framework uses to generate accessibility elements."}]},"functionSignature":{"parameters":[{"name":"children","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChildren"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(_:action:)"],"names":{"title":"onKeyPress(_:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses a key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"SwiftUI performs the action for key-down and key-repeat events."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to match against incoming hardware keyboard events."},{"text":" - action: The action to perform. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(_:phases:action:)"],"names":{"title":"onKeyPress(_:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses a key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"SwiftUI performs the action for the specified event phases."},{"text":""},{"text":"- Parameters:"},{"text":" - key: The key to match against incoming hardware keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.up`,"},{"text":" and `.repeat`)."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(keys:phases:action:)"],"names":{"title":"onKeyPress(keys:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses one or more keys on a hardware"},{"text":"keyboard while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - keys: A set of keys to match against incoming hardware"},{"text":" keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds keyboard input when focused."}]},"functionSignature":{"parameters":[{"name":"keys","declarationFragments":[{"kind":"identifier","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"keys"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(characters:phases:action:)"],"names":{"title":"onKeyPress(characters:phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses one or more keys on a hardware"},{"text":"keyboard while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - characters: The set of characters to match against incoming"},{"text":" hardware keyboard events."},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"characters","declarationFragments":[{"kind":"identifier","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"}]},{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"characters"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CharacterSet","preciseIdentifier":"s:10Foundation12CharacterSetV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onKeyPress(phases:action:)"],"names":{"title":"onKeyPress(phases:action:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Performs an action if the user presses any key on a hardware keyboard"},{"text":"while the view has focus."},{"text":""},{"text":"- Parameters:"},{"text":" - phases: The key-press phases to match (`.down`, `.repeat`, and"},{"text":" `.up`). The default value is `[.down, .repeat]`."},{"text":" - action: The action to perform. The action receives a value"},{"text":" describing the matched key event. Return `.handled` to consume the"},{"text":" event and prevent further dispatch, or `.ignored` to allow dispatch"},{"text":" to continue."},{"text":"- Returns: A modified view that binds hardware keyboard input"},{"text":" when focused."}]},"functionSignature":{"parameters":[{"name":"phases","declarationFragments":[{"kind":"identifier","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"}]},{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onKeyPress"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"phases"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Phases","preciseIdentifier":"s:7SwiftUI8KeyPressV6PhasesV"},{"kind":"text","spelling":" = [.down, .repeat], "},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"KeyPress","preciseIdentifier":"s:7SwiftUI8KeyPressV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:7SwiftUI8KeyPressV6ResultO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6hiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","hidden()"],"names":{"title":"hidden()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Hides this view unconditionally."},{"text":""},{"text":"Hidden views are invisible and can't receive or respond to interactions."},{"text":"However, they do remain in the view hierarchy and affect layout. Use"},{"text":"this modifier if you want to include a view for layout purposes, but"},{"text":"don't want it to display."},{"text":""},{"text":" HStack {"},{"text":" Image(systemName: \"a.circle.fill\")"},{"text":" Image(systemName: \"b.circle.fill\")"},{"text":" Image(systemName: \"c.circle.fill\")"},{"text":" .hidden()"},{"text":" Image(systemName: \"d.circle.fill\")"},{"text":" }"},{"text":""},{"text":"The third circle takes up space, because it's still present, but"},{"text":"SwiftUI doesn't draw it onscreen."},{"text":""},{"text":"![A row of circles with the letters A, B, and D, with a gap where"},{"text":" the circle with the letter C should be.](SwiftUI-View-hidden-1.png)"},{"text":""},{"text":"If you want to conditionally include a view in the view hierarchy, use"},{"text":"an `if` statement instead:"},{"text":""},{"text":" VStack {"},{"text":" HStack {"},{"text":" Image(systemName: \"a.circle.fill\")"},{"text":" Image(systemName: \"b.circle.fill\")"},{"text":" if !isHidden {"},{"text":" Image(systemName: \"c.circle.fill\")"},{"text":" }"},{"text":" Image(systemName: \"d.circle.fill\")"},{"text":" }"},{"text":" Toggle(\"Hide\", isOn: $isHidden)"},{"text":" }"},{"text":""},{"text":"Depending on the current value of the `isHidden` state variable in the"},{"text":"example above, controlled by the ``Toggle`` instance, SwiftUI draws"},{"text":"the circle or completely omits it from the layout."},{"text":""},{"text":"![Two side by side groups of items, each composed of a toggle beneath"},{"text":" a row of circles with letters in them. The toggle on the left"},{"text":" is off and has four equally spaced circles above it: A, B, C, and D."},{"text":" The toggle on the right is on and has three equally spaced circles"},{"text":" above it: A, B, and D.](SwiftUI-View-hidden-2.png)"},{"text":""},{"text":"- Returns: A hidden view."}]},"functionSignature":{"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hidden"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVerticalCompressionBehavior(_:)"],"names":{"title":"toolbarVerticalCompressionBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalCompressionBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets how bars should compress when different types of toolbars"},{"text":"are hosted together and space is constrained."},{"text":""},{"text":"For example, a productivity-focused app like Files could ensure its"},{"text":"toolbar items are preferred over the tab bar:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" var body: some View {"},{"text":" TabView {"},{"text":" Tab(\"Recents\") {"},{"text":" NavigationStack {"},{"text":" RootView()"},{"text":" .toolbar {"},{"text":" Button(\"Up\", systemImage: \"chevron.up\") {"},{"text":" }"},{"text":" Button(\"Down\", systemImage: \"chevron.down\") {"},{"text":" }"},{"text":" }"},{"text":" .toolbarVerticalCompressionBehavior(.prefersToolbarItems)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalCompressionBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalCompressionBehavior","preciseIdentifier":"s:7SwiftUI34ToolbarVerticalCompressionBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityChartDescriptor(_:)"],"names":{"title":"accessibilityChartDescriptor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChartDescriptor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"R"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds a descriptor to a View that represents a chart to make"},{"text":"the chart's contents accessible to all users."},{"text":""},{"text":"Use this method to provide information about your chart view"},{"text":"to allow VoiceOver and other assistive technology users to"},{"text":"perceive and interact with your chart and its data."},{"text":""},{"text":"This may be applied to any View that represents a chart,"},{"text":"including Image and custom-rendered chart views."},{"text":""},{"text":"The `accessibilityChartDescriptor` modifier can be applied to -any-"},{"text":"view representing a chart, the simplest case being just an image of"},{"text":"a chart. The implementation details of the view aren't important,"},{"text":"only the fact that it represents a chart, and that the provided"},{"text":"chart descriptor accurately describes the content of the chart."},{"text":""},{"text":"- Parameter representable: The ``AXChartDescriptorRepresentable``"},{"text":" used to describe your chart and its data."},{"text":""},{"text":"Example usage:"},{"text":""},{"text":"First define your `AXChartDescriptorRepresentable` type."},{"text":""},{"text":" struct MyChartDescriptorRepresentable:"},{"text":" AXChartDescriptorRepresentable {"},{"text":" func makeChartDescriptor() -> AXChartDescriptor {"},{"text":" // Build and return your `AXChartDescriptor` here."},{"text":" }"},{"text":""},{"text":" func updateChartDescriptor(_ descriptor: AXChartDescriptor) {"},{"text":" // Update your chart descriptor with any new values, or"},{"text":" // don't override if your chart doesn't have changing"},{"text":" // values."},{"text":" }"},{"text":" }"},{"text":""},{"text":"Then use the `accessibilityChartDescriptor` modifier to provide an"},{"text":"instance of your `AXChartDescriptorRepresentable` type to the view"},{"text":"representing your chart:"},{"text":""},{"text":" SomeChartView()"},{"text":" .accessibilityChartDescriptor(MyChartDescriptorRepresentable())"}]},"functionSignature":{"parameters":[{"name":"representable","declarationFragments":[{"kind":"identifier","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"R"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"R","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"R","rhs":"AXChartDescriptorRepresentable","rhsPrecise":"s:7SwiftUI30AXChartDescriptorRepresentableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityChartDescriptor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"R"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"R"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AXChartDescriptorRepresentable","preciseIdentifier":"s:7SwiftUI30AXChartDescriptorRepresentableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter valueKey: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter valueResource: Text resource for the additional"},{"text":" accessibility information. For example: \"landscape.\" A value of `nil`"},{"text":" will remove any entry of additional information added earlier for any"},{"text":" `key` withthe same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter key: Key used to specify the identifier and label of the"},{"text":" of the additional accessibility information entry."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\" A value of `nil` will remove"},{"text":" any entry of additional information added earlier for any `key` with"},{"text":" the same identifier."},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with `key`s"},{"text":" having different identifiers will create new entries of"},{"text":" additional information."},{"text":" Calling `accessibilityCustomContent` repeatedly with `key`s"},{"text":" having matching identifiers will replace the previous entry."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityCustomContentKey","preciseIdentifier":"s:7SwiftUI29AccessibilityCustomContentKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example: `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter valueKey: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"valueKey","declarationFragments":[{"kind":"identifier","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter valueResource: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"valueResource","declarationFragments":[{"kind":"identifier","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"valueResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter labelKey: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"labelKey","declarationFragments":[{"kind":"identifier","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"labelKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text resource for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityCustomContent(_:_:importance:)"],"names":{"title":"accessibilityCustomContent(_:_:importance:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Add additional accessibility information to the view."},{"text":""},{"text":"Use this method to add information you want accessibility users to be"},{"text":"able to access about this element, beyond the basics of label, value,"},{"text":"and hint. For example, `accessibilityCustomContent` can be used to add"},{"text":"information about the orientation of a photograph, or the number of"},{"text":"people found in the picture."},{"text":""},{"text":"- Parameter label: Localized text describing to the user what"},{"text":" is contained in this additional information entry. For example:"},{"text":" \"orientation\"."},{"text":"- Parameter value: Text value for the additional accessibility"},{"text":" information. For example: \"landscape.\""},{"text":"- Parameter importance: Importance of the accessibility information."},{"text":" High-importance information gets read out immediately, while"},{"text":" default-importance information must be explicitly asked for by the"},{"text":" user."},{"text":"- Note: Repeated calls of `accessibilityCustomContent` with different"},{"text":" labels will create new entries of additional information. Calling"},{"text":" `accessibilityCustomContent` repeatedly with the same label will"},{"text":" instead replace the previous value and importance."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"}]},{"name":"importance","declarationFragments":[{"kind":"identifier","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"L","index":0,"depth":1},{"name":"V","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"L","rhs":"StringProtocol","rhsPrecise":"s:Sy"},{"kind":"conformance","lhs":"V","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityCustomContent"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"importance"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AXCustomContent","preciseIdentifier":"c:objc(cs)AXCustomContent"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Importance","preciseIdentifier":"c:@E@AXCustomContentImportance"},{"kind":"text","spelling":" = .default) -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"L"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"*","message":"Using non-localized strings for labels is not directly supported. Instead, wrap both the label and the value in a Text struct.","isUnconditionallyUnavailable":true},{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","textSelectionAffinity(_:)"],"names":{"title":"textSelectionAffinity(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelectionAffinity"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the direction of a selection or cursor relative to a text character."},{"text":""},{"text":"Use this modifier when you need to handle line breaks in a specific way,"},{"text":"alter cursor movement or deal with bidirectional text (text that"},{"text":"contains both LTR and RTL scripts, like English and Arabic combined)."},{"text":""},{"text":"Selection affinity also determines whether, for example, the insertion"},{"text":"point appears after the last character on a line or before the first"},{"text":"character on the following line in cases where text wraps across line boundaries."},{"text":""},{"text":"Given the scenario `hello|مرحبا`, where `|` represents the cursor & `مرحبا`"},{"text":"represents \"hello\" in Arabic, the ambiguity arises because:"},{"text":""},{"text":"- If the cursor is associated with the end of the English word, it would be"},{"text":" as if you're continuing to type in English (LTR)."},{"text":"- If the cursor is associated with the beginning of the Arabic word, it would"},{"text":" also be as if you're continuing to type in Arabic (RTL)."},{"text":""},{"text":"This modifier helps resolve this ambiguity by determining the"},{"text":"direction or association of the cursor relative to the surrounding text."},{"text":""},{"text":"The following example shows how you would specify a specific selection"},{"text":"affinity on the given hierarchy:"},{"text":""},{"text":" struct SuggestionTextEditor: View {"},{"text":" @State var text: String = \"\""},{"text":" @State var selection: TextSelection? = nil"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" TextEditor(text: $text, selection: $selection)"},{"text":" // A helper view that offers live suggestions based on selection."},{"text":" SuggestionsView("},{"text":" substrings: getSubstrings(text: text, indices: selection?.indices))"},{"text":" }"},{"text":" .textSelectionAffinity(.upstream)"},{"text":" }"},{"text":""},{"text":" private func getSubstrings("},{"text":" text: String, indices: TextSelection.Indices?"},{"text":" ) -> [Substring] {"},{"text":" // Resolve substrings representing the current selection..."},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct SuggestionsView: View { ... }"},{"text":""},{"text":"- Parameter affinity: The text selection affinity strategy to apply."},{"text":""},{"text":"- Returns: A view that uses the specified selection affinity strategy."}]},"functionSignature":{"parameters":[{"name":"affinity","declarationFragments":[{"kind":"identifier","spelling":"affinity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"textSelectionAffinity"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"affinity"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"TextSelectionAffinity","preciseIdentifier":"s:7SwiftUI21TextSelectionAffinityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","menuIndicator(_:)"],"names":{"title":"menuIndicator(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuIndicator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the menu indicator visibility for controls within this view."},{"text":""},{"text":"Use this modifier to override the default menu indicator"},{"text":"visibility for controls in this view. For example, the code below"},{"text":"creates a menu without an indicator:"},{"text":""},{"text":" Menu {"},{"text":" ForEach(history , id: \\.self) { historyItem in"},{"text":" Button(historyItem.title) {"},{"text":" self.openURL(historyItem.url)"},{"text":" }"},{"text":" }"},{"text":" } label: {"},{"text":" Label(\"Back\", systemImage: \"chevron.backward\")"},{"text":" .labelStyle(.iconOnly)"},{"text":" } primaryAction: {"},{"text":" if let last = history.last {"},{"text":" self.openURL(last.url)"},{"text":" }"},{"text":" }"},{"text":" .menuIndicator(.hidden)"},{"text":""},{"text":"- Note: On tvOS, the standard button styles do not include a menu"},{"text":" indicator, so this modifier will have no effect when using a"},{"text":" built-in button style. You can implement an indicator in your"},{"text":" own ``ButtonStyle`` implementation by checking the value of the"},{"text":" `menuIndicatorVisibility` environment value."},{"text":""},{"text":"- Parameter visibility: The menu indicator visibility to apply."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menuIndicator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tableStyle(_:)"],"names":{"title":"tableStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for tables within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"TableStyle","rhsPrecise":"s:7SwiftUI10TableStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"TableStyle","preciseIdentifier":"s:7SwiftUI10TableStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gaugeStyle(_:)"],"names":{"title":"gaugeStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gaugeStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for gauges within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"GaugeStyle","rhsPrecise":"s:7SwiftUI10GaugeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gaugeStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"GaugeStyle","preciseIdentifier":"s:7SwiftUI10GaugeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tableColumnHeaders(_:)"],"names":{"title":"tableColumnHeaders(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableColumnHeaders"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls the visibility of a `Table`'s column header views."},{"text":""},{"text":"By default, `Table` will display a global header view with the labels"},{"text":"of each table column. This area is also where users can sort, resize,"},{"text":"and rearrange the columns. For simple cases that don't require those"},{"text":"features, this header can be hidden."},{"text":""},{"text":"This will not affect the header of any `Section`s in a table."},{"text":""},{"text":" Table(article.authors) {"},{"text":" TableColumn(\"Name\", value: \\.name)"},{"text":" TableColumn(\"Title\", value: \\.title)"},{"text":" }"},{"text":" .tableColumnHeaders(.hidden)"},{"text":""},{"text":"- Parameter visibility: A value of `visible` will show table columns,"},{"text":" `hidden` will remove them, and `automatic` will defer to default"},{"text":" behavior."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tableColumnHeaders"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from an integer value."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"The following example shows a ``List`` with the value of `recentItems.count`"},{"text":"represented by a badge on one of the rows:"},{"text":""},{"text":" List {"},{"text":" Text(\"Recents\")"},{"text":" .badge(recentItems.count)"},{"text":" Text(\"Favorites\")"},{"text":" }"},{"text":""},{"text":"![A table with two rows, titled Recents and Favorites. The first row"},{"text":"shows the number 10 at the trailing side of the row"},{"text":" cell.](View-badge-1)"},{"text":""},{"text":"- Parameter count: An integer value to display in the badge."},{"text":" Set the value to zero to hide the badge."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a text view."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"Use this initializer when you want to style a ``Text`` view for use as a"},{"text":"badge. The following example customizes the badge with the"},{"text":"``Text/monospacedDigit()``, ``Text/foregroundColor(_:)``, and"},{"text":"``Text/bold()`` modifiers."},{"text":""},{"text":" var body: some View {"},{"text":" let badgeView = Text(\"\\(recentItems.count)\")"},{"text":" .monospacedDigit()"},{"text":" .foregroundColor(.red)"},{"text":" .bold()"},{"text":""},{"text":" List {"},{"text":" Text(\"Recents\")"},{"text":" .badge(badgeView)"},{"text":" Text(\"Favorites\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A table with two rows, titled Recents and Favorites. The first row"},{"text":"shows the number 21 at the side of the row cell. The number badge"},{"text":"appears in bold red text with monospaced digits.](View-badge-2)"},{"text":""},{"text":"Styling the text view has no effect when the badge appears in"},{"text":"a ``TabView``."},{"text":""},{"text":"- Parameter label: An optional ``Text`` view to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a localized string key."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf, and treats the"},{"text":"localized key similar to ``Text/init(_:tableName:bundle:comment:)``. For"},{"text":"more information about localizing strings, see ``Text``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.isDefault ? \"Default\" : nil)"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter key: An optional string key to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a localized string resource."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf. For"},{"text":"more information about localizing strings, see ``Text``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.isDefault ? \"Default\" : nil)"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter resource: An optional string resource to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"resource","declarationFragments":[{"kind":"identifier","spelling":"resource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"resource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badge(_:)"],"names":{"title":"badge(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Generates a badge for the view from a string."},{"text":""},{"text":"Use a badge to convey optional, supplementary information about a"},{"text":"view. Keep the contents of the badge as short as possible. Badges"},{"text":"appear in list rows, tab bars, toolbar items, and menus."},{"text":""},{"text":"This modifier creates a ``Text`` view on your behalf, and treats the"},{"text":"localized key similar to ``Text/init(_:)-9d1g4``. The following"},{"text":"example shows a list with a \"Default\" badge on one of its rows."},{"text":""},{"text":" NavigationView {"},{"text":" List(servers) { server in"},{"text":" Text(server.name)"},{"text":" .badge(server.defaultString())"},{"text":" }"},{"text":" .navigationTitle(\"Servers\")"},{"text":" }"},{"text":""},{"text":"![A table with the navigation title Servers and four rows: North 1,"},{"text":"North 2, East 1, and South 1. The North 2 row shows a badge with the"},{"text":"text Default on its trailing side.](View-badge-3)"},{"text":""},{"text":"- Parameter label: An optional string to display as a badge."},{"text":" Set the value to `nil` to hide the badge."}]},"functionSignature":{"parameters":[{"name":"label","declarationFragments":[{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badge"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","controlGroupStyle(_:)"],"names":{"title":"controlGroupStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for control groups within this view."},{"text":""},{"text":"- Parameter style: The style to apply to controls within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ControlGroupStyle","rhsPrecise":"s:7SwiftUI17ControlGroupStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"controlGroupStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ControlGroupStyle","preciseIdentifier":"s:7SwiftUI17ControlGroupStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:modifiers:)"],"names":{"title":"keyboardShortcut(_:modifiers:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a keyboard shortcut and assigns it to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing,"},{"text":"depth-first traversal of one or more view hierarchies. On macOS, the"},{"text":"system looks in the key window first, then the main window, and then the"},{"text":"command groups; on other platforms, the system looks in the active"},{"text":"scene, and then the command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."},{"text":""},{"text":"The default localization configuration is set to ``KeyboardShortcut/Localization-swift.struct/automatic``."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"modifiers","declarationFragments":[{"kind":"identifier","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":" = .command) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:)"],"names":{"title":"keyboardShortcut(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Assigns a keyboard shortcut to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing"},{"text":"traversal of one or more view hierarchies. On macOS, the system looks in"},{"text":"the key window first, then the main window, and then the command groups;"},{"text":"on other platforms, the system looks in the active scene, and then the"},{"text":"command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."}]},"functionSignature":{"parameters":[{"name":"shortcut","declarationFragments":[{"kind":"identifier","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shortcut"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","keyboardShortcut(_:modifiers:localization:)"],"names":{"title":"keyboardShortcut(_:modifiers:localization:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a keyboard shortcut and assigns it to the modified control."},{"text":""},{"text":"Pressing the control's shortcut while the control is anywhere in the"},{"text":"frontmost window or scene, or anywhere in the macOS main menu, is"},{"text":"equivalent to direct interaction with the control to perform its primary"},{"text":"action."},{"text":""},{"text":"The target of a keyboard shortcut is resolved in a leading-to-trailing,"},{"text":"depth-first traversal of one or more view hierarchies. On macOS, the"},{"text":"system looks in the key window first, then the main window, and then the"},{"text":"command groups; on other platforms, the system looks in the active"},{"text":"scene, and then the command groups."},{"text":""},{"text":"If multiple controls are associated with the same shortcut, the first"},{"text":"one found is used."},{"text":""},{"text":"### Localization"},{"text":""},{"text":"Provide a `localization` value to specify how this shortcut"},{"text":"should be localized."},{"text":"Given that `key` is always defined in relation to the US-English"},{"text":"keyboard layout, it might be hard to reach on different international"},{"text":"layouts. For example the shortcut `⌘[` works well for the"},{"text":"US layout but is hard to reach for German users, where"},{"text":"`[` is available by pressing `⌥5`, making users type `⌥⌘5`."},{"text":"The automatic keyboard shortcut remapping re-assigns the shortcut to"},{"text":"an appropriate replacement, `⌘Ö` in this case."},{"text":""},{"text":"Certain shortcuts carry information about directionality. For instance,"},{"text":"`⌘[` can reveal a previous view. Following the layout direction of"},{"text":"the UI, this shortcut will be automatically mirrored to `⌘]`."},{"text":"However, this does not apply to items such as \"Align Left `⌘{`\","},{"text":"which will be \"left\" independently of the layout direction."},{"text":"When the shortcut shouldn't follow the directionality of the UI, but rather"},{"text":"be the same in both right-to-left and left-to-right directions, using"},{"text":"``KeyboardShortcut/Localization-swift.struct/withoutMirroring``"},{"text":"will prevent the system from flipping it."},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandMenu(\"Card\") {"},{"text":" Button(\"Align Left\") { ... }"},{"text":" .keyboardShortcut(\"{\","},{"text":" modifiers: .option,"},{"text":" localization: .withoutMirroring)"},{"text":" Button(\"Align Right\") { ... }"},{"text":" .keyboardShortcut(\"}\","},{"text":" modifiers: .option,"},{"text":" localization: .withoutMirroring)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Lastly, providing the option"},{"text":"``KeyboardShortcut/Localization-swift.struct/custom``"},{"text":"disables"},{"text":"the automatic localization for this shortcut to tell the system that"},{"text":"internationalization is taken care of in a different way."}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"}]},{"name":"modifiers","declarationFragments":[{"kind":"identifier","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"}]},{"name":"localization","declarationFragments":[{"kind":"identifier","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"keyboardShortcut"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyEquivalent","preciseIdentifier":"s:7SwiftUI13KeyEquivalentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"modifiers"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"EventModifiers","preciseIdentifier":"s:7SwiftUI14EventModifiersV"},{"kind":"text","spelling":" = .command, "},{"kind":"externalParam","spelling":"localization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyboardShortcut","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Localization","preciseIdentifier":"s:7SwiftUI16KeyboardShortcutV12LocalizationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDefaultFocus(_:_:)"],"names":{"title":"accessibilityDefaultFocus(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDefaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Defines a region in which default accessibility focus is evaluated by"},{"text":"assigning a value to a given accessibility focus state binding."},{"text":""},{"text":"Accessibility default focus is evaluated when a scene appears and an"},{"text":"accessibility technology like VoiceOver focuses on its content,"},{"text":"when an accessibility focus state binding update moves focus"},{"text":"automatically, and when the layout of a scene changes and the"},{"text":"accessibility technology must refocus on new content."},{"text":""},{"text":"In the following example, an accessibility technology, like VoiceOver,"},{"text":"automatically lands on the title of the playlist as the most important"},{"text":"view to initially have focus on, rather than navigating through"},{"text":"all controls to understand what the primary content of the view is."},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" PlayerControls(currentSong: $currentSong)"},{"text":" Text(playlist.title)"},{"text":" .font(.title)"},{"text":" .accessibilityFocused($focusedField, equals: .title)"},{"text":" PlaylistEntries(entries: playlist.entries)"},{"text":" }"},{"text":" .accessibilityDefaultFocus($focusedField, .title)"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - binding: An accessibility focus state binding to update when"},{"text":" evaluating default accessibility focus."},{"text":" - value: The value to set the binding to during evaluation."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]},{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDefaultFocus"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityFocused(_:equals:)"],"names":{"title":"accessibilityFocused(_:equals:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its accessibility element's focus state to"},{"text":"the given state value."},{"text":""},{"text":"- Parameters:"},{"text":" - binding: The state binding to register. When accessibility focus moves to the"},{"text":" accessibility element of the modified view, SwiftUI sets the bound value to the corresponding"},{"text":" match value. If you set the state value programmatically to the matching value, then"},{"text":" accessibility focus moves to the accessibility element of the modified view. SwiftUI sets"},{"text":" the value to `nil` if accessibility focus leaves the accessibility element associated with the"},{"text":" modified view, and programmatically setting the value to `nil` dismisses focus automatically."},{"text":" - value: The value to match against when determining whether the"},{"text":" binding should change."},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"binding","declarationFragments":[{"kind":"identifier","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]},{"name":"equals","internalName":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Value","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Value","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Value"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"binding"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"equals"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Value"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityFocused(_:)"],"names":{"title":"accessibilityFocused(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Modifies this view by binding its accessibility element's focus state"},{"text":"to the given boolean state value."},{"text":""},{"text":"- Parameter condition: The accessibility focus state to bind. When"},{"text":" accessibility focus moves to the accessibility element of the"},{"text":" modified view, the focus value is set to `true`."},{"text":" If the value is set to `true` programmatically, then accessibility"},{"text":" focus will move to accessibility element of the modified view."},{"text":" The value will be set to `false` if accessibility focus leaves"},{"text":" the accessibility element of the modified view,"},{"text":" and accessibility focus will be dismissed automatically if the"},{"text":" value is set to `false` programmatically."},{"text":""},{"text":"- Returns: The modified view."}]},"functionSignature":{"parameters":[{"name":"condition","declarationFragments":[{"kind":"identifier","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityFocused"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"condition"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityFocusState","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">."},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI23AccessibilityFocusStateV7BindingV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","groupBoxStyle(_:)"],"names":{"title":"groupBoxStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"groupBoxStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for group boxes within this view."},{"text":""},{"text":"- Parameter style: The style to apply to boxes within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"GroupBoxStyle","rhsPrecise":"s:7SwiftUI13GroupBoxStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"groupBoxStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"GroupBoxStyle","preciseIdentifier":"s:7SwiftUI13GroupBoxStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","sectionActions(content:)"],"names":{"title":"sectionActions(content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds custom actions to a section."},{"text":""},{"text":"On iOS, the actions are displayed as items after the content"},{"text":"of the section. On macOS, the actions are displayed"},{"text":"when a user hovers over the section."},{"text":""},{"text":"The following example adds an 'Add' button to"},{"text":"the 'Categories' section."},{"text":""},{"text":" List {"},{"text":" Label(\"Home\", systemImage: \"house\")"},{"text":" Label(\"Alerts\", systemImage: \"bell\")"},{"text":""},{"text":" Section(\"Categories\") {"},{"text":" Label(\"Climate\", systemImage: \"fan\")"},{"text":" Label(\"Lights\", systemImage: \"lightbulb\")"},{"text":" }"},{"text":" .sectionActions {"},{"text":" Button(\"Add Category\", systemImage: \"plus\") { }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sectionActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listSectionMargins(_:_:)"],"names":{"title":"listSectionMargins(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionMargins"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the section margins for the specific edges."},{"text":""},{"text":"Use this modifier on a list section to set customize its margins."},{"text":"Indicate the edges to set the margin of by naming either a single value"},{"text":"from ``Edge/Set``, or by specifying an"},{"text":" that"},{"text":"contains edge values. Margins for the other edges remain unchanged."},{"text":""},{"text":"The default section margins are based on the list style, list section"},{"text":"spacing and content margins of the list. Using this modifier overrides"},{"text":"these default values completely."},{"text":""},{"text":"For sections that have headers or footers, the section margins are"},{"text":"applied around these."},{"text":""},{"text":"- Parameters:"},{"text":" - edges: The set of edges to pad for sections in this view. The"},{"text":" default is ``Edge/Set/all``."},{"text":" - length: An amount, given in points, to pad section on the"},{"text":" specified edges."},{"text":""},{"text":"- Returns: A view in which the margins of list sections are set to the"},{"text":" specified amount on the specified edges."}]},"functionSignature":{"parameters":[{"name":"edges","declarationFragments":[{"kind":"identifier","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"}]},{"name":"length","declarationFragments":[{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listSectionMargins"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"edges"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Edge","preciseIdentifier":"s:7SwiftUI4EdgeO"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:7SwiftUI4EdgeO3SetV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDetents(_:)"],"names":{"title":"presentationDetents(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the available detents for the enclosing sheet."},{"text":""},{"text":"By default, sheets support the ``PresentationDetent/large`` detent."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter detents: A set of supported detents for the sheet."},{"text":" If you provide more that one detent, people can drag the sheet"},{"text":" to resize it."}]},"functionSignature":{"parameters":[{"name":"detents","declarationFragments":[{"kind":"identifier","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDetents(_:selection:)"],"names":{"title":"presentationDetents(_:selection:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the available detents for the enclosing sheet, giving you"},{"text":"programmatic control of the currently selected detent."},{"text":""},{"text":"By default, sheets support the ``PresentationDetent/large`` detent."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":" @State private var settingsDetent = PresentationDetent.medium"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents("},{"text":" [.medium, .large],"},{"text":" selection: $settingsDetent"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - detents: A set of supported detents for the sheet."},{"text":" If you provide more that one detent, people can drag the sheet"},{"text":" to resize it."},{"text":" - selection: A ``Binding`` to the currently selected detent."},{"text":" Ensure that the value matches one of the detents that you"},{"text":" provide for the `detents` parameter."}]},"functionSignature":{"parameters":[{"name":"detents","declarationFragments":[{"kind":"identifier","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]},{"name":"selection","declarationFragments":[{"kind":"identifier","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDetents"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"detents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"PresentationDetent","preciseIdentifier":"s:7SwiftUI18PresentationDetentV"},{"kind":"text","spelling":">) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationDragIndicator(_:)"],"names":{"title":"presentationDragIndicator(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDragIndicator"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the visibility of the drag indicator on top of a sheet."},{"text":""},{"text":"You can show a drag indicator when it isn't apparent that a"},{"text":"sheet can resize or when the sheet can't dismiss interactively."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationDragIndicator(.visible)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter visibility: The preferred visibility of the drag indicator."}]},"functionSignature":{"parameters":[{"name":"visibility","declarationFragments":[{"kind":"identifier","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationDragIndicator"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"visibility"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Visibility","preciseIdentifier":"s:7SwiftUI10VisibilityO"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackgroundInteraction(_:)"],"names":{"title":"presentationBackgroundInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackgroundInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Controls whether people can interact with the view behind a"},{"text":"presentation."},{"text":""},{"text":"On many platforms, SwiftUI automatically disables the view behind a"},{"text":"sheet that you present, so that people can't interact with the backing"},{"text":"view until they dismiss the sheet. Use this modifier if you want to"},{"text":"enable interaction."},{"text":""},{"text":"The following example enables people to interact with the view behind"},{"text":"the sheet when the sheet is at the smallest detent, but not at the other"},{"text":"detents:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents("},{"text":" [.height(120), .medium, .large])"},{"text":" .presentationBackgroundInteraction("},{"text":" .enabled(upThrough: .height(120)))"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - interaction: A specification of how people can interact with the"},{"text":" view behind a presentation."}]},"functionSignature":{"parameters":[{"name":"interaction","declarationFragments":[{"kind":"identifier","spelling":"interaction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackgroundInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"interaction"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationBackgroundInteraction","preciseIdentifier":"s:7SwiftUI33PresentationBackgroundInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCompactAdaptation(_:)"],"names":{"title":"presentationCompactAdaptation(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies how to adapt a presentation to compact size classes."},{"text":""},{"text":"Some presentations adapt their appearance depending on the context. For"},{"text":"example, a sheet presentation over a vertically-compact view uses a"},{"text":"full-screen-cover appearance by default. Use this modifier to indicate"},{"text":"a custom adaptation preference. For example, the following code"},{"text":"uses a presentation adaptation value of ``PresentationAdaptation/none``"},{"text":"to request that the system not adapt the sheet in compact size classes:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationCompactAdaptation(.none)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you want to specify different adaptations for each dimension,"},{"text":"use the ``View/presentationCompactAdaptation(horizontal:vertical:)``"},{"text":"method instead."},{"text":""},{"text":"- Parameter adaptation: The adaptation to use in either a horizontally"},{"text":" or vertically compact size class."}]},"functionSignature":{"parameters":[{"name":"adaptation","declarationFragments":[{"kind":"identifier","spelling":"adaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"adaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCompactAdaptation(horizontal:vertical:)"],"names":{"title":"presentationCompactAdaptation(horizontal:vertical:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies how to adapt a presentation to horizontally and vertically"},{"text":"compact size classes."},{"text":""},{"text":"Some presentations adapt their appearance depending on the context. For"},{"text":"example, a popover presentation over a horizontally-compact view uses a"},{"text":"sheet appearance by default. Use this modifier to indicate a custom"},{"text":"adaptation preference."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showInfo = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Info\") {"},{"text":" showInfo = true"},{"text":" }"},{"text":" .popover(isPresented: $showInfo) {"},{"text":" InfoView()"},{"text":" .presentationCompactAdaptation("},{"text":" horizontal: .popover,"},{"text":" vertical: .sheet)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you want to specify the same adaptation for both dimensions,"},{"text":"use the ``View/presentationCompactAdaptation(_:)`` method instead."},{"text":""},{"text":"- Parameters:"},{"text":" - horizontalAdaptation: The adaptation to use in a horizontally"},{"text":" compact size class."},{"text":" - verticalAdaptation: The adaptation to use in a vertically compact"},{"text":" size class. In a size class that is both horizontally and vertically"},{"text":" compact, SwiftUI uses the `verticalAdaptation` value."}]},"functionSignature":{"parameters":[{"name":"horizontal","internalName":"horizontalAdaptation","declarationFragments":[{"kind":"identifier","spelling":"horizontalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]},{"name":"vertical","internalName":"verticalAdaptation","declarationFragments":[{"kind":"identifier","spelling":"verticalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCompactAdaptation"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"horizontal"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"horizontalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertical"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"verticalAdaptation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationAdaptation","preciseIdentifier":"s:7SwiftUI22PresentationAdaptationV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationCornerRadius(_:)"],"names":{"title":"presentationCornerRadius(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCornerRadius"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Requests that the presentation have a specific corner radius."},{"text":""},{"text":"Use this modifier to change the corner radius of a presentation."},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationCornerRadius(21)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameter cornerRadius: The corner radius, or `nil` to use the system"},{"text":" default."},{"text":""},{"text":"- Note: Configuring a corner radius is not supported on watchOS, tvOS,"},{"text":"or macOS."}]},"functionSignature":{"parameters":[{"name":"cornerRadius","declarationFragments":[{"kind":"identifier","spelling":"cornerRadius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationCornerRadius"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"cornerRadius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationContentInteraction(_:)"],"names":{"title":"presentationContentInteraction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationContentInteraction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Configures the behavior of swipe gestures on a presentation."},{"text":""},{"text":"By default, when a person swipes up on a scroll view in a resizable"},{"text":"presentation, the presentation grows to the next detent. A scroll view"},{"text":"embedded in the presentation only scrolls after the presentation"},{"text":"reaches its largest size. Use this modifier to control which action"},{"text":"takes precedence."},{"text":""},{"text":"For example, you can request that swipe gestures scroll content first,"},{"text":"resizing the sheet only after hitting the end of the scroll view, by"},{"text":"passing the ``PresentationContentInteraction/scrolls`` value to this"},{"text":"modifier:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationContentInteraction(.scrolls)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"People can always resize your presentation using the drag indicator."},{"text":""},{"text":"- Parameter behavior: The requested behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationContentInteraction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationContentInteraction","preciseIdentifier":"s:7SwiftUI30PresentationContentInteractionV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationPlacement(_:)"],"names":{"title":"presentationPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the placement of a presentation within the presenting view."},{"text":""},{"text":"By default, a presentation uses ``PresentationPlacement/automatic``"},{"text":"placement. Use this modifier to place it on the leading or trailing"},{"text":"edge. For example, to maximize the visibility of the primary content"},{"text":"behind a presented sheet:"},{"text":""},{"text":" Map()"},{"text":" .sheet(isPresented: $isPresented) {"},{"text":" PlaceDetailView()"},{"text":" .presentationDetents([.medium, .large])"},{"text":" .presentationPlacement(.leading)"},{"text":" }"},{"text":""},{"text":"Only sheet presentations respect this placement."},{"text":""},{"text":"- Parameter placement: The placement of the presentation within"},{"text":" the presenting view."}]},"functionSignature":{"parameters":[{"name":"placement","declarationFragments":[{"kind":"identifier","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"placement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"PresentationPlacement","preciseIdentifier":"s:7SwiftUI21PresentationPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","buttonRepeatBehavior(_:)"],"names":{"title":"buttonRepeatBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonRepeatBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets whether buttons in this view should repeatedly trigger their"},{"text":"actions on prolonged interactions."},{"text":""},{"text":"Apply this to buttons that increment or decrement a value or perform"},{"text":"some other inherently iterative operation. Interactions such as"},{"text":"pressing-and-holding on the button, holding the button's keyboard"},{"text":"shortcut, or holding down the space key while the button is focused will"},{"text":"trigger this repeat behavior."},{"text":""},{"text":" Button {"},{"text":" playbackSpeed.advance(by: 1)"},{"text":" } label: {"},{"text":" Label(\"Speed up\", systemImage: \"hare\")"},{"text":" }"},{"text":" .buttonRepeatBehavior(.enabled)"},{"text":""},{"text":"This affects all system button styles, as well as automatically"},{"text":"affects custom `ButtonStyle` conforming types. This does not"},{"text":"automatically apply to custom `PrimitiveButtonStyle` conforming types,"},{"text":"and the ``EnvironmentValues.buttonRepeatBehavior`` value should be used"},{"text":"to adjust their custom gestures as appropriate."},{"text":""},{"text":"- Parameter behavior: A value of `enabled` means that buttons should"},{"text":" enable repeating behavior and a value of `disabled` means that buttons"},{"text":" should disallow repeating behavior."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"buttonRepeatBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ButtonRepeatBehavior","preciseIdentifier":"s:7SwiftUI20ButtonRepeatBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","introduced":{"major":17,"minor":0}},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","contextMenu(forSelectionType:menu:primaryAction:)"],"names":{"title":"contextMenu(forSelectionType:menu:primaryAction:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"forSelectionType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"menu"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an item-based context menu to a view."},{"text":""},{"text":"You can add an item-based context menu to a container that supports"},{"text":"selection, like a ``List`` or a ``Table``. In the closure that you"},{"text":"use to define the menu, you receive a collection of items that"},{"text":"depends on the selection state of the container and the location where"},{"text":"the person clicks or taps to activate the menu. The collection contains:"},{"text":""},{"text":"* The selected item or items, when people initiate the context menu"},{"text":" from any selected item."},{"text":"* Nothing, if people tap or click to activate the context menu from"},{"text":" an empty part of the container. This is true even when one or more"},{"text":" items is currently selected."},{"text":""},{"text":"You can vary the menu contents according to the number of selected"},{"text":"items. For example, the following code has a list that defines an"},{"text":"empty area menu, a single item menu, and a multi-item menu:"},{"text":""},{"text":" struct ContextMenuItemExample: View {"},{"text":" var items: [Item]"},{"text":" @State private var selection = Set()"},{"text":""},{"text":" var body: some View {"},{"text":" List(selection: $selection) {"},{"text":" ForEach(items) { item in"},{"text":" Text(item.name)"},{"text":" }"},{"text":" }"},{"text":" .contextMenu(forSelectionType: Item.ID.self) { items in"},{"text":" if items.isEmpty { // Empty area menu."},{"text":" Button(\"New Item\") { }"},{"text":""},{"text":" } else if items.count == 1 { // Single item menu."},{"text":" Button(\"Copy\") { }"},{"text":" Button(\"Delete\", role: .destructive) { }"},{"text":""},{"text":" } else { // Multi-item menu."},{"text":" Button(\"Copy\") { }"},{"text":" Button(\"New Folder With Selection\") { }"},{"text":" Button(\"Delete Selected\", role: .destructive) { }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The above example assumes that the `Item` type conforms to the"},{"text":""},{"text":"protocol, and relies on the associated `ID` type for both selection"},{"text":"and context menu presentation."},{"text":""},{"text":"If you add the modifier to a view hierarchy that doesn't have a"},{"text":"container that supports selection, the context menu never activates."},{"text":"To add a context menu that doesn't depend on selection behavior, use"},{"text":"``View/contextMenu(menuItems:)``. To add a context menu to a specific"},{"text":"row in a table, use ``TableRowContent/contextMenu(menuItems:)``."},{"text":""},{"text":"### Add a primary action"},{"text":""},{"text":"Optionally, you can add a custom primary action to the context menu. In"},{"text":"macOS, a single click on a row in a selectable container selects that"},{"text":"row, and a double click performs the primary action. In iOS and iPadOS,"},{"text":"tapping on the row activates the primary action. To select a row"},{"text":"without performing an action, either enter edit mode or hold"},{"text":"shift or command on a keyboard while tapping the row."},{"text":""},{"text":"For example, you can modify the context menu from the previous example"},{"text":"so that double clicking the row on macOS opens a new window for"},{"text":"selected items. Get the ``OpenWindowAction`` from the environment:"},{"text":""},{"text":" @Environment(\\.openWindow) private var openWindow"},{"text":""},{"text":"Then call ``EnvironmentValues/openWindow`` from inside the"},{"text":"`primaryAction` closure for each item:"},{"text":""},{"text":" .contextMenu(forSelectionType: Item.ID.self) { items in"},{"text":" // ..."},{"text":" } primaryAction: { items in"},{"text":" for item in items {"},{"text":" openWindow(value: item)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The open window action depends on the declaration of a ``WindowGroup``"},{"text":"scene in your ``App`` that responds to the `Item` type:"},{"text":""},{"text":" WindowGroup(\"Item Detail\", for: Item.self) { $item in"},{"text":" // ..."},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - itemType: The identifier type of the items. Ensure that this"},{"text":" matches the container's selection type."},{"text":" - menu: A closure that produces the menu. A single parameter to the"},{"text":" closure contains the set of items to act on. An empty set indicates"},{"text":" menu activation over the empty area of the selectable container,"},{"text":" while a non-empty set indicates menu activation over selected items."},{"text":" Use controls like ``Button``, ``Picker``, and ``Toggle`` to define"},{"text":" the menu items. You can also create submenus using ``Menu``, or"},{"text":" group items with ``Section``. You can deactivate the context menu"},{"text":" by returning nothing from the closure."},{"text":" - primaryAction: A closure that defines the action to perform in"},{"text":" response to the primary interaction. A single parameter to the"},{"text":" closure contains the set of items to act on."},{"text":""},{"text":"- Returns: A view that can display an item-based context menu."}]},"functionSignature":{"parameters":[{"name":"forSelectionType","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type"}]},{"name":"menu","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"menu"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"}]},{"name":"primaryAction","declarationFragments":[{"kind":"identifier","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"I","index":0,"depth":1},{"name":"M","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"I","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contextMenu"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"M"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"forSelectionType"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":".Type = I.self, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"menu"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"primaryAction"},{"kind":"text","spelling":": (("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"M"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","gesture(_:)"],"names":{"title":"gesture(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Attaches a ``UIGestureRecognizerRepresentable`` to the view."},{"text":""},{"text":"- Parameter representable: The ``UIGestureRecognizerRepresentable``"},{"text":" that creates and manages a gesture recognizer."},{"text":""},{"text":"- Returns: A view with a ``UIGestureRecognizerRepresentable`` attached."}]},"functionSignature":{"parameters":[{"name":"representable","declarationFragments":[{"kind":"identifier","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some UIGestureRecognizerRepresentable","rhs":"UIGestureRecognizerRepresentable","rhsPrecise":"s:7SwiftUI32UIGestureRecognizerRepresentableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"gesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"representable"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIGestureRecognizerRepresentable","preciseIdentifier":"s:7SwiftUI32UIGestureRecognizerRepresentableP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:file:onCompletion:)"],"names":{"title":"fileMover(isPresented:file:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move an existing"},{"text":"file to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `file` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - file: The `URL` of the file to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" has succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:files:onCompletion:)"],"names":{"title":"fileMover(isPresented:files:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move a collection"},{"text":"of existing files to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `files` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - files: A collection of `URL`s for the files to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" has succeeded or failed. To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"files","declarationFragments":[{"kind":"identifier","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"sameType","lhs":"C.Element","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:file:onCompletion:onCancellation:)"],"names":{"title":"fileMover(isPresented:file:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move"},{"text":"an existing file to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to move a file might look like this:"},{"text":""},{"text":" struct MoveFileButton: View {"},{"text":" @State private var showFileMover = false"},{"text":" var file: URL"},{"text":" var onCompletion: (URL) -> Void"},{"text":" var onCancellation: (() -> Void)?"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileMover = true"},{"text":" } label: {"},{"text":" Label(\"Choose destination\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileMover(isPresented: $showFileMover, file: file) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" guard url.startAccessingSecurityScopedResource() else {"},{"text":" return"},{"text":" }"},{"text":" onCompletion(url)"},{"text":" url.stopAccessingSecurityScopedResource()"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" // handle error"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" onCancellation?()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - file: The URL of the file to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed. To access the received URLs, call"},{"text":" `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileMover(isPresented:files:onCompletion:onCancellation:)"],"names":{"title":"fileMover(isPresented:files:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to move"},{"text":"a collection of existing files to a new location."},{"text":""},{"text":"- Note: This dialog provides security-scoped URLs."},{"text":" Call the ``startAccessingSecurityScopedResource`` method to access or bookmark"},{"text":" the URLs, and the ``stopAccessingSecurityScopedResource`` method"},{"text":" to release the access."},{"text":""},{"text":"For example, a button that allows the user to move files might look like this:"},{"text":""},{"text":" struct MoveFilesButton: View {"},{"text":" @Binding var files: [URL]"},{"text":" @State private var showFileMover = false"},{"text":" var onCompletion: (URL) -> Void"},{"text":" var onCancellation: (() -> Void)?"},{"text":""},{"text":" var body: some View {"},{"text":" Button {"},{"text":" showFileMover = true"},{"text":" } label: {"},{"text":" Label(\"Choose destination\", systemImage: \"folder.circle\")"},{"text":" }"},{"text":" .fileMover(isPresented: $showFileMover, files: files) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { url in"},{"text":" guard url.startAccessingSecurityScopedResource() else {"},{"text":" return"},{"text":" }"},{"text":" onCompletion(url)"},{"text":" url.stopAccessingSecurityScopedResource()"},{"text":" }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" // handle error"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" onCancellation?()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``, ``fileDialogURLEnabled(_:)``,"},{"text":"``fileDialogImportsUnresolvedAliases(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - files: A collection of URLs for the files to be moved."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" To access the received URLs, call `startAccessingSecurityScopedResource`."},{"text":" When the access is no longer required, call `stopAccessingSecurityScopedResource`."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"files","declarationFragments":[{"kind":"identifier","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"sameType","lhs":"C.Element","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileMover"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"files"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","tabViewCustomization(_:)"],"names":{"title":"tabViewCustomization(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewCustomization"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the customizations to apply to the sidebar representation"},{"text":"of the tab view."},{"text":""},{"text":"Only the ``TabViewStyle/sidebarAdaptable`` style supports"},{"text":"supports customization. Specifying a non-nil ``TabViewCustomization``"},{"text":"object using this modifier enables customization."},{"text":""},{"text":"By default, if a person hasn't made customizations, tabs appear"},{"text":"according to the default builder visibilities and sections appear in"},{"text":"the order you declare in the tab view's tab builder."},{"text":""},{"text":"You can change the default visibility by using the"},{"text":"``TabContent/defaultVisibility(_:for:)`` with a"},{"text":"``AdaptableTabBarPlacement/sidebar`` placement."},{"text":""},{"text":"You can change the default section order by changing the order"},{"text":"in the builder. If there's an existing persisted customization,"},{"text":"reset the order by calling"},{"text":"``TabViewCustomization/SectionCustomization/resetTabOrder()``"},{"text":"when you change the order."},{"text":""},{"text":"All tabs and tab sections that support customization need to have"},{"text":"a customization ID. You can mark a tab as being non-customizable"},{"text":"by specifying a ``TabCustomizationBehavior/disabled`` behavior"},{"text":"in all adaptable tab bar placements"},{"text":"using ``TabContent/customizationBehavior(_:for:)-2u727``."},{"text":""},{"text":"On macOS, a default interaction is provided for reordering sections but"},{"text":"not for controlling the visibility of individual tabs. A custom"},{"text":"experience should be provided if desired by setting the visibility of"},{"text":"the tab on the customization."},{"text":""},{"text":"The following code example uses `@AppStorage` to automatically persist"},{"text":"any visibility or section order customizations a person makes."},{"text":""},{"text":" @AppStorage"},{"text":" private var customization: TabViewCustomization"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" MyHomeView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.home\")"},{"text":""},{"text":" Tab(\"Reports\", systemImage: \"chart.bar\") {"},{"text":" MyReportsView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.reports\")"},{"text":""},{"text":" TabSection(\"Categories\") {"},{"text":" Tab(\"Climate\", systemImage: \"fan\") {"},{"text":" ClimateView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.climate\")"},{"text":""},{"text":" Tab(\"Lights\", systemImage: \"lightbulb\") {"},{"text":" LightsView()"},{"text":" }"},{"text":" .customizationID(\"com.myApp.lights\")"},{"text":" }"},{"text":" .customizationID(\"com.myApp.browse\")"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .tabViewCustomization($customization)"},{"text":""},{"text":"- Parameters:"},{"text":" - customization: The customization object to store"},{"text":" user customization in."}]},"functionSignature":{"parameters":[{"name":"customization","declarationFragments":[{"kind":"identifier","spelling":"customization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tabViewCustomization"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"customization"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"TabViewCustomization","preciseIdentifier":"s:7SwiftUI20TabViewCustomizationV"},{"kind":"text","spelling":">?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a document that's stored in"},{"text":"a value type, like a structure, to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `document` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"For example, a button that exports a text document might look like this:"},{"text":""},{"text":" struct ExportButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var document: TextFile?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" document: document,"},{"text":" contentType: .utf8PlainText,"},{"text":" defaultFilename: \"Exported Document\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentType:onCompletion:)"],"names":{"title":"fileExporter(isPresented:documents:contentType:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a collection of value type"},{"text":"documents to files on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `documents` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"For example, a button that exports a collection of text documents might"},{"text":"look like this:"},{"text":""},{"text":" struct ExportAllButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var documents: [TextFile]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export All\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" documents: documents,"},{"text":" contentType: .utf8PlainText"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The collection of in-memory documents to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a document that's stored in"},{"text":"a reference type, like a class, to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `document` must not be `nil`. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentType:onCompletion:)"],"names":{"title":"fileExporter(isPresented:documents:contentType:onCompletion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for exporting a collection of reference type"},{"text":"documents to files on disk."},{"text":""},{"text":"In order for the dialog to appear, both `isPresented` must be `true`"},{"text":"and `documents` must not be empty. When the operation is finished,"},{"text":"`isPresented` will be set to `false` before `onCompletion` is called. If"},{"text":"the user cancels the operation, `isPresented` will be set to `false` and"},{"text":"`onCompletion` will not be called."},{"text":""},{"text":"The `contentType` provided must be included within the document type's"},{"text":"`writableContentTypes`, otherwise the first valid writable content type"},{"text":"will be used instead."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"This overload works the same way as the batch ``FileDocument`` overload,"},{"text":"but accepts a collection of ``ReferenceFileDocument`` values instead."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The collection of in-memory documents to export."},{"text":" - contentType: The content type to use for the exported file."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - term result: A `Result` indicating whether the operation succeeded or"},{"text":" failed."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":11,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog allowing the user to export"},{"text":"a `Transferable` item to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be set to `true`."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a photo might look like this:"},{"text":""},{"text":" struct ExportPhotoButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var photo: Photo"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export Photo\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" item: photo,"},{"text":" defaultFilename: \"exported photo\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Photo: Transferable { ... }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - item: The item to be saved on disk."},{"text":" - contentTypes: The optional content types to use for the exported"},{"text":" file. If empty, SwiftUI uses the content types from the"},{"text":" `transferRepresentation` property provided for `Transferable`"},{"text":" conformance."},{"text":" - defaultFilename: If provided, the default name to use for the"},{"text":" exported file, which the user will have an opportunity to edit"},{"text":" prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog allowing the user to export"},{"text":"a collection of `Transferable` items to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be set to `true`."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a collection of photos might look"},{"text":"like this:"},{"text":""},{"text":" struct ExportPhotosButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var photos: [Photo]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export Photos\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" items: photos"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Photo: Transferable { ... }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - items: Collection of values to be saved on disk."},{"text":" - contentTypes: The content types to use for the exported files."},{"text":" If empty, SwiftUI uses the content types from the"},{"text":" `transferRepresentation` property provided for `Transferable`"},{"text":" conformance."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"items","declarationFragments":[{"kind":"identifier","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"T","rhs":"C.Element"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"items"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = { }) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`FileDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"For example, a button that exports a document and handles cancellation"},{"text":"might look like this:"},{"text":""},{"text":" struct ExportButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var document: TextFile?"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" document: document,"},{"text":" contentTypes: [.utf8PlainText],"},{"text":" defaultFilename: \"Exported Document\""},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let url):"},{"text":" print(\"Saved to \\(url)\")"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `FileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`ReferenceFileDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `ReferenceFileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which will the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of documents that conform to `FileDocument`"},{"text":"to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"For example, a button that exports a collection of documents and handles"},{"text":"cancellation might look like this:"},{"text":""},{"text":" struct ExportAllButton: View {"},{"text":" @State private var isExporterPresented = false"},{"text":" var documents: [TextFile]"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export All\") {"},{"text":" isExporterPresented = true"},{"text":" }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporterPresented,"},{"text":" documents: documents,"},{"text":" contentTypes: [.utf8PlainText]"},{"text":" ) { result in"},{"text":" switch result {"},{"text":" case .success(let urls):"},{"text":" urls.forEach { print(\"Saved to \\($0)\") }"},{"text":" case .failure(let error):"},{"text":" print(error)"},{"text":" }"},{"text":" } onCancellation: {"},{"text":" print(\"Export cancelled\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `FileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"FileDocument","rhsPrecise":"s:7SwiftUI12FileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FileDocument","preciseIdentifier":"s:7SwiftUI12FileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your type to WritableDocument or Transferable instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of documents that conform to `ReferenceFileDocument`"},{"text":"to files on disk."},{"text":""},{"text":"In order for the dialog to appear, `isPresented` must be `true`. When"},{"text":"the operation is finished, `isPresented` will be set to `false` before"},{"text":"`onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"To further configure the dialog's appearance and behavior, use these"},{"text":"view modifiers: ``fileDialogDefaultDirectory(_:)``,"},{"text":"``fileDialogConfirmationLabel(_:)``, ``fileDialogMessage(_:)``,"},{"text":"``fileDialogBrowserOptions(_:)``,"},{"text":"``fileExporterFilenameLabel(_:)``, and"},{"text":"``fileDialogCustomizationID(_:)``."},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The list of supported content types which can"},{"text":" be exported. If not provided, `ReferenceFileDocument.writableContentTypes`"},{"text":" are used."},{"text":" - onCompletion: A callback that will be invoked when the operation has"},{"text":" succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"ReferenceFileDocument","rhsPrecise":"s:7SwiftUI21ReferenceFileDocumentP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":" = {}) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ReferenceFileDocument","preciseIdentifier":"s:7SwiftUI21ReferenceFileDocumentP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"macOS","introduced":{"major":14,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":1,"minor":0},"deprecated":{"major":100000,"minor":0},"message":"Conform your document type to WritableDocument or Transferable protocol instead."},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"`WritableDocument` to a file on disk."},{"text":""},{"text":"In order for the dialog to appear, `document` must be non-nil. When"},{"text":"the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":"Below is an example of a simple implementation of `WritableDocument`."},{"text":"Instead of `String`, you can use `Data` or any other type as the"},{"text":"snapshot."},{"text":""},{"text":" @MainActor"},{"text":" final class TextDocument: WritableDocument {"},{"text":" static let writableContentTypes: [UTType] = [.utf8PlainText]"},{"text":""},{"text":" var text: String = \"\""},{"text":""},{"text":" nonisolated func writer("},{"text":" configuration: sending WriteConfiguration"},{"text":" ) -> sending FileWrapperDocumentWriter {"},{"text":" FileWrapperDocumentWriter(configuration) { snapshot, _ in"},{"text":" FileWrapper(regularFileWithContents: Data(snapshot.utf8))"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func snapshot(contentType: UTType) async throws -> String {"},{"text":" text"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ExportView: View {"},{"text":" @State private var document = TextDocument()"},{"text":" @State private var isExporting = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export…\") { isExporting = true }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporting,"},{"text":" document: document,"},{"text":" defaultFilename: \"Untitled\""},{"text":" ) { _ in }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - document: The in-memory document to export."},{"text":" - contentType: The content type to export to. If not provided,"},{"text":" `WritableDocument.writableContentTypes` are used."},{"text":" - defaultFilename: If provided, the default name to use"},{"text":" for the exported file, which the user will have"},{"text":" an opportunity to edit prior to the export."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"document","declarationFragments":[{"kind":"identifier","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?"}]},{"name":"contentType","declarationFragments":[{"kind":"identifier","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"?"}]},{"name":"defaultFilename","declarationFragments":[{"kind":"identifier","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"D","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"D","rhs":"WritableDocument","rhsPrecise":"s:7SwiftUI16WritableDocumentP"},{"kind":"sameType","lhs":"D.Writer.Destination","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"D"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"document"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"contentType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"defaultFilename"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"WritableDocument","preciseIdentifier":"s:7SwiftUI16WritableDocumentP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"D"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Writer","preciseIdentifier":"s:7SwiftUI16WritableDocumentP6WriterQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Destination","preciseIdentifier":"s:7SwiftUI14DocumentWriterP11DestinationQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"],"names":{"title":"fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Presents a system dialog for allowing the user to export a"},{"text":"collection of objects conforming to `WritableDocument` to files"},{"text":"on disk."},{"text":""},{"text":"In order for the dialog to appear, `documents` must be non-empty."},{"text":"When the operation is finished, `isPresented` will be set to `false`"},{"text":"before `onCompletion` is called. If the user cancels the operation,"},{"text":"`isPresented` will be set to `false` and `onCancellation` will be"},{"text":"called."},{"text":""},{"text":" @MainActor"},{"text":" final class TextDocument: WritableDocument {"},{"text":" static let writableContentTypes: [UTType] = [.utf8PlainText]"},{"text":""},{"text":" var text: String = \"\""},{"text":""},{"text":" nonisolated func writer("},{"text":" configuration: sending WriteConfiguration"},{"text":" ) -> sending FileWrapperDocumentWriter {"},{"text":" FileWrapperDocumentWriter(configuration) { snapshot, _ in"},{"text":" FileWrapper(regularFileWithContents: Data(snapshot.utf8))"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func snapshot(contentType: UTType) async throws -> String {"},{"text":" text"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct ExportView: View {"},{"text":" @Binding var documents: [TextDocument]"},{"text":" @State private var isExporting = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Export…\") { isExporting = true }"},{"text":" .fileExporter("},{"text":" isPresented: $isExporting,"},{"text":" documents: documents"},{"text":" ) { _ in }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - isPresented: A binding to whether the dialog should be shown."},{"text":" - documents: The in-memory documents to export."},{"text":" - contentTypes: The content types to export to. If not provided,"},{"text":" `WritableDocument.writableContentTypes` are used."},{"text":" - onCompletion: A callback that will be invoked when the operation"},{"text":" has succeeded or failed. The `result` indicates whether"},{"text":" the operation succeeded or failed."},{"text":" - onCancellation: A callback that will be invoked"},{"text":" if the user cancels the operation."}]},"functionSignature":{"parameters":[{"name":"isPresented","declarationFragments":[{"kind":"identifier","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">"}]},{"name":"documents","declarationFragments":[{"kind":"identifier","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"}]},{"name":"contentTypes","declarationFragments":[{"kind":"identifier","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"]"}]},{"name":"onCompletion","declarationFragments":[{"kind":"identifier","spelling":"onCompletion"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"onCancellation","declarationFragments":[{"kind":"identifier","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"C.Element","rhs":"WritableDocument","rhsPrecise":"s:7SwiftUI16WritableDocumentP"},{"kind":"sameType","lhs":"C.Element.Writer.Destination","rhs":"URL","rhsPrecise":"s:10Foundation3URLV"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fileExporter"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"isPresented"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Binding","preciseIdentifier":"s:7SwiftUI7BindingV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"documents"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"contentTypes"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UTType","preciseIdentifier":"s:22UniformTypeIdentifiers6UTTypeV"},{"kind":"text","spelling":"] = [], "},{"kind":"externalParam","spelling":"onCompletion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"], any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"onCancellation"},{"kind":"text","spelling":": (() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"WritableDocument","preciseIdentifier":"s:7SwiftUI16WritableDocumentP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Writer","preciseIdentifier":"s:7SwiftUI16WritableDocumentP6WriterQa"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Destination","preciseIdentifier":"s:7SwiftUI14DocumentWriterP11DestinationQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAddTraits(_:)"],"names":{"title":"accessibilityAddTraits(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAddTraits"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds the given traits to the view."}]},"functionSignature":{"parameters":[{"name":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAddTraits"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityRemoveTraits(_:)"],"names":{"title":"accessibilityRemoveTraits(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRemoveTraits"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Removes the given traits from this view."}]},"functionSignature":{"parameters":[{"name":"traits","declarationFragments":[{"kind":"identifier","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityRemoveTraits"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"traits"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityTraits","preciseIdentifier":"s:7SwiftUI19AccessibilityTraitsV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","interactiveDismissDisabled(_:)"],"names":{"title":"interactiveDismissDisabled(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactiveDismissDisabled"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Conditionally prevents interactive dismissal of presentations like"},{"text":"popovers, sheets, and inspectors."},{"text":""},{"text":"Users can dismiss certain kinds of presentations using built-in"},{"text":"gestures. In particular, a user can dismiss a sheet by dragging it down,"},{"text":"or a popover by clicking or tapping outside of the presented view. Use"},{"text":"the `interactiveDismissDisabled(_:)` modifier to conditionally prevent"},{"text":"this kind of dismissal. You typically do this to prevent the user from"},{"text":"dismissing a presentation before providing needed data or completing"},{"text":"a required action."},{"text":""},{"text":"For instance, suppose you have a view that displays a licensing"},{"text":"agreement that the user must acknowledge before continuing:"},{"text":""},{"text":" struct TermsOfService: View {"},{"text":" @Binding var areTermsAccepted: Bool"},{"text":" @Environment(\\.dismiss) private var dismiss"},{"text":""},{"text":" var body: some View {"},{"text":" Form {"},{"text":" Text(\"License Agreement\")"},{"text":" .font(.title)"},{"text":" Text(\"Terms and conditions go here.\")"},{"text":" Button(\"Accept\") {"},{"text":" areTermsAccepted = true"},{"text":" dismiss()"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"If you present this view in a sheet, the user can dismiss it by either"},{"text":"tapping the button --- which calls ``EnvironmentValues/dismiss``"},{"text":"from its `action` closure --- or by dragging the sheet down. To"},{"text":"ensure that the user accepts the terms by tapping the button,"},{"text":"disable interactive dismissal, conditioned on the `areTermsAccepted`"},{"text":"property:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var isSheetPresented = false"},{"text":" @State private var areTermsAccepted = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"Use Service\") {"},{"text":" isSheetPresented = true"},{"text":" }"},{"text":" .sheet(isPresented: $isSheetPresented) {"},{"text":" TermsOfService(areTermsAccepted: $areTermsAccepted)"},{"text":" .interactiveDismissDisabled(!areTermsAccepted)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"You can apply the modifier to any view in the sheet's view hierarchy,"},{"text":"including to the sheet's top level view, as the example demonstrates,"},{"text":"or to any child view, like the ``Form`` or the Accept ``Button``."},{"text":""},{"text":"The modifier has no effect on programmatic dismissal, which you can"},{"text":"invoke by updating the ``Binding`` that controls the presentation, or"},{"text":"by calling the environment's ``EnvironmentValues/dismiss`` action."},{"text":"On macOS, disabling interactive dismissal in a popover makes the popover"},{"text":"nontransient."},{"text":""},{"text":"- Parameter isDisabled: A Boolean value that indicates whether to"},{"text":" prevent nonprogrammatic dismissal of the containing view hierarchy"},{"text":" when presented in a sheet or popover."}]},"functionSignature":{"parameters":[{"name":"isDisabled","declarationFragments":[{"kind":"identifier","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"interactiveDismissDisabled"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isDisabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" = true) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityElement(children:)"],"names":{"title":"accessibilityElement(children:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityElement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new accessibility element, or modifies the"},{"text":"``AccessibilityChildBehavior`` of the existing accessibility element."},{"text":""},{"text":"See also:"},{"text":"- ``AccessibilityChildBehavior/ignore``"},{"text":"- ``AccessibilityChildBehavior/combine``"},{"text":"- ``AccessibilityChildBehavior/contain``"},{"text":""},{"text":"- Parameters:"},{"text":" - children: The behavior to use when creating or"},{"text":" transforming an accessibility element."},{"text":" The default is ``AccessibilityChildBehavior/ignore``"}]},"functionSignature":{"parameters":[{"name":"children","declarationFragments":[{"kind":"identifier","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityElement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"children"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityChildBehavior","preciseIdentifier":"s:7SwiftUI26AccessibilityChildBehaviorV"},{"kind":"text","spelling":" = .ignore) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labeledContentStyle(_:)"],"names":{"title":"labeledContentStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labeledContentStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets a style for labeled content."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"LabeledContentStyle","rhsPrecise":"s:7SwiftUI19LabeledContentStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labeledContentStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LabeledContentStyle","preciseIdentifier":"s:7SwiftUI19LabeledContentStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onTapGesture(count:coordinateSpace:inputKinds:perform:)"],"names":{"title":"onTapGesture(count:coordinateSpace:inputKinds:perform:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an action to perform when this view recognizes a tap gesture,"},{"text":"and provides the action with the location of the interaction."},{"text":""},{"text":"- Parameters:"},{"text":" - count: The number of taps or clicks required to trigger the"},{"text":" action closure provided in `action`."},{"text":" - coordinateSpace: The coordinate space in which to receive"},{"text":" location values."},{"text":" - inputKinds: A set of input kinds that this gesture recognizes."},{"text":" If not specified, the gesture will recognize all applicable input"},{"text":" kinds that a person can use to perform it."},{"text":" - action: The action to perform. This closure receives an input"},{"text":" that indicates where the interaction occurred."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"coordinateSpace","declarationFragments":[{"kind":"identifier","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},{"name":"inputKinds","declarationFragments":[{"kind":"identifier","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"}]},{"name":"perform","internalName":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CoordinateSpaceProtocol","rhs":"CoordinateSpaceProtocol","rhsPrecise":"s:7SwiftUI23CoordinateSpaceProtocolP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onTapGesture"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1, "},{"kind":"externalParam","spelling":"coordinateSpace"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CoordinateSpaceProtocol","preciseIdentifier":"s:7SwiftUI23CoordinateSpaceProtocolP"},{"kind":"text","spelling":" = .local, "},{"kind":"externalParam","spelling":"inputKinds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"GestureInputKinds","preciseIdentifier":"s:7SwiftUI17GestureInputKindsV"},{"kind":"text","spelling":" = .all, "},{"kind":"externalParam","spelling":"perform"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackground(_:)"],"names":{"title":"presentationBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the presentation background of the enclosing sheet using a shape"},{"text":"style."},{"text":""},{"text":"The following example uses the ``Material/thick`` material as the sheet"},{"text":"background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationBackground(.thickMaterial)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `presentationBackground(_:)` modifier differs from the"},{"text":"``View/background(_:ignoresSafeAreaEdges:)`` modifier in several key"},{"text":"ways. A presentation background:"},{"text":""},{"text":"* Automatically fills the entire presentation."},{"text":"* Allows views behind the presentation to show through translucent"},{"text":" styles on supported platforms."},{"text":""},{"text":"- Parameter style: The shape style to use as the presentation"},{"text":" background."},{"text":""},{"text":"- Note: Sheet presentations on macOS do not support translucency"},{"text":"or transparency — the background is always opaque."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"ShapeStyle","rhsPrecise":"s:7SwiftUI10ShapeStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ShapeStyle","preciseIdentifier":"s:7SwiftUI10ShapeStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","presentationBackground(alignment:content:)"],"names":{"title":"presentationBackground(alignment:content:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the presentation background of the enclosing sheet to a custom"},{"text":"view."},{"text":""},{"text":"The following example uses a yellow view as the sheet background:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" @State private var showSettings = false"},{"text":""},{"text":" var body: some View {"},{"text":" Button(\"View Settings\") {"},{"text":" showSettings = true"},{"text":" }"},{"text":" .sheet(isPresented: $showSettings) {"},{"text":" SettingsView()"},{"text":" .presentationBackground {"},{"text":" Color.yellow"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"The `presentationBackground(alignment:content:)` modifier differs from"},{"text":"the ``View/background(alignment:content:)`` modifier in several key"},{"text":"ways. A presentation background:"},{"text":""},{"text":"* Automatically fills the entire presentation."},{"text":"* Allows views behind the presentation to show through translucent"},{"text":" areas of the `content` on supported platforms."},{"text":""},{"text":"- Parameters:"},{"text":" - alignment: The alignment that the modifier uses to position the"},{"text":" implicit ``ZStack`` that groups the background views. The default is"},{"text":" ``Alignment/center``."},{"text":" - content: The view to use as the background of the presentation."},{"text":""},{"text":"- Note: Sheet presentations on macOS do not support translucency"},{"text":"or transparency — the background is always opaque."}]},"functionSignature":{"parameters":[{"name":"alignment","declarationFragments":[{"kind":"identifier","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"}]},{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"presentationBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"alignment"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Alignment","preciseIdentifier":"s:7SwiftUI9AlignmentV"},{"kind":"text","spelling":" = .center, "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":4}},{"domain":"macOS","introduced":{"major":13,"minor":3}},{"domain":"tvOS","introduced":{"major":16,"minor":4}},{"domain":"watchOS","introduced":{"major":9,"minor":4}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelReservedIconWidth(_:)"],"names":{"title":"labelReservedIconWidth(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelReservedIconWidth"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the width reserved for icons in labels."},{"text":""},{"text":"Use this modifier to set the value that should be used for the reserved"},{"text":"icon width in labels. This applies to label styles and in contexts where"},{"text":"the label displays its icon and title stacked horizontally."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelReservedIconWidth"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelIconToTitleSpacing(_:)"],"names":{"title":"labelIconToTitleSpacing(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelIconToTitleSpacing"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Set the spacing between the icon and title in labels."},{"text":""},{"text":"Use this modifier to set the value that should be used for the"},{"text":"icon-to-title spacing in labels. This applies to label styles and in"},{"text":"contexts where the label displays its icon and title stacked"},{"text":"horizontally."}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelIconToTitleSpacing"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGFloat","preciseIdentifier":"s:14CoreFoundation7CGFloatV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":26,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","introduced":{"major":26,"minor":0}},{"domain":"visionOS","introduced":{"major":26,"minor":0}},{"domain":"watchOS","introduced":{"major":26,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","badgeProminence(_:)"],"names":{"title":"badgeProminence(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badgeProminence"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the prominence of badges created by this view."},{"text":""},{"text":"Badges can be used for different kinds of information, from the"},{"text":"passive number of items in a container to the number of required"},{"text":"actions. The prominence of badges in Lists can be adjusted to reflect"},{"text":"this and be made to draw more or less attention to themselves."},{"text":""},{"text":"Badges will default to `standard` prominence unless specified."},{"text":""},{"text":"The following example shows a ``List`` displaying a list of folders"},{"text":"with an informational badge with lower prominence, showing the number"},{"text":"of items in the folder."},{"text":""},{"text":" List(folders) { folder in"},{"text":" Text(folder.name)"},{"text":" .badge(folder.numberOfItems)"},{"text":" }"},{"text":" .badgeProminence(.decreased)"},{"text":""},{"text":"- Parameter prominence: The prominence to apply to badges."}]},"functionSignature":{"parameters":[{"name":"prominence","declarationFragments":[{"kind":"identifier","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"badgeProminence"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"prominence"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"BadgeProminence","preciseIdentifier":"s:7SwiftUI15BadgeProminenceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}},{"domain":"macOS","introduced":{"major":14,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityZoomAction(_:)"],"names":{"title":"accessibilityZoomAction(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityZoomAction"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility zoom action to the view. Actions allow"},{"text":"assistive technologies, such as VoiceOver, to interact with the"},{"text":"view by invoking the action."},{"text":""},{"text":"For example, this is how a zoom action is used to transform the scale"},{"text":"of a shape which has a `MagnificationGesture`."},{"text":""},{"text":" var body: some View {"},{"text":" Circle()"},{"text":" .scaleEffect(magnifyBy)"},{"text":" .gesture(magnification)"},{"text":" .accessibilityLabel(\"Circle Magnifier\")"},{"text":" .accessibilityZoomAction { action in"},{"text":" switch action.direction {"},{"text":" case .zoomIn:"},{"text":" magnifyBy += 0.5"},{"text":" case .zoomOut:"},{"text":" magnifyBy -= 0.5"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityZoomAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityZoomGestureAction","preciseIdentifier":"s:7SwiftUI30AccessibilityZoomGestureActionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:isEnabled:)"],"names":{"title":"accessibilityActivationPoint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derived from one of the accessibility elements"},{"text":"decedents or from the center of the accessibility frame."},{"text":""},{"text":"- Parameters:"},{"text":" - activationPoint: The accessibility activation point to apply."},{"text":" - isEnabled: If true the accessibility activation point is applied;"},{"text":" otherwise the accessibility activation point is unchanged."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:isEnabled:)"],"names":{"title":"accessibilityActivationPoint(_:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derived from one of the accessibility elements"},{"text":"decedents or from the center of the accessibility frame."},{"text":""},{"text":"- Parameters:"},{"text":" - activationPoint: The accessibility activation point to apply."},{"text":" - isEnabled: If true the accessibility activation point is applied;"},{"text":" otherwise the accessibility activation point is unchanged."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDragPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint("},{"text":" .center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."},{"text":""},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will begin a drag"},{"text":" interaction."},{"text":" - description: The description of the drag interaction."},{"text":" - isEnabled: If true the accessibility drag point is applied;"},{"text":" otherwise the accessibility drag point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:isEnabled:)"],"names":{"title":"accessibilityDropPoint(_:description:isEnabled:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint("},{"text":" .center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction, each"},{"text":"drag or drop should have a description to disambiguate it and give a"},{"text":"good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."},{"text":"- Parameters:"},{"text":" - point: The point the assistive technology will perform a drop"},{"text":" interaction."},{"text":" - description: The description of the drop interaction."},{"text":" - isEnabled: If true the accessibility drop point is applied;"},{"text":" otherwise the accessibility drop point is unchanged."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"isEnabled","declarationFragments":[{"kind":"identifier","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"isEnabled"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:)"],"names":{"title":"accessibilityActivationPoint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derrived from one of the accessibility elements"},{"text":"decendents or from the center of the accessibility frame."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActivationPoint(_:)"],"names":{"title":"accessibilityActivationPoint(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The activation point for an element is the location"},{"text":"assistive technologies use to initiate gestures."},{"text":""},{"text":"Use this modifier to ensure that the activation point for a"},{"text":"small element remains accurate even if you present a larger"},{"text":"version of the element to VoiceOver."},{"text":""},{"text":"If an activation point is not provided, an activation point"},{"text":"will be derrived from one of the accessibility elements"},{"text":"decendents or from the center of the accessibility frame."}]},"functionSignature":{"parameters":[{"name":"activationPoint","declarationFragments":[{"kind":"identifier","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActivationPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"activationPoint"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: Text(\"Move \\(filename)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive"},{"text":"technologies. However, if there is more than one such interaction,"},{"text":"each drag or drop should have a description to disambiguate it and give"},{"text":"a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDragPoint(_:description:)"],"names":{"title":"accessibilityDragPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to begin a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted begin a drag interaction."},{"text":""},{"text":" struct FileView: View {"},{"text":" var filename: String"},{"text":""},{"text":" var body: some View {"},{"text":" FileIcon(filename: filename)"},{"text":" .accessibilityDragPoint(.center, description: \"Move \\(filename)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drag, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDragPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: Text(\"Move to \\(folderName)\"))"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityDropPoint(_:description:)"],"names":{"title":"accessibilityDropPoint(_:description:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"The point an assistive technology should use to end a drag interaction."},{"text":""},{"text":"Use this modifier when you need to provide a description to users"},{"text":"when prompted end a drag interaction."},{"text":""},{"text":" struct FolderView: View {"},{"text":" var folderName: String"},{"text":""},{"text":" var body: some View {"},{"text":" FolderIcon(folderName: folderName)"},{"text":" .accessibilityDropPoint(.center, description: \"Move to \\(folderName)\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"By default, if an accessible view or its subtree has drag and/or drop"},{"text":"interactions, they will be automatically exposed by assistive technologies."},{"text":"However, if there is more than one such interaction, each drag or drop"},{"text":"should have a description to disambiguate it and give a good user experience."},{"text":""},{"text":"- Note: An accessibility element can have multiple points"},{"text":" for a drop, provided they have different descriptions."}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"}]},{"name":"description","declarationFragments":[{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityDropPoint"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UnitPoint","preciseIdentifier":"s:7SwiftUI9UnitPointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultAdaptableTabBarPlacement(_:)"],"names":{"title":"defaultAdaptableTabBarPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAdaptableTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the default placement for the tabs in a tab view using the"},{"text":"adaptable sidebar style."},{"text":""},{"text":"This modifier is only effective on iPadOS in the"},{"text":"``TabViewStyle/sidebarAdaptable`` style. In any other configuration,"},{"text":"the system ignores it."},{"text":""},{"text":"The following example shows a ``TabView`` with three tabs, where"},{"text":"the tab view displays the sidebar representation when the app"},{"text":"initially launches."},{"text":""},{"text":" TabView(selection: $selection) {"},{"text":" Tab(\"Home\", systemImage: \"house\", value: MyTab.home) {"},{"text":" MyHomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Downloads\", systemImage: \"square.and.arrow.down.fill\","},{"text":" value: MyTab.downloads"},{"text":" ) {"},{"text":" MyDownloadsView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Browse\", systemImage: \"list.bullet\", value: MyTab.browse) {"},{"text":" MyBrowseView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .defaultAdaptableTabBarPlacement(.sidebar)"},{"text":""},{"text":"- Parameters:"},{"text":" - defaultPlacement: The default arrangement for the tab view."}]},"functionSignature":{"parameters":[{"name":"defaultPlacement","declarationFragments":[{"kind":"identifier","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultAdaptableTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":" = .automatic) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","isUnconditionallyUnavailable":true},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","defaultTabBarPlacement(_:)"],"names":{"title":"defaultTabBarPlacement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Specifies the preferred placement for the tabs of a ``TabView``"},{"text":"in the ``TabViewStyle/sidebarAdaptable`` style on platforms where"},{"text":"the tab bar cannot adapt between different representations, and"},{"text":"only one representation can be shown."},{"text":""},{"text":"On platforms that support adapting between a sidebar and tab bar"},{"text":"(currently iPadOS), use"},{"text":"``View/defaultAdaptableTabBarPlacement(_:)`` to configure the"},{"text":"adaptable tab bar."},{"text":""},{"text":"This modifier is effective on platforms where the"},{"text":"``TabViewStyle/sidebarAdaptable`` style statically resolves to"},{"text":"either a sidebar or tab bar, such as iPhone, macOS, tvOS, and"},{"text":"visionOS. On iPadOS (where the bar is adaptable), this modifier"},{"text":"has no effect."},{"text":""},{"text":"The following example shows a `TabView` that prefers to display"},{"text":"a sidebar on platforms where the bar cannot morph:"},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":""},{"text":" Tab(\"Favorites\", systemImage: \"star\") {"},{"text":" FavoritesView()"},{"text":" }"},{"text":" }"},{"text":" .tabViewStyle(.sidebarAdaptable)"},{"text":" .defaultTabBarPlacement(.sidebar)"},{"text":""},{"text":"- Parameter placement: The preferred placement for the tab bar."},{"text":" The default is ``AdaptableTabBarPlacement/automatic``, which"},{"text":" resolves to ``AdaptableTabBarPlacement/tabBar``."}]},"functionSignature":{"parameters":[{"name":"defaultPlacement","declarationFragments":[{"kind":"identifier","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultTabBarPlacement"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"defaultPlacement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AdaptableTabBarPlacement","preciseIdentifier":"s:7SwiftUI24AdaptableTabBarPlacementV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedObject(_:)"],"names":{"title":"focusedObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneObject(_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated data,"},{"text":"and you need an app- or scene-scoped element like a command or toolbar"},{"text":"item that operates on the data associated with whichever view currently"},{"text":"has focus. Each focusable view can supply its own object:"},{"text":""},{"text":" struct MessageView: View {"},{"text":" @StateObject private var message = Message(...)"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(...)"},{"text":" .focusedObject(message)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the focused view's object. In this example, an app"},{"text":"command updates the focused view's data, and is automatically disabled"},{"text":"when focus is in an unrelated part of the scene:"},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var message: Message?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .pasteboard) {"},{"text":" Button(\"Add Duck to Message\") {"},{"text":" message?.text.append(\" 🦆\")"},{"text":" }"},{"text":" .keyboardShortcut(\"d\")"},{"text":" .disabled(message == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with focus."},{"text":"- Returns: A view that supplies an observable object when in focus."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedObject(_:)"],"names":{"title":"focusedObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"state depends on the focused view hierarchy."},{"text":""},{"text":"Use this method instead of ``View/focusedSceneObject(_:)`` when your"},{"text":"scene includes multiple focusable views with their own associated data,"},{"text":"and you need an app- or scene-scoped element like a command or toolbar"},{"text":"item that operates on the data associated with whichever view currently"},{"text":"has focus. Each focusable view can supply its own object:"},{"text":""},{"text":" struct MessageView: View {"},{"text":" @StateObject private var message = Message(...)"},{"text":""},{"text":" var body: some View {"},{"text":" TextField(...)"},{"text":" .focusedObject(message)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the focused view's object. In this example, an app"},{"text":"command updates the focused view's data, and is automatically disabled"},{"text":"when focus is in an unrelated part of the scene:"},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var message: Message?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .pasteboard) {"},{"text":" Button(\"Add Duck to Message\") {"},{"text":" message?.text.append(\" 🦆\")"},{"text":" }"},{"text":" .keyboardShortcut(\"d\")"},{"text":" .disabled(message == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with focus, or `nil` if"},{"text":" no object is currently available."},{"text":"- Returns: A view that supplies an observable object when in focus."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneObject(_:)"],"names":{"title":"focusedSceneObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedObject(_:)`` for observable"},{"text":"objects that must be visible regardless of where focus is located in the"},{"text":"active scene. This is sometimes needed for things like main menu and"},{"text":"discoverability HUD commands that observe and update data from the"},{"text":"active scene but aren't concerned with what the user is actually focused"},{"text":"on. The scene's root view can supply the scene's state object:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @StateObject private var sceneData = SceneData()"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" ..."},{"text":" }"},{"text":" .focusedSceneObject(sceneData)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the active scene's state object. In this example, an"},{"text":"app command updates the active scene's data, and is enabled as long as"},{"text":"any scene is active."},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var sceneData: SceneData?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .newItem) {"},{"text":" Button(\"New Message\") {"},{"text":" sceneData?.addMessage()"},{"text":" }"},{"text":" .keyboardShortcut(\"n\", modifiers: [.option, .command])"},{"text":" .disabled(sceneData == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with the scene."},{"text":"- Returns: A view that supplies an observable object while the scene"},{"text":" is active."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","focusedSceneObject(_:)"],"names":{"title":"focusedSceneObject(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Creates a new view that exposes the provided object to other views whose"},{"text":"whose state depends on the active scene."},{"text":""},{"text":"Use this method instead of ``View/focusedObject(_:)`` for observable"},{"text":"objects that must be visible regardless of where focus is located in the"},{"text":"active scene. This is sometimes needed for things like main menu and"},{"text":"discoverability HUD commands that observe and update data from the"},{"text":"active scene but aren't concerned with what the user is actually focused"},{"text":"on. The scene's root view can supply the scene's state object:"},{"text":""},{"text":" struct RootView: View {"},{"text":" @StateObject private var sceneData = SceneData()"},{"text":""},{"text":" var body: some View {"},{"text":" NavigationSplitView {"},{"text":" ..."},{"text":" }"},{"text":" .focusedSceneObject(sceneData)"},{"text":" }"},{"text":" }"},{"text":""},{"text":"Interested views can then use the ``FocusedObject`` property wrapper to"},{"text":"observe and update the active scene's state object. In this example, an"},{"text":"app command updates the active scene's data, and is enabled as long as"},{"text":"any scene is active."},{"text":""},{"text":" struct MessageCommands: Commands {"},{"text":" @FocusedObject private var sceneData: SceneData?"},{"text":""},{"text":" var body: some Commands {"},{"text":" CommandGroup(after: .newItem) {"},{"text":" Button(\"New Message\") {"},{"text":" sceneData?.addMessage()"},{"text":" }"},{"text":" .keyboardShortcut(\"n\", modifiers: [.option, .command])"},{"text":" .disabled(sceneData == nil)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - object: The observable object to associate with the scene, or `nil`"},{"text":" if no object is currently available."},{"text":"- Returns: A view that supplies an observable object while the scene"},{"text":" is active."}]},"functionSignature":{"parameters":[{"name":"object","declarationFragments":[{"kind":"identifier","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"ObservableObject","rhsPrecise":"s:7Combine16ObservableObjectP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"focusedSceneObject"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"object"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"ObservableObject","preciseIdentifier":"s:7Combine16ObservableObjectP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(_:_:)"],"names":{"title":"accessibilityAction(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a `.default` action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"actionKind","declarationFragments":[{"kind":"identifier","spelling":"actionKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"actionKind"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AccessibilityActionKind","preciseIdentifier":"s:7SwiftUI23AccessibilityActionKindV"},{"kind":"text","spelling":" = .default, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: Text(\"New Message\")) {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(action:label:)"],"names":{"title":"accessibilityAction(action:label:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Label"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction {"},{"text":" // Handle action"},{"text":" } label: {"},{"text":" Label(\"New Message\", systemImage: \"plus\")"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"action","declarationFragments":[{"kind":"identifier","spelling":"action"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]},{"name":"label","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Label","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Label"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"action"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"label"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Label"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","introduced":{"major":15,"minor":0}},{"domain":"watchOS","introduced":{"major":8,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityActions(_:)"],"names":{"title":"accessibilityActions(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds multiple accessibility actions to the view."},{"text":""},{"text":"Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":"For example, this is how a dynamic number of custom action could"},{"text":"be added to a view."},{"text":""},{"text":" var isDraft: Bool"},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityActions {"},{"text":" ForEach(actions) { action in"},{"text":" Button {"},{"text":" action()"},{"text":" } label: {"},{"text":" Text(action.title)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" if isDraft {"},{"text":" Button {"},{"text":" // Handle Delete"},{"text":" } label: {"},{"text":" Text(\"Delete\")"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"content","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Content","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityActions"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Content"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"content"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Content"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"nameKey","declarationFragments":[{"kind":"identifier","spelling":"nameKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nameKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive"},{"text":"technologies, such as the VoiceOver, to interact with the view by"},{"text":"invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"nameResource","declarationFragments":[{"kind":"identifier","spelling":"nameResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nameResource"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","accessibilityAction(named:_:)"],"names":{"title":"accessibilityAction(named:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds an accessibility action to the view. Actions allow assistive technologies,"},{"text":"such as the VoiceOver, to interact with the view by invoking the action."},{"text":""},{"text":"For example, this is how a custom action to compose"},{"text":"a new email could be added to a view."},{"text":""},{"text":" var body: some View {"},{"text":" ContentView()"},{"text":" .accessibilityAction(named: \"New Message\") {"},{"text":" // Handle action"},{"text":" }"},{"text":" }"},{"text":""}]},"functionSignature":{"parameters":[{"name":"named","internalName":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]},{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"accessibilityAction"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"named"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ModifiedContent","preciseIdentifier":"s:7SwiftUI15ModifiedContentV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"AccessibilityAttachmentModifier","preciseIdentifier":"s:7SwiftUI31AccessibilityAttachmentModifierV"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a localized string that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Button(action: composeMessage) {"},{"text":" Image(systemName: \"square.and.pencil\")"},{"text":" }"},{"text":" .help(\"Compose a new message\")"},{"text":""},{"text":"- Parameter textKey: The key for the localized text to use as help."}]},"functionSignature":{"parameters":[{"name":"textKey","declarationFragments":[{"kind":"identifier","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringKey","preciseIdentifier":"s:7SwiftUI18LocalizedStringKeyV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a localized string resource that you"},{"text":"provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Button(action: composeMessage) {"},{"text":" Image(systemName: \"square.and.pencil\")"},{"text":" }"},{"text":" .help(\"Compose a new message\")"},{"text":""},{"text":"- Parameter textKey: Text resource for the localized text to use as help."}]},"functionSignature":{"parameters":[{"name":"textKey","declarationFragments":[{"kind":"identifier","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@export(implementation)"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"textKey"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"LocalizedStringResource","preciseIdentifier":"s:10Foundation23LocalizedStringResourceV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","introduced":{"major":16,"minor":0}},{"domain":"watchOS","introduced":{"major":9,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a text view that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Slider(\"Opacity\", value: $selectedShape.opacity)"},{"text":" .help(Text(\"Adjust the opacity of the selected \\(selectedShape.name)\"))"},{"text":""},{"text":"- Parameter text: The ``Text`` view to use as help."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Text","preciseIdentifier":"s:7SwiftUI4TextV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","help(_:)"],"names":{"title":"help(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Adds help text to a view using a string that you provide."},{"text":""},{"text":"Adding help to a view configures the view's accessibility hint and"},{"text":"its help tag (also called a _tooltip_) in macOS or visionOS."},{"text":"For more information on using help tags, see"},{"text":""},{"text":"in the Human Interface Guidelines."},{"text":""},{"text":" Image(systemName: \"pin.circle\")"},{"text":" .foregroundColor(pointOfInterest.tintColor)"},{"text":" .help(pointOfInterest.name)"},{"text":""},{"text":"- Parameter text: The text to use as help."}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"help"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","listRowBackground(_:)"],"names":{"title":"listRowBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Places a custom background view behind a list row item."},{"text":""},{"text":"Use `listRowBackground(_:)` to place a custom background view behind a"},{"text":"list row item."},{"text":""},{"text":"In the example below, the `Flavor` enumeration provides content for list"},{"text":"items. The SwiftUI ``ForEach`` structure computes views for each element"},{"text":"of the `Flavor` enumeration and extracts the raw value of each of its"},{"text":"elements using the resulting text to create each list row item. The"},{"text":"`listRowBackground(_:)` modifier then places the view you supply behind"},{"text":"each of the list row items:"},{"text":""},{"text":" struct ContentView: View {"},{"text":" enum Flavor: String, CaseIterable, Identifiable {"},{"text":" var id: String { self.rawValue }"},{"text":" case vanilla, chocolate, strawberry"},{"text":" }"},{"text":""},{"text":" var body: some View {"},{"text":" List {"},{"text":" ForEach(Flavor.allCases) {"},{"text":" Text($0.rawValue)"},{"text":" .listRowBackground(Ellipse()"},{"text":" .background(Color.clear)"},{"text":" .foregroundColor(.purple)"},{"text":" .opacity(0.3)"},{"text":" )"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"![A screenshot showing the placement of an image as the background to"},{"text":" each row in a list.](SwiftUI-View-listRowBackground.png)"},{"text":""},{"text":"- Parameter view: The ``View`` to use as the background behind the list"},{"text":" row view."},{"text":""},{"text":"- Returns: A list row view with `view` as its background view."}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"listRowBackground"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","labelStyle(_:)"],"names":{"title":"labelStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for labels within this view."},{"text":""},{"text":"Use this modifier to set a specific style for all labels within a view:"},{"text":""},{"text":" VStack {"},{"text":" Label(\"Fire\", systemImage: \"flame.fill\")"},{"text":" Label(\"Lightning\", systemImage: \"bolt.fill\")"},{"text":" }"},{"text":" .labelStyle(MyCustomLabelStyle())"},{"text":""}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"LabelStyle","rhsPrecise":"s:7SwiftUI10LabelStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"labelStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"LabelStyle","preciseIdentifier":"s:7SwiftUI10LabelStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":14,"minor":0}},{"domain":"macOS","introduced":{"major":11,"minor":0}},{"domain":"tvOS","introduced":{"major":14,"minor":0}},{"domain":"watchOS","introduced":{"major":7,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrag(_:)"],"names":{"title":"onDrag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `onDrag(_:)` modifier adds the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"If you want to show a different preview, you can use"},{"text":"``View/onDrag(_:preview:)``."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including multi-item drag via"},{"text":"``View/dragContainer(for:in:_:)`` — use ``View/draggable(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter data: A closure that returns a single"},{"text":" that"},{"text":"represents the draggable data from this view."},{"text":""},{"text":"- Important: Don't dispatch work to the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. If you register"},{"text":" data representations on the item provider yourself, make sure"},{"text":" their completion handlers don't dispatch to the main thread."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":4}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","onDrag(_:preview:)"],"names":{"title":"onDrag(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">(() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `onDrag(_:preview:)` modifier adds the appropriate gestures"},{"text":"for drag and drop to this view. When a drag operation begins,"},{"text":"a rendering of `preview` is generated and used as the preview image."},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/dragPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"To use ``Transferable`` types directly and access a richer feature"},{"text":"set — including multi-item drag via"},{"text":"``View/dragContainer(for:in:_:)`` — use ``View/draggable(_:)``"},{"text":"instead."},{"text":""},{"text":"- Parameter data: A closure that returns a single"},{"text":""},{"text":"that represents the draggable data from this view."},{"text":"- Parameter preview: A ``View`` to use as the source for the dragging"},{"text":" preview, once the drag operation has begun. The preview is centered over"},{"text":" the source view."},{"text":""},{"text":"- Important: Don't dispatch work to the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. If you register"},{"text":" data representations on the item provider yourself, make sure"},{"text":" their completion handlers don't dispatch to the main thread."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag-and-"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onDrag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"NSItemProvider","preciseIdentifier":"c:objc(cs)NSItemProvider"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0}},{"domain":"macOS","introduced":{"major":12,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(containerItemID:containerNamespace:)"],"names":{"title":"draggable(containerItemID:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Inside a drag container, activates this view as the source"},{"text":"of a drag and drop operation. Supports lazy drag containers."},{"text":""},{"text":"This modifier marks the view as a draggable element"},{"text":"of an enclosing `dragContainer(_:containerNamespace:_:)`. Since this modifier does not"},{"text":"require to provide the payload, only its identifier, it works lazily (the framework"},{"text":"asks to provide the actual dragged items only when drag starts;"},{"text":"also, the framework doesn't have to render a view in order to access its"},{"text":"payload)."},{"text":""},{"text":"Applying the `draggable(containerItemID:containerNamespace:)` modifier"},{"text":"to a view inside a drag container adds the appropriate gestures"},{"text":"for drag and drop to this view. SwiftUI generates a default"},{"text":"drag preview for drag."},{"text":""},{"text":"Below, each `FruitView` is assigned an identifier: a code of a fruit"},{"text":"it represents. When dragging begins, the `dragContainer` closure"},{"text":"is called with the codes of the selected fruit, or, if a user drags"},{"text":"a view that is not selected, the closure receives"},{"text":"the identifier of that view as a parameter."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruitCodes: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.code)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { codes in"},{"text":" fruits(with: codes)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruitCodes)"},{"text":" }"},{"text":""},{"text":" func fruits(with codes: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var code: UUID"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"- Parameter containerItemID: An identifier of the associated drag payload."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"containerItemID","declarationFragments":[{"kind":"identifier","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"containerItemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:item:containerNamespace:)"],"names":{"title":"draggable(_:item:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation, allowing"},{"text":"to provide optional identifiable payload and specify the namespace"},{"text":"of the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:_:containerNamespace:)` modifier adds"},{"text":"the appropriate gestures for drag and drop to this view."},{"text":"When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"If the view is enclosed in a `dragContainer(for:in:_)`, the"},{"text":"view becomes its draggable element, and the item's identifier"},{"text":"is used as drag payload identifier."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func fruits(with: [Fruit.ID]) -> [Fruit] { ... }"},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:containerNamespace:_:)"],"names":{"title":"draggable(_:containerNamespace:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation,"},{"text":"allowing to provide optional identifiable"},{"text":"payload and specify the namespace of the drag container this view"},{"text":"belongs to."},{"text":""},{"text":"Applying the `draggable(_:containerNamespace_:)` modifier adds the"},{"text":"appropriate gestures for drag and drop to this view."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":""},{"text":"If the draggable view is enclosed in a container, it participates"},{"text":"in container drag-and-drop sessions:"},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(fruit)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruits)"},{"text":" }"},{"text":""},{"text":" func fruits(with: [Fruit.ID]) -> [Fruit] { ... }"},{"text":" struct Fruit: Identifiable, Transferable { ... }"},{"text":""},{"text":"When a drag operation begins, a rendering of this view is"},{"text":"generated and used as the preview image."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainerSelection(_:containerNamespace:)"],"names":{"title":"dragContainerSelection(_:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainerSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Provides multiple item selection support for drag containers."},{"text":""},{"text":"A drag container finds the nearest enclosing `dragContainerSelection(_:containerNamespace:)`"},{"text":"with the same item identifier type and same namespace, if specified."},{"text":"Drag container uses the provided selected item identifiers to determine what"},{"text":"the drag payload should be."},{"text":""},{"text":"If the dragged view is associated with a selected identifier, the payload should contain"},{"text":"all the selected items. If the dragged view is not selected, the payload should"},{"text":"not contain the whole selection, just the dragged item."},{"text":"With `dragContainerSelection(_:containerNamespace:)`, you get fine-grained control"},{"text":"over what items are included in the drag payload."},{"text":""},{"text":" struct FruitContainer: View {"},{"text":" @State private var fruits: [Fruit]"},{"text":" @State private var selection: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.id)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" .dragContainerSelection(selection)"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [Fruit.ID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable, Identifiable {"},{"text":" let id: String"},{"text":" ..."},{"text":" }"},{"text":""},{"text":" struct FruitView: View {"},{"text":" init(_ fruit: Fruit) { ... }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"- Parameters:"},{"text":" - selection: A closure that provides identifiers of selected items."},{"text":" - containerNamespace: An optional namespace of the drag container."}]},"functionSignature":{"parameters":[{"name":"selection","declarationFragments":[{"kind":"identifier","spelling":"selection"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainerSelection"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"selection"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:id:item:containerNamespace:)"],"names":{"title":"draggable(_:id:item:containerNamespace:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation,"},{"text":"allowing to provide optional payload and specify the namespace of"},{"text":"the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:containerNamespace_:)` modifier adds"},{"text":"the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter id: An identifier of an item."},{"text":"- Parameter item: A closure that returns a single"},{"text":"instance or a value conforming to"},{"text":" "},{"text":"that represents the draggable data from this view."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"item","declarationFragments":[{"kind":"identifier","spelling":"item"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"item"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:id:containerNamespace:_:)"],"names":{"title":"draggable(_:id:containerNamespace:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation, allowing"},{"text":"to provide optional payload and specify the namespace"},{"text":"of the drag container this view belongs to."},{"text":""},{"text":"Applying the `draggable(_:id:containerNamespace:_:)` modifier adds"},{"text":"the appropriate gestures for drag and drop to this view."},{"text":"When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(Fruit.self, id: \\.dragID) {"},{"text":" fruit.supportsDrag ? fruit : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var supportsDrag: Bool"},{"text":" var dragID: UUID"},{"text":" }"},{"text":""},{"text":"If the draggable view is enclosed in a container, it participates"},{"text":"in container drag-and-drop sessions:"},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" var selectedFruits: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(Fruit.self, id: \\.dragID) {"},{"text":" fruit.supportsDrag ? fruit : nil"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { identifiers in"},{"text":" fruits(with: identifiers)"},{"text":" }"},{"text":" .dragContainerSelection(selectedFruits)"},{"text":" }"},{"text":""},{"text":" func fruits(with: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter id: An key path of the identifier of an item."},{"text":"- Parameter containerNamespace: A namespace of the associated drag container."},{"text":"- Parameter payload: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"containerNamespace","declarationFragments":[{"kind":"identifier","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"ItemID","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"containerNamespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"?) -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:itemID:in:_:)"],"names":{"title":"dragContainer(for:itemID:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views. The drag payload is based on"},{"text":"the current selection."},{"text":""},{"text":"Below is an example of a container view with three sections."},{"text":"Each section is draggable. Also, each section is selectable, and each"},{"text":"view in a section is selectable as well."},{"text":"When a section drag starts, the app wants to use its custom logic to decide"},{"text":"what the payload should be."},{"text":"If an unselected section is dragged, it should be the only one on the drag payload."},{"text":"If a selected section is dragged, the payload should contain other"},{"text":"selected sections, and also the sections that have at least one fruit selected."},{"text":""},{"text":" var berries: [Fruit]"},{"text":" var citruses: [Fruit]"},{"text":" var tropical: [Fruit]"},{"text":""},{"text":" @State private var selectedSections: [UUID]"},{"text":" @State private var selectedFruits: [UUID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" BerriesSectionView(FruitSection(berries))"},{"text":" .draggable(containerItemID: FruitSection.berries)"},{"text":" CitrusSectionView(FruitSection(citruses))"},{"text":" .draggable(containerItemID: FruitSection.citruses)"},{"text":" TropicalSectionView(FruitSection(tropical))"},{"text":" .draggable(containerItemID: FruitSection.tropical)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { draggedSectionID in"},{"text":" let identifiers = sectionIDsToDrag(for: draggedSectionID)"},{"text":" return sections(identifiers: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func sectionIDsToDrag(for draggedID: UUID) -> [UUID] {"},{"text":" // an unselected section is dragged"},{"text":" if !selectedSections.contains(draggedID) { return [draggedID] }"},{"text":""},{"text":" // a selected section is dragged"},{"text":" let payloadIDs = selectedSections + sectionIdentifiersOfSelectedFruits()"},{"text":" return uniqueSections(from: payloadIDs)"},{"text":" }"},{"text":""},{"text":" func sections(identifiers: [UUID]) -> [FruitSection] { ... }"},{"text":" func uniqueSections(from: [UUID]) -> [UUID] { ... }"},{"text":" func sectionIdentifiersOfSelectedFruits() -> [UUID] { ... }"},{"text":""},{"text":" struct Fruit {"},{"text":" let id: UUID"},{"text":" }"},{"text":""},{"text":" struct FruitSection: Transferable {"},{"text":" static let berries: UUID"},{"text":" static let citruses: UUID"},{"text":" static let tropical: UUID"},{"text":""},{"text":" let id: UUID"},{"text":" var fruits: [Fruit]"},{"text":" }"},{"text":""},{"text":" struct BerriesSectionView: View {"},{"text":" var section: FruitSection"},{"text":""},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(section.fruit) { berry in"},{"text":" BerryView(berry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged item."},{"text":"- Parameter itemID: A closure that provides the item's identifier."},{"text":"- Parameter namespace: An optional namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives the identifier"},{"text":"of the dragged view under the finger or cursor. Using"},{"text":"the passed identifier, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1},{"name":"Item","index":1,"depth":1},{"name":"Data","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:in:_:)"],"names":{"title":"dragContainer(for:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views where the drag payload is based"},{"text":"on multiple identifiers of dragged items."},{"text":""},{"text":"Provide the selected identifiers list to SwiftUI using"},{"text":"`dragContainerSelection(_:containerNamespace)` modifier."},{"text":"In a case when there's no selection information available,"},{"text":"SwiftUI passes the dragged item identifier to the `payload` closure."},{"text":""},{"text":"In an example below, an app presents a view with `Fruit` values."},{"text":"When a user starts drag, SwiftUI uses the selection to put together"},{"text":"the list of item identifiers to drag."},{"text":""},{"text":" var fruits: [Fruit]"},{"text":" @State private var selection: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.id)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(for: Fruit.self) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" .dragContainerSelection(selection)"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [UUID]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable, Identifiable { ... }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives either the identifiers"},{"text":"of all the selected items, if the dragged item is a part of selection"},{"text":"or only the identifier of the dragged item, if it is"},{"text":"not part of the selection. With the passed identifiers, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":""},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Data","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:in:_:)"],"names":{"title":"dragContainer(for:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views. The drag payload is identifiable."},{"text":"To form the payload, use the identifier of the dragged view"},{"text":"inside the container."},{"text":""},{"text":"Below is an example of a container view with three sections."},{"text":"Each section is draggable. Also, each section is selectable, and each"},{"text":"view in a section is selectable as well."},{"text":"When a section drag starts, the app wants to use its custom logic to"},{"text":"decide what the payload should be."},{"text":""},{"text":"If an unselected section is dragged, it should be the only one on"},{"text":"the drag payload. If a selected section is dragged, the payload should"},{"text":"contain other selected sections, and also the sections that have"},{"text":"at least one fruit selected."},{"text":""},{"text":" var berries: [Fruit]"},{"text":" var citruses: [Fruit]"},{"text":" var tropical: [Fruit]"},{"text":""},{"text":" @State private var selectedSections: [FruitSection.ID]"},{"text":" @State private var selectedFruits: [Fruit.ID]"},{"text":""},{"text":" var body: some View {"},{"text":" ScrollView {"},{"text":" VStack {"},{"text":" BerriesSectionView(FruitSection(berries))"},{"text":" .draggable(containerItemID: FruitSection.berries)"},{"text":" CitrusSectionView(FruitSection(citruses))"},{"text":" .draggable(containerItemID: FruitSection.citruses)"},{"text":" TropicalSectionView(FruitSection(tropical))"},{"text":" .draggable(containerItemID: FruitSection.tropical)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer { (draggedSectionID: FruitSection.ID) in"},{"text":" let identifiers = sectionIDsToDrag(for: draggedSectionID)"},{"text":" return sections(identifiers: identifiers)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func sectionIDsToDrag(for draggedID: FruitSection.ID) -> [FruitSection.ID] {"},{"text":" // an unselected section is dragged"},{"text":" if !selectedSections.contains(draggedID) { return [draggedID] }"},{"text":""},{"text":" // a selected section is dragged"},{"text":" let payloadIDs = selectedSections + sectionIdentifiersOfSelectedFruits()"},{"text":" return uniqueSections(from: payloadIDs)"},{"text":" }"},{"text":""},{"text":" func sections(identifiers: [FruitSection.ID]) -> [FruitSection] { ... }"},{"text":" func sectionIdentifiersOfSelectedFruits() -> [FruitSection.ID] { ... }"},{"text":" func uniqueSections(from: [FruitSection.ID]) -> [FruitSection.ID] { ... }"},{"text":""},{"text":" struct Fruit: Identifiable { ... }"},{"text":""},{"text":" struct FruitSection: Transferable, Identifiable {"},{"text":" static let berries: UUID"},{"text":" static let citruses: UUID"},{"text":" static let tropical: UUID"},{"text":""},{"text":" let id: UUID"},{"text":" var fruits: [Fruit]"},{"text":" }"},{"text":""},{"text":" struct BerriesSectionView: View {"},{"text":" var section: FruitSection"},{"text":" var body: some View {"},{"text":" HStack {"},{"text":" ForEach(section.fruit) { berry in"},{"text":" BerryView(berry)"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives the identifier"},{"text":"of the dragged view under the finger or cursor. Using"},{"text":"the passed identifier, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"Item","index":0,"depth":1},{"name":"Data","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"conformance","lhs":"Item","rhs":"Identifiable","rhsPrecise":"s:s12IdentifiableP"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"conformance","lhs":"Item.ID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Identifiable","preciseIdentifier":"s:s12IdentifiableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:s12IdentifiableP2IDQa"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","dragContainer(for:itemID:in:_:)"],"names":{"title":"dragContainer(for:itemID:in:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?, ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"A container with draggable views."},{"text":""},{"text":"In an example below, an app presents a view with `Fruit` values."},{"text":"`Fruit` does not conform to `Identifiable` but uses its name"},{"text":"as its identifier."},{"text":""},{"text":" @State private var fruits: [Fruit]"},{"text":" @State private var selection: [String]"},{"text":""},{"text":" var body: some View {"},{"text":" VStack {"},{"text":" ForEach(fruits) { fruit in"},{"text":" FruitView(fruit)"},{"text":" .draggable(containerItemID: fruit.name)"},{"text":" }"},{"text":" }"},{"text":" .dragContainer(itemID: \\Fruit.name) { ids in"},{"text":" fruits(with: ids)"},{"text":" }"},{"text":" }"},{"text":""},{"text":" func fruits(with ids: [String]) -> [Fruit] { ... }"},{"text":""},{"text":" struct Fruit: Transferable {"},{"text":" var name: String"},{"text":" ..."},{"text":" }"},{"text":""},{"text":"To enable multi-item drag, apply this modifier to a container"},{"text":"view and mark each draggable child with ``View/draggable(_:)``"},{"text":"or ``View/draggable(containerItemID:containerNamespace:)``."},{"text":""},{"text":"- Parameter itemType: A type of the dragged items."},{"text":"- Parameter itemID: A closure that provides an item's identifier."},{"text":"- Parameter namespace: A namespace that identifies the drag container."},{"text":"- Parameter payload: A closure which is called when"},{"text":"a drag operation begins. As an argument, the closure receives either the identifiers"},{"text":"of all the selected items, if the dragged item is a part of selection"},{"text":"or only the identifier of the dragged item, if it is"},{"text":"not part of the selection. Using the passed identifiers, put together the payload to drag,"},{"text":"and return from the closure."},{"text":"Return an empty `Collection` to disable the drag."},{"text":""},{"text":"- Returns: A view that can be activated as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"for","internalName":"itemType","declarationFragments":[{"kind":"identifier","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type"}]},{"name":"itemID","declarationFragments":[{"kind":"identifier","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">"}]},{"name":"in","internalName":"namespace","declarationFragments":[{"kind":"identifier","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"?"}]},{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"ItemID","index":0,"depth":1},{"name":"Item","index":1,"depth":1},{"name":"Data","index":2,"depth":1}],"constraints":[{"kind":"conformance","lhs":"ItemID","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"ItemID","rhs":"Sendable","rhsPrecise":"s:s8SendableP"},{"kind":"conformance","lhs":"Item","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"},{"kind":"sameType","lhs":"Item","rhs":"Data.Element"},{"kind":"conformance","lhs":"Data","rhs":"Collection","rhsPrecise":"s:Sl"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dragContainer"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ItemID"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"Data"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"itemType"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":".Type = Item.self, "},{"kind":"externalParam","spelling":"itemID"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"KeyPath","preciseIdentifier":"s:s7KeyPathC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">, "},{"kind":"externalParam","spelling":"in"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"namespace"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Namespace","preciseIdentifier":"s:7SwiftUI9NamespaceV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"ID","preciseIdentifier":"s:7SwiftUI9NamespaceV2IDV"},{"kind":"text","spelling":"? = nil, "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Array","preciseIdentifier":"s:Sa"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Hashable","preciseIdentifier":"s:SH"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ItemID"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Item"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Data"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":26,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:)"],"names":{"title":"draggable(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `draggable(_:)` modifier adds the appropriate gestures for"},{"text":"drag and drop to this view. When a drag operation begins, a rendering of"},{"text":"this view is generated and used as the preview image."},{"text":""},{"text":"To customize the default preview, apply a"},{"text":"``View/contentShape(_:_:eoFill:)`` with a"},{"text":"``ContentShapeKinds/dragPreview`` kind. For example, you can change the"},{"text":"preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter payload: A closure that returns a single"},{"text":"instance or a value conforming to that"},{"text":"represents the draggable data from this view."},{"text":""},{"text":"- Important: Don't perform work on the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. Make sure"},{"text":" `T`'s exporting closure doesn't dispatch to the main actor."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","draggable(_:preview:)"],"names":{"title":"draggable(_:preview:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Activates this view as the source of a drag and drop operation."},{"text":""},{"text":"Applying the `draggable(_:preview:)` modifier adds the appropriate gestures"},{"text":"for drag and drop to this view. When a drag operation begins,"},{"text":"a rendering of `preview` is generated and used as the preview image."},{"text":""},{"text":" var title: String"},{"text":" var body: some View {"},{"text":" Color.pink"},{"text":" .frame(width: 400, height: 400)"},{"text":" .draggable(title) {"},{"text":" Text(\"Drop me\")"},{"text":" }"},{"text":" }"},{"text":""},{"text":"To customize the lift preview, shown while the system transitions"},{"text":"to show your custom `preview`, apply a ``View/contentShape(_:_:eoFill:)``"},{"text":"with a ``ContentShapeKinds/dragPreview`` kind. For example, you can"},{"text":"change the preview's corner radius or use a nested view as the preview."},{"text":""},{"text":"- Parameter payload: A closure that returns a single"},{"text":"class instance or a value conforming to `Transferable` that"},{"text":"represents the draggable data from this view."},{"text":"- Parameter preview: A ``View`` to use as the source for the dragging"},{"text":"preview, once the drag operation has begun. The preview is centered over"},{"text":"the source view."},{"text":""},{"text":"- Important: Don't perform work on the main actor while exporting the"},{"text":" item. Doing so isn't supported and might cause a hang. Make sure"},{"text":" `T`'s exporting closure doesn't dispatch to the main actor."},{"text":""},{"text":"- Returns: A view that activates this view as the source of a drag and"},{"text":" drop operation, beginning with user gesture input."}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"preview","declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":1},{"name":"T","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Transferable","rhsPrecise":"s:16CoreTransferable0B0P"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draggable"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"attribute","spelling":"@escaping "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"ContentBuilder","preciseIdentifier":"s:7SwiftUI14ContentBuildera"},{"kind":"text","spelling":" "},{"kind":"externalParam","spelling":"preview"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Transferable","preciseIdentifier":"s:16CoreTransferable0B0P"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}},{"domain":"macOS","introduced":{"major":13,"minor":0}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","isUnconditionallyUnavailable":true}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","toolbarVerticalBehavior(_:)"],"names":{"title":"toolbarVerticalBehavior(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalBehavior"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the behavior for the vertical bar."},{"text":""},{"text":"By default, the system determines whether a vertical bar is rendered"},{"text":"based on the device and application state. Use"},{"text":"``ToolbarVerticalBehavior/disabled`` to opt out of the vertical bar,"},{"text":"causing bar content to fall back to the standard horizontal top and"},{"text":"bottom toolbars."},{"text":""},{"text":"Disable the vertical bar only for UIs that are better served by"},{"text":"horizontal bars — such as a fullscreen video player with toolbar"},{"text":"controls, or a non-scrolling layout like a calculator where horizontal"},{"text":"space is at a premium. Treat it as a stable choice: avoid changing it"},{"text":"frequently as the user navigates, and don't toggle it for a single view"},{"text":"as a function of that view's state. To hide the bars on a given screen"},{"text":"rather than change the layout, use ``View/toolbarVisibility(_:for:)``"},{"text":"instead."},{"text":""},{"text":"The behavior is resolved by the window or presentation if placed within"},{"text":"a sheet or form. Different containers resolve their overall preferred"},{"text":"behavior in different ways:"},{"text":" - A ``NavigationStack`` uses the top most view of its stack of views."},{"text":" - A ``TabView`` uses the selected view."},{"text":" - A ``NavigationSplitView`` uses the view in the trailing-most column."},{"text":""},{"text":"When the value changes, the system animates the transition: content reflows"},{"text":"to or from the horizontal bars while the status bar changes axis and"},{"text":"the leading or trailing safe area inset for the vertical bar is added"},{"text":"or removed."},{"text":""},{"text":" TabView {"},{"text":" Tab(\"Home\", systemImage: \"house\") {"},{"text":" HomeView()"},{"text":" }"},{"text":" }"},{"text":" .toolbarVerticalBehavior(.disabled)"},{"text":""},{"text":"- Parameter behavior: The desired behavior for the vertical bar."}]},"functionSignature":{"parameters":[{"name":"behavior","declarationFragments":[{"kind":"identifier","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"toolbarVerticalBehavior"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"behavior"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ToolbarVerticalBehavior","preciseIdentifier":"s:7SwiftUI23ToolbarVerticalBehaviorV"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":1}},{"domain":"macOS","introduced":{"major":27,"minor":1}},{"domain":"tvOS","introduced":{"major":27,"minor":1}},{"domain":"visionOS","introduced":{"major":27,"minor":1}},{"domain":"watchOS","introduced":{"major":27,"minor":1}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","interfaceLanguage":"swift"},"pathComponents":["Badge","datePickerStyle(_:)"],"names":{"title":"datePickerStyle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"datePickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":"\n"}]},"docComment":{"module":"SwiftUI","lines":[{"text":"Sets the style for date pickers within this view."}]},"functionSignature":{"parameters":[{"name":"style","declarationFragments":[{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"swiftGenerics":{"parameters":[{"name":"S","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"S","rhs":"DatePickerStyle","rhsPrecise":"s:7SwiftUI15DatePickerStyleP"}]},"swiftExtension":{"extendedModule":"SwiftUICore","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"datePickerStyle"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"S"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"S"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"DatePickerStyle","preciseIdentifier":"s:7SwiftUI15DatePickerStyleP"},{"kind":"text","spelling":"\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","isUnconditionallyUnavailable":true},{"domain":"watchOS","introduced":{"major":10,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5titleSSvp","interfaceLanguage":"swift"},"pathComponents":["Badge","title"],"names":{"title":"title","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":5,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5countSivp","interfaceLanguage":"swift"},"pathComponents":["Badge","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":6,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc","interfaceLanguage":"swift"},"pathComponents":["Badge","init(title:count:)"],"names":{"title":"init(title:count:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"title","declarationFragments":[{"kind":"identifier","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"title"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":8,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BadgeV4bodyQrvp","interfaceLanguage":"swift"},"pathComponents":["Badge","body"],"names":{"title":"body","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"View","preciseIdentifier":"s:7SwiftUI4ViewP"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Badge.swift","position":{"line":13,"character":15}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo7GreeterP","interfaceLanguage":"swift"},"pathComponents":["Greeter"],"names":{"title":"Greeter","navigator":[{"kind":"identifier","spelling":"Greeter"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeter"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeter"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":0,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Greeter","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":1,"character":9}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo0B0C","interfaceLanguage":"swift"},"pathComponents":["Demo"],"names":{"title":"Demo","navigator":[{"kind":"identifier","spelling":"Demo"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Demo"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Demo"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":4,"character":13}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo0B0CACycfc","interfaceLanguage":"swift"},"pathComponents":["Demo","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":5,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo0B0C5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Demo","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":6,"character":16}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo5PointV","interfaceLanguage":"swift"},"pathComponents":["Point"],"names":{"title":"Point","navigator":[{"kind":"identifier","spelling":"Point"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Point"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Point"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":9,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV1xSdvp","interfaceLanguage":"swift"},"pathComponents":["Point","x"],"names":{"title":"x","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":10,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV1ySdvp","interfaceLanguage":"swift"},"pathComponents":["Point","y"],"names":{"title":"y","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":11,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5PointV1x1yACSd_Sdtcfc","interfaceLanguage":"swift"},"pathComponents":["Point","init(x:y:)"],"names":{"title":"init(x:y:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":12,"character":11}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor"],"names":{"title":"Flavor","navigator":[{"kind":"identifier","spelling":"Flavor"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Flavor"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Flavor"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo6FlavorO","interfaceLanguage":"swift"},"pathComponents":["Flavor","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo6FlavorO7vanillayA2CmF","interfaceLanguage":"swift"},"pathComponents":["Flavor","vanilla"],"names":{"title":"Flavor.vanilla","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vanilla"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vanilla"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":31}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo6FlavorO9chocolateyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Flavor","chocolate"],"names":{"title":"Flavor.chocolate","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"chocolate"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"chocolate"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Demo.swift","position":{"line":15,"character":44}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Flavor","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo0B0C5greet4name5timesS2S_SitF","interfaceLanguage":"swift"},"pathComponents":["Demo","greet(name:times:)"],"names":{"title":"greet(name:times:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"times","declarationFragments":[{"kind":"identifier","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":1,"character":16}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo0B0C7versionSSvpZ","interfaceLanguage":"swift"},"pathComponents":["Demo","version"],"names":{"title":"version","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"version"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"version"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":5,"character":22}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["Point","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.struct"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":9,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5PointV6lengthSdvp","interfaceLanguage":"swift"},"pathComponents":["Point","length"],"names":{"title":"length","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.struct"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":10,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6FlavorO11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["Flavor","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.enum"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":14,"character":15}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style"],"names":{"title":"Polygon.Style","navigator":[{"kind":"identifier","spelling":"Style"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Style"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Style"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO5solidyA2EmF","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","solid"],"names":{"title":"Polygon.Style.solid","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"solid"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"solid"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":37}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO6dashedyA2EmF","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","dashed"],"names":{"title":"Polygon.Style.dashed","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dashed"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dashed"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":31,"character":44}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","Style","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics"],"names":{"title":"Polygon.Metrics","navigator":[{"kind":"identifier","spelling":"Metrics"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Metrics"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Metrics"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":33,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics","perimeter"],"names":{"title":"perimeter","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":34,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","Metrics","init(perimeter:)"],"names":{"title":"init(perimeter:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"perimeter","declarationFragments":[{"kind":"identifier","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"perimeter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":35,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5styleAC5StyleOvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","style"],"names":{"title":"style","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Style","preciseIdentifier":"s:9SwiftDemo7PolygonC5StyleO"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"style"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Style","preciseIdentifier":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":38,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","metrics(side:)"],"names":{"title":"metrics(side:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"metrics"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.class"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"metrics"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Metrics","preciseIdentifier":"s:9SwiftDemo7PolygonC7MetricsV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Extensions.swift","position":{"line":39,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC","interfaceLanguage":"swift"},"pathComponents":["Thermostat"],"names":{"title":"Thermostat","navigator":[{"kind":"identifier","spelling":"Thermostat"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermostat"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermostat"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":6,"character":31}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC7celsiusSdvp","interfaceLanguage":"swift"},"pathComponents":["Thermostat","celsius"],"names":{"title":"celsius","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"celsius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"celsius"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":7,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC5labelSSvp","interfaceLanguage":"swift"},"pathComponents":["Thermostat","label"],"names":{"title":"label","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":8,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo10ThermostatCACycfc","interfaceLanguage":"swift"},"pathComponents":["Thermostat","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":10,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC4warm2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Thermostat","warm(by:)"],"names":{"title":"warm(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warm"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warm"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":12,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10ThermostatC9warmLater2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Thermostat","warmLater(by:)"],"names":{"title":"warmLater(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warmLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"warmLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":17,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Observing.swift","position":{"line":14,"character":16}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo8GreetingP","interfaceLanguage":"swift"},"pathComponents":["Greeting"],"names":{"title":"Greeting","navigator":[{"kind":"identifier","spelling":"Greeting"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeting"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Greeting"},{"kind":"text","spelling":" : AnyObject"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":2,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8GreetingP4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["Greeting","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":3,"character":8}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8GreetingP11punctuationSSvp","interfaceLanguage":"swift"},"pathComponents":["Greeting","punctuation"],"names":{"title":"punctuation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":4,"character":8}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingP5greetyS2SF","interfaceLanguage":"swift"},"pathComponents":["Greeting","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":5,"character":9}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingP5resetyyF","interfaceLanguage":"swift"},"pathComponents":["Greeting","reset()"],"names":{"title":"reset()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":6,"character":9}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo6ScorerP","interfaceLanguage":"swift"},"pathComponents":["Scorer"],"names":{"title":"Scorer","navigator":[{"kind":"identifier","spelling":"Scorer"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Scorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Scorer"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":9,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6ScorerP5scoreyS2iKF","interfaceLanguage":"swift"},"pathComponents":["Scorer","score(_:)"],"names":{"title":"score(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":10,"character":9}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo12RankedScorerP","interfaceLanguage":"swift"},"pathComponents":["RankedScorer"],"names":{"title":"RankedScorer","navigator":[{"kind":"identifier","spelling":"RankedScorer"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"RankedScorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"RankedScorer"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":14,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12RankedScorerP4rankSiSgvp","interfaceLanguage":"swift"},"pathComponents":["RankedScorer","rank"],"names":{"title":"rank","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rank"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rank"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"? { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":15,"character":8}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","interfaceLanguage":"swift"},"pathComponents":["Greeting","shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":19,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting"],"names":{"title":"FormalGreeting","navigator":[{"kind":"identifier","spelling":"FormalGreeting"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"FormalGreeting"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"FormalGreeting"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":22,"character":19}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftExtension":{"extendedModule":"SwiftDemo","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":19,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":23,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC11punctuationSSvp","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","punctuation"],"names":{"title":"punctuation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"punctuation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":24,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","init(name:)"],"names":{"title":"init(name:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":25,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC5greetyS2SF","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":26,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14FormalGreetingC5resetyyF","interfaceLanguage":"swift"},"pathComponents":["FormalGreeting","reset()"],"names":{"title":"reset()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reset"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":27,"character":16}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerV","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer"],"names":{"title":"DoublingScorer","navigator":[{"kind":"identifier","spelling":"DoublingScorer"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"DoublingScorer"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"DoublingScorer"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":30,"character":14}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerVACycfc","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":31,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14DoublingScorerV5scoreyS2iF","interfaceLanguage":"swift"},"pathComponents":["DoublingScorer","score(_:)"],"names":{"title":"score(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"score"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":32,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9introduce_2toSSAA8Greeting_p_SStF","interfaceLanguage":"swift"},"pathComponents":["introduce(_:to:)"],"names":{"title":"introduce(_:to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"introduce"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},{"name":"to","internalName":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"introduce"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12makeGreetingyAA0D0_pSSF","interfaceLanguage":"swift"},"pathComponents":["makeGreeting(_:)"],"names":{"title":"makeGreeting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeGreeting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeGreeting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":39,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4sameyAA8Greeting_pAaC_pF","interfaceLanguage":"swift"},"pathComponents":["same(_:)"],"names":{"title":"same(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":40,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6exciteyyAA8Greeting_pF","interfaceLanguage":"swift"},"pathComponents":["excite(_:)"],"names":{"title":"excite(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"excite"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"excite"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":41,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8scoreAllySaySiGAA6Scorer_p_ACtKF","interfaceLanguage":"swift"},"pathComponents":["scoreAll(_:_:)"],"names":{"title":"scoreAll(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scoreAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"},{"kind":"text","spelling":", ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"scorer","declarationFragments":[{"kind":"identifier","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scoreAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":42,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10makeScorerAA0D0_pyF","interfaceLanguage":"swift"},"pathComponents":["makeScorer()"],"names":{"title":"makeScorer()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScorer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScorer"},{"kind":"text","spelling":"() -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Scorer","preciseIdentifier":"s:9SwiftDemo6ScorerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":45,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7topRankySSAA12RankedScorer_pKF","interfaceLanguage":"swift"},"pathComponents":["topRank(_:)"],"names":{"title":"topRank(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"topRank"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"scorer","declarationFragments":[{"kind":"identifier","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"topRank"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scorer"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"RankedScorer","preciseIdentifier":"s:9SwiftDemo12RankedScorerP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":46,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo17greetInBackgroundySSAA8Greeting_pYaF","interfaceLanguage":"swift"},"pathComponents":["greetInBackground(_:)"],"names":{"title":"greetInBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetInBackground"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetInBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":55,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder"],"names":{"title":"GreetingHolder","navigator":[{"kind":"identifier","spelling":"GreetingHolder"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingHolder"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingHolder"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":60,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","greeting"],"names":{"title":"greeting","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":61,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderCACycfc","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":62,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo14GreetingHolderC5greetySSSgSSF","interfaceLanguage":"swift"},"pathComponents":["GreetingHolder","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":63,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo18WeakGreetingHolderC","interfaceLanguage":"swift"},"pathComponents":["WeakGreetingHolder"],"names":{"title":"WeakGreetingHolder","navigator":[{"kind":"identifier","spelling":"WeakGreetingHolder"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"WeakGreetingHolder"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"WeakGreetingHolder"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":67,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp","interfaceLanguage":"swift"},"pathComponents":["WeakGreetingHolder","greeting"],"names":{"title":"greeting","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}]},"declarationFragments":[{"kind":"keyword","spelling":"weak"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":68,"character":20}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo18WeakGreetingHolderCACycfc","interfaceLanguage":"swift"},"pathComponents":["WeakGreetingHolder","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":69,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF","interfaceLanguage":"swift"},"pathComponents":["WeakGreetingHolder","greet(_:)"],"names":{"title":"greet(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":70,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryC","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry"],"names":{"title":"GreetingRegistry","navigator":[{"kind":"identifier","spelling":"GreetingRegistry"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingRegistry"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"GreetingRegistry"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":74,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryCACycfc","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":76,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryC5countSivp","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":77,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry","add(_:)"],"names":{"title":"add(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"add"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"add"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":78,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry","remove(_:)"],"names":{"title":"remove(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"remove"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"remove"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":79,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF","interfaceLanguage":"swift"},"pathComponents":["GreetingRegistry","contains(_:)"],"names":{"title":"contains(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Protocols.swift","position":{"line":80,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13starterWallet3for0aB3Kit0D0CSS_tF","interfaceLanguage":"swift"},"pathComponents":["starterWallet(for:)"],"names":{"title":"starterWallet(for:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"starterWallet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}]},"functionSignature":{"parameters":[{"name":"for","internalName":"owner","declarationFragments":[{"kind":"identifier","spelling":"owner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"starterWallet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"for"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"owner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Wallet","preciseIdentifier":"s:12SwiftDemoKit6WalletC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":4,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo3sum2of0aB3Kit5MoneyVSayAFG_tF","interfaceLanguage":"swift"},"pathComponents":["sum(of:)"],"names":{"title":"sum(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"amounts","declarationFragments":[{"kind":"identifier","spelling":"amounts"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"amounts"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":10,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4flipy0aB3Kit4CoinOAEF","interfaceLanguage":"swift"},"pathComponents":["flip(_:)"],"names":{"title":"flip(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flip"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]},"functionSignature":{"parameters":[{"name":"coin","declarationFragments":[{"kind":"identifier","spelling":"coin"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flip"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"coin"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Coin","preciseIdentifier":"s:12SwiftDemoKit4CoinO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":14,"character":12}}},{"kind":{"identifier":"swift.typealias","displayName":"Type Alias"},"identifier":{"precise":"s:9SwiftDemo5Scorea","interfaceLanguage":"swift"},"pathComponents":["Score"],"names":{"title":"Score","navigator":[{"kind":"identifier","spelling":"Score"}],"subHeading":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Score"}]},"declarationFragments":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Score"},{"kind":"text","spelling":" = "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":25,"character":17}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9makeScorey0aB3Kit4PairVySSSiGSS_SitF","interfaceLanguage":"swift"},"pathComponents":["makeScore(_:_:)"],"names":{"title":"makeScore(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScore"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"points","declarationFragments":[{"kind":"identifier","spelling":"points"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeScore"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"points"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Score","preciseIdentifier":"s:9SwiftDemo5Scorea"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":27,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8describeySS0aB3Kit4PairVySiSSGF","interfaceLanguage":"swift"},"pathComponents":["describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":28,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF","interfaceLanguage":"swift"},"pathComponents":["boxed(_:)"],"names":{"title":"boxed(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"boxed"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"money","declarationFragments":[{"kind":"identifier","spelling":"money"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"boxed"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"money"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Money","preciseIdentifier":"s:12SwiftDemoKit5MoneyV"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":29,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8countBoxy0aB3Kit0D0CySiGSiF","interfaceLanguage":"swift"},"pathComponents":["countBox(_:)"],"names":{"title":"countBox(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countBox"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countBox"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":30,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6settley0aB3Kit7OutcomeOySiGSiF","interfaceLanguage":"swift"},"pathComponents":["settle(_:)"],"names":{"title":"settle(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"settle"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"settle"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Outcome","preciseIdentifier":"s:12SwiftDemoKit7OutcomeO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":31,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF","interfaceLanguage":"swift"},"pathComponents":["unbox(_:)"],"names":{"title":"unbox(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unbox"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"}]},"functionSignature":{"parameters":[{"name":"box","declarationFragments":[{"kind":"identifier","spelling":"box"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unbox"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"box"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Box","preciseIdentifier":"s:12SwiftDemoKit3BoxC"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF1TL_xmfp"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF","interfaceLanguage":"swift"},"pathComponents":["firstOf(_:)"],"names":{"title":"firstOf(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstOf"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"A"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":0},{"name":"B","index":1,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstOf"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Pair","preciseIdentifier":"s:12SwiftDemoKit4PairV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1BL_q_mfp"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF1AL_xmfp"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Purse.swift","position":{"line":36,"character":12}}},{"kind":{"identifier":"swift.protocol","displayName":"Protocol"},"identifier":{"precise":"s:9SwiftDemo5ShapeP","interfaceLanguage":"swift"},"pathComponents":["Shape"],"names":{"title":"Shape","navigator":[{"kind":"identifier","spelling":"Shape"}],"subHeading":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shape"}]},"declarationFragments":[{"kind":"keyword","spelling":"protocol"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shape"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Greeter","preciseIdentifier":"s:9SwiftDemo7GreeterP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":2,"character":16}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5ShapeP4areaSdvp","interfaceLanguage":"swift"},"pathComponents":["Shape","area"],"names":{"title":"area","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":3,"character":8}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo5ShapeP5sidesSivpZ","interfaceLanguage":"swift"},"pathComponents":["Shape","sides"],"names":{"title":"sides","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":4,"character":15}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7PolygonC","interfaceLanguage":"swift"},"pathComponents":["Polygon"],"names":{"title":"Polygon","navigator":[{"kind":"identifier","spelling":"Polygon"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Polygon"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Polygon"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":7,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4nameSSvp","interfaceLanguage":"swift"},"pathComponents":["Polygon","name"],"names":{"title":"name","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":8,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC11vertexCountSivp","interfaceLanguage":"swift"},"pathComponents":["Polygon","vertexCount"],"names":{"title":"vertexCount","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":9,"character":28}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo7PolygonC6sharedACvpZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","shared"],"names":{"title":"shared","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shared"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shared"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":10,"character":22}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","init(name:vertexCount:)"],"names":{"title":"init(name:vertexCount:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"vertexCount","declarationFragments":[{"kind":"identifier","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"vertexCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":12,"character":11}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4nameACSgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Polygon","init(name:)"],"names":{"title":"init(name:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"convenience"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":17,"character":23}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":22,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale2byySi_tF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"open","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":23,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF","interfaceLanguage":"swift"},"pathComponents":["Polygon","scale(x:y:)"],"names":{"title":"scale(x:y:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":24,"character":16}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC4makeACyFZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","make()"],"names":{"title":"make()","subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"make"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}]},"declarationFragments":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"make"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":26,"character":22}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo7PolygonC8describeySSACSgFZ","interfaceLanguage":"swift"},"pathComponents":["Polygon","describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"polygon","declarationFragments":[{"kind":"identifier","spelling":"polygon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"polygon"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Polygon","preciseIdentifier":"s:9SwiftDemo7PolygonC"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":27,"character":23}}},{"kind":{"identifier":"swift.subscript","displayName":"Instance Subscript"},"identifier":{"precise":"s:9SwiftDemo7PolygonCyAA5PointVSicip","interfaceLanguage":"swift"},"pathComponents":["Polygon","subscript(_:)"],"names":{"title":"subscript(_:)","subHeading":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"parameters":[{"name":"index","declarationFragments":[{"kind":"identifier","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":29,"character":11}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6SquareC","interfaceLanguage":"swift"},"pathComponents":["Square"],"names":{"title":"Square","navigator":[{"kind":"identifier","spelling":"Square"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Square"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Square"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":34,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC4sideSdvp","interfaceLanguage":"swift"},"pathComponents":["Square","side"],"names":{"title":"side","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":35,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6SquareC4sideACSd_tcfc","interfaceLanguage":"swift"},"pathComponents":["Square","init(side:)"],"names":{"title":"init(side:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":37,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC4areaSdvp","interfaceLanguage":"swift"},"pathComponents":["Square","area"],"names":{"title":"area","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":42,"character":15}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo6SquareC5sidesSivpZ","interfaceLanguage":"swift"},"pathComponents":["Square","sides"],"names":{"title":"sides","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":43,"character":22}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6SquareC5greet4nameS2S_tF","interfaceLanguage":"swift"},"pathComponents":["Square","greet(name:)"],"names":{"title":"greet(name:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greet"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":44,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6SquareC5scale2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Square","scale(by:)"],"names":{"title":"scale(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"factor","declarationFragments":[{"kind":"identifier","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"override"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"factor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":46,"character":25}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation"],"names":{"title":"Precipitation","navigator":[{"kind":"identifier","spelling":"Precipitation"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Precipitation"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Precipitation"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":50,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","hashValue"],"names":{"title":"hashValue","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hashValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public"},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","hash(into:)"],"names":{"title":"hash(into:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"into","internalName":"hasher","declarationFragments":[{"kind":"identifier","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self","rhs":"Hashable","rhsPrecise":"s:SH"},{"kind":"conformance","lhs":"Self.RawValue","rhs":"Hashable","rhsPrecise":"s:SH"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"hash"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"hasher"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Hasher","preciseIdentifier":"s:s6HasherV"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","makeFromRawAttachmentValue(_:)"],"names":{"title":"makeFromRawAttachmentValue(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"repr","declarationFragments":[{"kind":"identifier","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeFromRawAttachmentValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"repr"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","interfaceLanguage":"swift"},"pathComponents":["Precipitation","rawAttachmentValueRepresentation"],"names":{"title":"rawAttachmentValueRepresentation","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.RawValue","rhs":"CVAttachmentValueRepresentable","rhsPrecise":"s:9CoreVideo30CVAttachmentValueRepresentableP"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rawAttachmentValueRepresentation"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CVAttachmentRawValue","preciseIdentifier":"s:9CoreVideo20CVAttachmentRawValueV"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":27,"minor":0}},{"domain":"macOS","introduced":{"major":27,"minor":0}},{"domain":"tvOS","introduced":{"major":27,"minor":0}},{"domain":"visionOS","introduced":{"major":27,"minor":0}},{"domain":"watchOS","introduced":{"major":27,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4rainyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","rain"],"names":{"title":"Precipitation.rain","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rain"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"rain"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4snowyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","snow"],"names":{"title":"Precipitation.snow","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"snow"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"snow"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":15}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO4noneyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Precipitation","none"],"names":{"title":"Precipitation.none","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":51,"character":21}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Precipitation","init(rawValue:)"],"names":{"title":"init(rawValue:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"rawValue","declarationFragments":[{"kind":"identifier","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"?("},{"kind":"externalParam","spelling":"rawValue"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public"},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO","interfaceLanguage":"swift"},"pathComponents":["ShapeError"],"names":{"title":"ShapeError","navigator":[{"kind":"identifier","spelling":"ShapeError"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ShapeError"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ShapeError"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO","interfaceLanguage":"swift"},"pathComponents":["ShapeError","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO11invalidSideyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","invalidSide(_:)"],"names":{"title":"ShapeError.invalidSide(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"invalidSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":55,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO12tooManySidesyACSi_SitcACmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","tooManySides(count:limit:)"],"names":{"title":"ShapeError.tooManySides(count:limit:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tooManySides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tooManySides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":56,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo10ShapeErrorO7unknownyA2CmF","interfaceLanguage":"swift"},"pathComponents":["ShapeError","unknown"],"names":{"title":"ShapeError.unknown","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unknown"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unknown"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":57,"character":9}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO","interfaceLanguage":"swift"},"pathComponents":["Measurement"],"names":{"title":"Measurement","navigator":[{"kind":"identifier","spelling":"Measurement"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Measurement"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Measurement"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":60,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO6lengthyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","length(_:)"],"names":{"title":"Measurement.length(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"length"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":61,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4areayACSd_SdtcACmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","area(width:height:)"],"names":{"title":"Measurement.area(width:height:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":62,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4noneyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Measurement","none"],"names":{"title":"Measurement.none","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"none"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":63,"character":9}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit"],"names":{"title":"Measurement.Unit","navigator":[{"kind":"identifier","spelling":"Unit"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Unit"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Unit"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":65,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit","symbol"],"names":{"title":"symbol","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":66,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Measurement","Unit","init(symbol:)"],"names":{"title":"init(symbol:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"symbol","declarationFragments":[{"kind":"identifier","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"symbol"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":67,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11MeasurementO6isNoneSbvp","interfaceLanguage":"swift"},"pathComponents":["Measurement","isNone"],"names":{"title":"isNone","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"isNone"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"isNone"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":70,"character":15}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo4RingV","interfaceLanguage":"swift"},"pathComponents":["Ring"],"names":{"title":"Ring","navigator":[{"kind":"identifier","spelling":"Ring"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ring"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ring"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":76,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4RingV5innerAA5PointVvp","interfaceLanguage":"swift"},"pathComponents":["Ring","inner"],"names":{"title":"inner","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":77,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4RingV5outerAA5PointVvp","interfaceLanguage":"swift"},"pathComponents":["Ring","outer"],"names":{"title":"outer","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":78,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc","interfaceLanguage":"swift"},"pathComponents":["Ring","init(inner:outer:)"],"names":{"title":"init(inner:outer:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"inner","declarationFragments":[{"kind":"identifier","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},{"name":"outer","declarationFragments":[{"kind":"identifier","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"inner"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"outer"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":80,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4RingV6expand2byySd_tF","interfaceLanguage":"swift"},"pathComponents":["Ring","expand(by:)"],"names":{"title":"expand(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"expand"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"by","internalName":"delta","declarationFragments":[{"kind":"identifier","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"expand"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"delta"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":85,"character":25}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo4RingV1poiyA2C_ACtFZ","interfaceLanguage":"swift"},"pathComponents":["Ring","+(_:_:)"],"names":{"title":"+(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Ring","preciseIdentifier":"s:9SwiftDemo4RingV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":90,"character":23}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter"],"names":{"title":"Counter","navigator":[{"kind":"identifier","spelling":"Counter"}],"subHeading":[{"kind":"keyword","spelling":"actor"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Counter"}]},"declarationFragments":[{"kind":"keyword","spelling":"actor"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Counter"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":95,"character":13}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","withSerialExecutor(_:)"],"names":{"title":"withSerialExecutor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">((any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Perform an operation with the actor's ``SerialExecutor``."},{"text":""},{"text":"This converts the actor's ``Actor/unownedExecutor`` to a ``SerialExecutor`` while"},{"text":"retaining the actor for the duration of the operation. This is to ensure the lifetime"},{"text":"of the executor while performing the operation."}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"E","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : ~Copyable"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","withSerialExecutor(_:)"],"names":{"title":"withSerialExecutor(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"keyword","spelling":"nonisolated(nonsending)"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Perform an operation with the actor's ``SerialExecutor``."},{"text":""},{"text":"This converts the actor's ``Actor/unownedExecutor`` to a ``SerialExecutor`` while"},{"text":"retaining the actor for the duration of the operation. This is to ensure the lifetime"},{"text":"of the executor while performing the operation."}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1},{"name":"E","index":1,"depth":1}],"constraints":[{"kind":"conformance","lhs":"E","rhs":"Error","rhsPrecise":"s:s5ErrorP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withSerialExecutor"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"E"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"nonisolated(nonsending)"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"SerialExecutor","preciseIdentifier":"s:Scf"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"E"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : ~Copyable"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","preconditionIsolated(_:file:line:)"],"names":{"title":"preconditionIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preconditionIsolated"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":")"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Stops program execution if the current task is not executing on this"},{"text":"actor's serial executor."},{"text":""},{"text":"This function's effect varies depending on the build flag used:"},{"text":""},{"text":"* In playgrounds and `-Onone` builds (the default for Xcode's Debug"},{"text":" configuration), stops program execution in a debuggable state after"},{"text":" printing `message`."},{"text":""},{"text":"* In `-O` builds (the default for Xcode's Release configuration), stops"},{"text":" program execution."},{"text":""},{"text":"- Note: Because this check is performed against the actor's serial executor,"},{"text":" if another actor uses the same serial executor--by using"},{"text":" that actor's serial executor as its own ``Actor/unownedExecutor``--this"},{"text":" check will succeed. From a concurrency safety perspective, the"},{"text":" serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - message: The message to print if the assertion fails."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"text","spelling":"@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)\n"},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"preconditionIsolated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = String(), "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","assertIsolated(_:file:line:)"],"names":{"title":"assertIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assertIsolated"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":")"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Stops program execution if the current task is not executing on this"},{"text":"actor's serial executor."},{"text":""},{"text":"This function's effect varies depending on the build flag used:"},{"text":""},{"text":"* In playgrounds and `-Onone` builds (the default for Xcode's Debug"},{"text":" configuration), stops program execution in a debuggable state after"},{"text":" printing `message`."},{"text":""},{"text":"* In `-O` builds (the default for Xcode's Release configuration),"},{"text":" the isolation check is not performed and there are no effects."},{"text":""},{"text":"- Note: This check is performed against the actor's serial executor,"},{"text":" meaning that / if another actor uses the same serial executor--by using"},{"text":" that actor's serial executor as its own ``Actor/unownedExecutor``--this"},{"text":" check will succeed , as from a concurrency safety perspective, the"},{"text":" serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - message: The message to print if the assertion fails."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": () -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"text","spelling":"()"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"text","spelling":"@backDeployed(before: macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0)\n"},{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assertIsolated"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@autoclosure "},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" = String(), "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":")"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo7CounterC","interfaceLanguage":"swift"},"pathComponents":["Counter","assumeIsolated(_:file:line:)"],"names":{"title":"assumeIsolated(_:file:line:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assumeIsolated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">(("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Assume that the current task is executing on this actor's serial executor,"},{"text":"or stop program execution otherwise."},{"text":""},{"text":"You call this method to *assume and verify* that the currently"},{"text":"executing synchronous function is actually executing on the serial"},{"text":"executor of this actor."},{"text":""},{"text":"If that is the case, the operation is invoked with an `isolated` version"},{"text":"of the actor, allowing synchronous access to actor local state without"},{"text":"hopping through asynchronous boundaries."},{"text":""},{"text":"If the current context is not running on the actor's serial executor, or"},{"text":"if the actor is a reference to a remote actor, this method will crash"},{"text":"with a fatal error (similar to ``preconditionIsolated(_:file:line:)``)."},{"text":""},{"text":"Note that this check is performed against the passed in actor's serial"},{"text":"executor, meaning that if another actor uses the same serial executor--by"},{"text":"using that actor's ``Actor/unownedExecutor`` as its own"},{"text":"``Actor/unownedExecutor``--this check will succeed, as from a concurrency"},{"text":"safety perspective, the serial executor guarantees mutual exclusion of"},{"text":"those two actors."},{"text":""},{"text":"This method can only be used from synchronous functions, as asynchronous"},{"text":"functions should instead perform a normal method call to the actor, which"},{"text":"will hop task execution to the target actor if necessary."},{"text":""},{"text":"- Note: This check is performed against the actor's serial executor,"},{"text":" meaning that / if another actor uses the same serial executor--by using"},{"text":" another actor's executor as its own ``Actor/unownedExecutor``"},{"text":" --this check will succeed , as from a concurrency safety perspective,"},{"text":" the serial executor guarantees mutual exclusion of those two actors."},{"text":""},{"text":"- Parameters:"},{"text":" - operation: the operation that will be executed if the current context"},{"text":" is executing on the actors serial executor."},{"text":" - file: The file name to print if the assertion fails. The default is"},{"text":" where this method was called."},{"text":" - line: The line number to print if the assertion fails The default is"},{"text":" where this method was called."},{"text":"- Returns: the return value of the `operation`"},{"text":"- Throws: rethrows the `Error` thrown by the operation if it threw"}]},"functionSignature":{"parameters":[{"name":"operation","declarationFragments":[{"kind":"identifier","spelling":"operation"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"}]},{"name":"file","declarationFragments":[{"kind":"identifier","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"}]},{"name":"line","declarationFragments":[{"kind":"identifier","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":1}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Sendable","rhsPrecise":"s:s8SendableP"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"assumeIsolated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"operation"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"file"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"StaticString","preciseIdentifier":"s:s12StaticStringV"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#fileID"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"line"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt","preciseIdentifier":"s:Su"},{"kind":"text","spelling":" = "},{"kind":"keyword","spelling":"#line"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Sendable","preciseIdentifier":"s:s8SendableP"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7CounterC5valueSivp","interfaceLanguage":"swift"},"pathComponents":["Counter","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":96,"character":28}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7CounterC4stepSivp","interfaceLanguage":"swift"},"pathComponents":["Counter","step"],"names":{"title":"step","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":97,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7CounterCACycfc","interfaceLanguage":"swift"},"pathComponents":["Counter","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":98,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7CounterC9incrementSiyF","interfaceLanguage":"swift"},"pathComponents":["Counter","increment()"],"names":{"title":"increment()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"increment"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"increment"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":99,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7CounterC5labelSSyF","interfaceLanguage":"swift"},"pathComponents":["Counter","label()"],"names":{"title":"label()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"attribute","spelling":"nonisolated"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":103,"character":28}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6CanvasC","interfaceLanguage":"swift"},"pathComponents":["Canvas"],"names":{"title":"Canvas","navigator":[{"kind":"identifier","spelling":"Canvas"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Canvas"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Canvas"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":107,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6CanvasCACycfc","interfaceLanguage":"swift"},"pathComponents":["Canvas","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":108,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6CanvasC4drawyyAA5Shape_pF","interfaceLanguage":"swift"},"pathComponents":["Canvas","draw(_:)"],"names":{"title":"draw(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draw"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"draw"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":109,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo6LoaderC","interfaceLanguage":"swift"},"pathComponents":["Loader"],"names":{"title":"Loader","navigator":[{"kind":"identifier","spelling":"Loader"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Loader"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Loader"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":112,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo6LoaderCACycfc","interfaceLanguage":"swift"},"pathComponents":["Loader","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":113,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF","interfaceLanguage":"swift"},"pathComponents":["Loader","load(path:)"],"names":{"title":"load(path:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"load"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"load"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":115,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF","interfaceLanguage":"swift"},"pathComponents":["Loader","fetch(url:)"],"names":{"title":"fetch(url:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":116,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF","interfaceLanguage":"swift"},"pathComponents":["Loader","wait(seconds:)"],"names":{"title":"wait(seconds:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wait"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"}]},"functionSignature":{"parameters":[{"name":"seconds","declarationFragments":[{"kind":"identifier","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wait"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":117,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF","interfaceLanguage":"swift"},"pathComponents":["Loader","transform(_:)"],"names":{"title":"transform(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"}]},"functionSignature":{"parameters":[{"name":"shape","declarationFragments":[{"kind":"identifier","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Shape","rhsPrecise":"s:9SwiftDemo5ShapeP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"shape"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF1TL_xmfp"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Shape","preciseIdentifier":"s:9SwiftDemo5ShapeP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":119,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF","interfaceLanguage":"swift"},"pathComponents":["Loader","first(of:)"],"names":{"title":"first(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Element"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"items","declarationFragments":[{"kind":"identifier","spelling":"items"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Element"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"Element","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Element"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"items"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF7ElementL_xmfp"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":120,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF","interfaceLanguage":"swift"},"pathComponents":["Loader","withCompletion(_:)"],"names":{"title":"withCompletion(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withCompletion"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"withCompletion"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":122,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC4eachyyySiXEF","interfaceLanguage":"swift"},"pathComponents":["Loader","each(_:)"],"names":{"title":"each(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"each"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"each"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":123,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF","interfaceLanguage":"swift"},"pathComponents":["Loader","lookup(table:key:)"],"names":{"title":"lookup(table:key:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"table","declarationFragments":[{"kind":"identifier","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":125,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC6updateyyAA5PointVzF","interfaceLanguage":"swift"},"pathComponents":["Loader","update(_:)"],"names":{"title":"update(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"update"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":127,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC10modernOnlyyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","modernOnly()"],"names":{"title":"modernOnly()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modernOnly"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"modernOnly"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":16,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":130,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC11legacyFetchyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","legacyFetch()"],"names":{"title":"legacyFetch()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"legacyFetch"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"legacyFetch"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"*","message":"Use fetch(url:) instead","isUnconditionallyDeprecated":true}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":133,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo6LoaderC8oldFetchyyF","interfaceLanguage":"swift"},"pathComponents":["Loader","oldFetch()"],"names":{"title":"oldFetch()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"oldFetch"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"oldFetch"},{"kind":"text","spelling":"()"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":15,"minor":0},"deprecated":{"major":17,"minor":0},"renamed":"fetch(url:)"}],"location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":136,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo16makeDefaultPointAA0E0VyF","interfaceLanguage":"swift"},"pathComponents":["makeDefaultPoint()"],"names":{"title":"makeDefaultPoint()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeDefaultPoint"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeDefaultPoint"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":139,"character":12}}},{"kind":{"identifier":"swift.var","displayName":"Global Variable"},"identifier":{"precise":"s:9SwiftDemo13defaultFlavorAA0D0Ovp","interfaceLanguage":"swift"},"pathComponents":["defaultFlavor"],"names":{"title":"defaultFlavor","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFlavor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"defaultFlavor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":140,"character":11}}},{"kind":{"identifier":"swift.var","displayName":"Global Variable"},"identifier":{"precise":"s:9SwiftDemo13globalCounterSivp","interfaceLanguage":"swift"},"pathComponents":["globalCounter"],"names":{"title":"globalCounter","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"globalCounter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"globalCounter"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":141,"character":11}}},{"kind":{"identifier":"swift.typealias","displayName":"Type Alias"},"identifier":{"precise":"s:9SwiftDemo11Coordinatesa","interfaceLanguage":"swift"},"pathComponents":["Coordinates"],"names":{"title":"Coordinates","navigator":[{"kind":"identifier","spelling":"Coordinates"}],"subHeading":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Coordinates"}]},"declarationFragments":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Coordinates"},{"kind":"text","spelling":" = (latitude"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", longitude"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Shapes.swift","position":{"line":142,"character":17}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7countUp2toScSySiGSi_tF","interfaceLanguage":"swift"},"pathComponents":["countUp(to:)"],"names":{"title":"countUp(to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"to","internalName":"limit","declarationFragments":[{"kind":"identifier","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":5,"character":12}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo14CountdownErrorV","interfaceLanguage":"swift"},"pathComponents":["CountdownError"],"names":{"title":"CountdownError","navigator":[{"kind":"identifier","spelling":"CountdownError"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CountdownError"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CountdownError"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":14,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV","interfaceLanguage":"swift"},"pathComponents":["CountdownError","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF","interfaceLanguage":"swift"},"pathComponents":["countDown(from:failingAt:)"],"names":{"title":"countDown(from:failingAt:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countDown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"failingAt"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"from","internalName":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"failingAt","internalName":"failure","declarationFragments":[{"kind":"identifier","spelling":"failure"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countDown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"failingAt"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"failure"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingStream","preciseIdentifier":"s:Scs"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":16,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7letters2ofQrSS_tF","interfaceLanguage":"swift"},"pathComponents":["letters(of:)"],"names":{"title":"letters(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"letters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">\n"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"word","declarationFragments":[{"kind":"identifier","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"letters"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">\n"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}}],"location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":33,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5pagesyScSySaySSGGSiF","interfaceLanguage":"swift"},"pathComponents":["pages(_:)"],"names":{"title":"pages(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pages"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"pages"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]>"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":42,"character":12}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown"],"names":{"title":"Countdown","navigator":[{"kind":"identifier","spelling":"Countdown"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Countdown"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Countdown"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":53,"character":14}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","compactMap(_:)"],"names":{"title":"compactMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given closure over the"},{"text":"asynchronous sequence’s elements, omitting results that don't return a"},{"text":"value."},{"text":""},{"text":"Use the `compactMap(_:)` method to transform every element received from"},{"text":"a base asynchronous sequence, while also discarding any `nil` results"},{"text":"from the closure. Typically, you use this to transform from one type of"},{"text":"element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `compactMap(_:)`"},{"text":"method takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. Because there is no key for `4`, the closure"},{"text":"returns `nil` in this case, which `compactMap(_:)` omits from the"},{"text":"transformed asynchronous sequence."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":" "},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .compactMap { romanNumeralDict[$0] }"},{"text":" for await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"I II III V \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type."},{"text":"- Returns: An asynchronous sequence that contains, in order, the"},{"text":" non-`nil` elements produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"ElementOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","dropFirst(_:)"],"names":{"title":"dropFirst(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropFirst"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Omits a specified number of elements from the base asynchronous sequence,"},{"text":"then passes through all remaining elements."},{"text":""},{"text":"Use `dropFirst(_:)` when you want to drop the first *n* elements from the"},{"text":"base sequence and pass through the remaining elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `dropFirst(_:)` method causes the modified"},{"text":"sequence to ignore the values `1` through `3`, and instead emit `4` through `10`:"},{"text":""},{"text":" for await number in Counter(howHigh: 10).dropFirst(3) {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"4 5 6 7 8 9 10 \""},{"text":""},{"text":"If the number of elements to drop exceeds the number of elements in the"},{"text":"sequence, the result is an empty sequence."},{"text":""},{"text":"- Parameter count: The number of elements to drop from the beginning of"},{"text":" the sequence. `count` must be greater than or equal to zero."},{"text":"- Returns: An asynchronous sequence that drops the first `count`"},{"text":" elements from the base sequence."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropFirst"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1) -> "},{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","drop(while:)"],"names":{"title":"drop(while:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Omits elements from the base asynchronous sequence until a given closure"},{"text":"returns false, after which it passes through all remaining elements."},{"text":""},{"text":"Use `drop(while:)` to omit elements from an asynchronous sequence until"},{"text":"the element received meets a condition you specify."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `drop(while:)` method causes the modified"},{"text":"sequence to ignore received values until it encounters one that is"},{"text":"divisible by `3`:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .drop { $0 % 3 != 0 }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"3 4 5 6 7 8 9 10 \""},{"text":""},{"text":"After the predicate returns `false`, the sequence never executes it again,"},{"text":"and from then on the sequence passes through elements from its underlying"},{"text":"sequence as-is."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element as a parameter and"},{"text":" returns a Boolean value indicating whether to drop the element from the"},{"text":" modified sequence."},{"text":"- Returns: An asynchronous sequence that skips over values from the"},{"text":" base sequence until the provided closure returns `false`."}]},"functionSignature":{"parameters":[{"name":"while","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","filter(_:)"],"names":{"title":"filter(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"filter"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that contains, in order, the elements of"},{"text":"the base sequence that satisfy the given predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `filter(_:)` method returns `true` for even"},{"text":"values and `false` for odd values, thereby filtering out the odd values:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .filter { $0 % 2 == 0 }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"2 4 6 8 10 \""},{"text":""},{"text":"- Parameter isIncluded: A closure that takes an element of the"},{"text":" asynchronous sequence as its argument and returns a Boolean value"},{"text":" that indicates whether to include the element in the filtered sequence."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" of the base sequence that satisfy the given predicate."}]},"functionSignature":{"parameters":[{"name":"isIncluded","declarationFragments":[{"kind":"identifier","spelling":"isIncluded"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"filter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isIncluded"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Self.Failure","rhs":"SegmentOfResult.Failure"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"SegmentOfResult.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Self.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"},{"kind":"sameType","lhs":"SegmentOfResult.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","map(_:)"],"names":{"title":"map(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given closure over the"},{"text":"asynchronous sequence’s elements."},{"text":""},{"text":"Use the `map(_:)` method to transform every element received from a base"},{"text":"asynchronous sequence. Typically, you use this to transform from one type"},{"text":"of element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `map(_:)` method"},{"text":"takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. This means the outer `for await in` loop"},{"text":"iterates over `String` instances instead of the underlying `Int` values"},{"text":"that `Counter` produces:"},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .map { romanNumeralDict[$0] ?? \"(unknown)\" }"},{"text":" for await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"I II III (unknown) V \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"Transformed","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","prefix(_:)"],"names":{"title":"prefix(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns an asynchronous sequence, up to the specified maximum length,"},{"text":"containing the initial elements of the base asynchronous sequence."},{"text":""},{"text":"Use `prefix(_:)` to reduce the number of elements produced by the"},{"text":"asynchronous sequence."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `prefix(_:)` method causes the modified"},{"text":"sequence to pass through the first six values, then end."},{"text":""},{"text":" for await number in Counter(howHigh: 10).prefix(6) {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 2 3 4 5 6 \""},{"text":""},{"text":"If the count passed to `prefix(_:)` exceeds the number of elements in the"},{"text":"base sequence, the result contains all of the elements in the sequence."},{"text":""},{"text":"- Parameter count: The maximum number of elements to return. The value of"},{"text":" `count` must be greater than or equal to zero."},{"text":"- Returns: An asynchronous sequence starting at the beginning of the"},{"text":" base sequence with at most `count` elements."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","prefix(while:)"],"names":{"title":"prefix(while:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns an asynchronous sequence, containing the initial, consecutive"},{"text":"elements of the base sequence that satisfy the given predicate."},{"text":""},{"text":"Use `prefix(while:)` to produce values while elements from the base"},{"text":"sequence meet a condition you specify. The modified sequence ends when"},{"text":"the predicate closure returns `false`."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `prefix(while:)` method causes the modified"},{"text":"sequence to pass along values so long as they aren’t divisible by `2` and"},{"text":"`3`. Upon reaching `6`, the sequence ends:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .prefix { $0 % 2 != 0 || $0 % 3 != 0 }"},{"text":" for try await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 2 3 4 5 \""},{"text":" "},{"text":"- Parameter predicate: A closure that takes an element as a parameter and"},{"text":" returns a Boolean value indicating whether the element should be"},{"text":" included in the modified sequence."},{"text":"- Returns: An asynchronous sequence of the initial, consecutive"},{"text":" elements that satisfy `predicate`."}]},"functionSignature":{"parameters":[{"name":"while","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","reduce(_:_:)"],"names":{"title":"reduce(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the result of combining the elements of the asynchronous sequence"},{"text":"using the given closure."},{"text":""},{"text":"Use the `reduce(_:_:)` method to produce a single value from the elements of"},{"text":"an entire sequence. For example, you can use this method on an sequence of"},{"text":"numbers to find their sum or product."},{"text":""},{"text":"The `nextPartialResult` closure executes sequentially with an accumulating"},{"text":"value initialized to `initialResult` and each element of the sequence."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `4`. The `reduce(_:_:)` method sums the values"},{"text":"received from the asynchronous sequence."},{"text":""},{"text":" let sum = await Counter(howHigh: 4)"},{"text":" .reduce(0) {"},{"text":" $0 + $1"},{"text":" }"},{"text":" print(sum)"},{"text":" // Prints \"10\""},{"text":""},{"text":""},{"text":"- Parameters:"},{"text":" - initialResult: The value to use as the initial accumulating value."},{"text":" The `nextPartialResult` closure receives `initialResult` the first"},{"text":" time the closure runs."},{"text":" - nextPartialResult: A closure that combines an accumulating value and"},{"text":" an element of the asynchronous sequence into a new accumulating value,"},{"text":" for use in the next call of the `nextPartialResult` closure or"},{"text":" returned to the caller."},{"text":"- Returns: The final accumulated value. If the sequence has no elements,"},{"text":" the result is `initialResult`."}]},"functionSignature":{"parameters":[{"name":"initialResult","declarationFragments":[{"kind":"identifier","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"}]},{"name":"nextPartialResult","declarationFragments":[{"kind":"identifier","spelling":"nextPartialResult"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result"}]},"swiftGenerics":{"parameters":[{"name":"Result","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nextPartialResult"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","reduce(into:_:)"],"names":{"title":"reduce(into:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the result of combining the elements of the asynchronous sequence"},{"text":"using the given closure, given a mutable initial value."},{"text":""},{"text":"Use the `reduce(into:_:)` method to produce a single value from the"},{"text":"elements of an entire sequence. For example, you can use this method on a"},{"text":"sequence of numbers to find their sum or product."},{"text":""},{"text":"The `updateAccumulatingResult` closure executes sequentially with an"},{"text":"accumulating value initialized to `initialResult` and each element of the"},{"text":"sequence."},{"text":""},{"text":"Prefer this method over `reduce(_:_:)` for efficiency when the result is"},{"text":"a copy-on-write type, for example an `Array` or `Dictionary`."},{"text":""},{"text":"- Parameters:"},{"text":" - initialResult: The value to use as the initial accumulating value."},{"text":" The `nextPartialResult` closure receives `initialResult` the first"},{"text":" time the closure executes."},{"text":" - updateAccumulatingResult: A closure that combines an accumulating"},{"text":" value and an element of the asynchronous sequence into a new"},{"text":" accumulating value, for use in the next call of the"},{"text":" `nextPartialResult` closure or returned to the caller."},{"text":"- Returns: The final accumulated value. If the sequence has no elements,"},{"text":" the result is `initialResult`."}]},"functionSignature":{"parameters":[{"name":"into","internalName":"initialResult","declarationFragments":[{"kind":"identifier","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"}]},{"name":"updateAccumulatingResult","declarationFragments":[{"kind":"identifier","spelling":"updateAccumulatingResult"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result"}]},"swiftGenerics":{"parameters":[{"name":"Result","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"updateAccumulatingResult"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","contains(where:)"],"names":{"title":"contains(where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether the asynchronous sequence"},{"text":"contains an element that satisfies the given predicate."},{"text":""},{"text":"You can use the predicate to check for an element of a type that doesn’t"},{"text":"conform to the `Equatable` protocol, or to find an element that satisfies"},{"text":"a general condition."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `contains(where:)` method checks to see"},{"text":"whether the sequence produces a value divisible by `3`:"},{"text":""},{"text":" let containsDivisibleByThree = await Counter(howHigh: 10)"},{"text":" .contains { $0 % 3 == 0 }"},{"text":" print(containsDivisibleByThree)"},{"text":" // Prints \"true\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate finds a match or the sequence ends."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the passed element represents a match."},{"text":"- Returns: `true` if the sequence contains an element that satisfies"},{"text":" predicate; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","allSatisfy(_:)"],"names":{"title":"allSatisfy(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allSatisfy"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether all elements produced by the"},{"text":"asynchronous sequence satisfy the given predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `allSatisfy(_:)` method checks to see whether"},{"text":"all elements produced by the sequence are less than `10`."},{"text":""},{"text":" let allLessThanTen = await Counter(howHigh: 10)"},{"text":" .allSatisfy { $0 < 10 }"},{"text":" print(allLessThanTen)"},{"text":" // Prints \"false\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate returns `false` or the sequence ends."},{"text":""},{"text":"If the asynchronous sequence is empty, this method returns `true`."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the passed element satisfies a condition."},{"text":"- Returns: `true` if the sequence contains only elements that satisfy"},{"text":" `predicate`; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allSatisfy"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","contains(_:)"],"names":{"title":"contains(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether the asynchronous sequence"},{"text":"contains the given element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `contains(_:)` method checks to see whether"},{"text":"the sequence produces the value `5`:"},{"text":""},{"text":" let containsFive = await Counter(howHigh: 10)"},{"text":" .contains(5)"},{"text":" print(containsFive)"},{"text":" // Prints \"true\""},{"text":""},{"text":"- Parameter search: The element to find in the asynchronous sequence."},{"text":"- Returns: `true` if the method found the element in the asynchronous"},{"text":" sequence; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"search","declarationFragments":[{"kind":"identifier","spelling":"search"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"search"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","first(where:)"],"names":{"title":"first(where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the first element of the sequence that satisfies the given"},{"text":"predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `first(where:)` method returns the first"},{"text":"member of the sequence that's evenly divisible by both `2` and `3`."},{"text":""},{"text":" let divisibleBy2And3 = await Counter(howHigh: 10)"},{"text":" .first { $0 % 2 == 0 && $0 % 3 == 0 }"},{"text":" print(divisibleBy2And3 ?? \"none\")"},{"text":" // Prints \"6\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate finds a match or the sequence ends."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the element is a match."},{"text":"- Returns: The first element of the sequence that satisfies `predicate`,"},{"text":" or `nil` if there is no element that satisfies `predicate`."}]},"functionSignature":{"parameters":[{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","min(by:)"],"names":{"title":"min(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the minimum element in the asynchronous sequence, using the given"},{"text":"predicate as the comparison between elements."},{"text":""},{"text":"Use this method when the asynchronous sequence's values don't conform"},{"text":"to `Comparable`, or when you want to apply a custom ordering to the"},{"text":"sequence."},{"text":""},{"text":"The predicate must be a *strict weak ordering* over the elements. That is,"},{"text":"for any elements `a`, `b`, and `c`, the following conditions must hold:"},{"text":""},{"text":"- `areInIncreasingOrder(a, a)` is always `false`. (Irreflexivity)"},{"text":"- If `areInIncreasingOrder(a, b)` and `areInIncreasingOrder(b, c)` are"},{"text":" both `true`, then `areInIncreasingOrder(a, c)` is also"},{"text":" `true`. (Transitive comparability)"},{"text":"- Two elements are *incomparable* if neither is ordered before the other"},{"text":" according to the predicate. If `a` and `b` are incomparable, and `b`"},{"text":" and `c` are incomparable, then `a` and `c` are also incomparable."},{"text":" (Transitive incomparability)"},{"text":""},{"text":"The following example uses an enumeration of playing cards ranks, `Rank`,"},{"text":"which ranges from `ace` (low) to `king` (high). An asynchronous sequence"},{"text":"called `RankCounter` produces all elements of the array. The predicate"},{"text":"provided to the `min(by:)` method sorts ranks based on their `rawValue`:"},{"text":""},{"text":" enum Rank: Int {"},{"text":" case ace = 1, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king"},{"text":" }"},{"text":""},{"text":" let min = await RankCounter()"},{"text":" .min { $0.rawValue < $1.rawValue }"},{"text":" print(min ?? \"none\")"},{"text":" // Prints \"ace\""},{"text":""},{"text":"- Parameter areInIncreasingOrder: A predicate that returns `true` if its"},{"text":" first argument should be ordered before its second argument; otherwise,"},{"text":" `false`."},{"text":"- Returns: The sequence’s minimum element, according to"},{"text":" `areInIncreasingOrder`. If the sequence has no elements, returns `nil`."}]},"functionSignature":{"parameters":[{"name":"by","internalName":"areInIncreasingOrder","declarationFragments":[{"kind":"identifier","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","max(by:)"],"names":{"title":"max(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the maximum element in the asynchronous sequence, using the given"},{"text":"predicate as the comparison between elements."},{"text":""},{"text":"Use this method when the asynchronous sequence's values don't conform"},{"text":"to `Comparable`, or when you want to apply a custom ordering to the"},{"text":"sequence."},{"text":""},{"text":"The predicate must be a *strict weak ordering* over the elements. That is,"},{"text":"for any elements `a`, `b`, and `c`, the following conditions must hold:"},{"text":""},{"text":"- `areInIncreasingOrder(a, a)` is always `false`. (Irreflexivity)"},{"text":"- If `areInIncreasingOrder(a, b)` and `areInIncreasingOrder(b, c)` are"},{"text":" both `true`, then `areInIncreasingOrder(a, c)` is also"},{"text":" `true`. (Transitive comparability)"},{"text":"- Two elements are *incomparable* if neither is ordered before the other"},{"text":" according to the predicate. If `a` and `b` are incomparable, and `b`"},{"text":" and `c` are incomparable, then `a` and `c` are also incomparable."},{"text":" (Transitive incomparability)"},{"text":""},{"text":"The following example uses an enumeration of playing cards ranks, `Rank`,"},{"text":"which ranges from `ace` (low) to `king` (high). An asynchronous sequence"},{"text":"called `RankCounter` produces all elements of the array. The predicate"},{"text":"provided to the `max(by:)` method sorts ranks based on their `rawValue`:"},{"text":""},{"text":" enum Rank: Int {"},{"text":" case ace = 1, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king"},{"text":" }"},{"text":""},{"text":" let max = await RankCounter()"},{"text":" .max { $0.rawValue < $1.rawValue }"},{"text":" print(max ?? \"none\")"},{"text":" // Prints \"king\""},{"text":""},{"text":"- Parameter areInIncreasingOrder: A predicate that returns `true` if its"},{"text":" first argument should be ordered before its second argument; otherwise,"},{"text":" `false`."},{"text":"- Returns: The sequence’s minimum element, according to"},{"text":" `areInIncreasingOrder`. If the sequence has no elements, returns `nil`."}]},"functionSignature":{"parameters":[{"name":"by","internalName":"areInIncreasingOrder","declarationFragments":[{"kind":"identifier","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","min()"],"names":{"title":"min()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the minimum element in an asynchronous sequence of comparable"},{"text":"elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `min()` method returns the minimum value"},{"text":"of the sequence."},{"text":""},{"text":" let min = await Counter(howHigh: 10)"},{"text":" .min()"},{"text":" print(min ?? \"none\")"},{"text":" // Prints \"1\""},{"text":""},{"text":"- Returns: The sequence’s minimum element. If the sequence has no"},{"text":" elements, returns `nil`."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","max()"],"names":{"title":"max()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the maximum element in an asynchronous sequence of comparable"},{"text":"elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `max()` method returns the max value"},{"text":"of the sequence."},{"text":""},{"text":" let max = await Counter(howHigh: 10)"},{"text":" .max()"},{"text":" print(max ?? \"none\")"},{"text":" // Prints \"10\""},{"text":""},{"text":"- Returns: The sequence’s maximum element. If the sequence has no"},{"text":" elements, returns `nil`."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","compactMap(_:)"],"names":{"title":"compactMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps an error-throwing closure over"},{"text":"the base sequence’s elements, omitting results that don't return a value."},{"text":""},{"text":"Use the `compactMap(_:)` method to transform every element received from"},{"text":"a base asynchronous sequence, while also discarding any `nil` results"},{"text":"from the closure. Typically, you use this to transform from one type of"},{"text":"element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `compactMap(_:)`"},{"text":"method takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. Since there is no key for `4`, the closure"},{"text":"returns `nil` in this case, which `compactMap(_:)` omits from the"},{"text":"transformed asynchronous sequence. When the value is `5`, the closure"},{"text":"throws `MyError`, terminating the sequence."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .compactMap { (value) throws -> String? in"},{"text":" if value == 5 {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return romanNumeralDict[value]"},{"text":" }"},{"text":" for try await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(\"Error: \\(error)\")"},{"text":" }"},{"text":" // Prints \"I II III Error: MyError() \""},{"text":""},{"text":"- Parameter transform: An error-throwing mapping closure. `transform`"},{"text":" accepts an element of this sequence as its parameter and returns a"},{"text":" transformed value of the same or of a different type. If `transform`"},{"text":" throws an error, the sequence ends."},{"text":"- Returns: An asynchronous sequence that contains, in order, the"},{"text":" non-`nil` elements produced by the `transform` closure. The sequence"},{"text":" ends either when the base sequence ends or when `transform` throws an"},{"text":" error."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"ElementOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given error-throwing transformation with each element of this"},{"text":"sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`. However, when the closure receives `4`, it throws an"},{"text":"error, terminating the sequence."},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { (value) -> Counter in"},{"text":" if value == 4 {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return Counter(howHigh: value)"},{"text":" }"},{"text":" for try await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(error)"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 MyError() \""},{"text":""},{"text":"- Parameter transform: An error-throwing mapping closure. `transform`"},{"text":" accepts an element of this sequence as its parameter and returns an"},{"text":" `AsyncSequence`. If `transform` throws an error, the sequence ends."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`. The"},{"text":" sequence ends either when the last sequence created from the last"},{"text":" element from base sequence ends, or when `transform` throws an error."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","interfaceLanguage":"swift"},"pathComponents":["Countdown","map(_:)"],"names":{"title":"map(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given error-throwing"},{"text":"closure over the asynchronous sequence’s elements."},{"text":""},{"text":"Use the `map(_:)` method to transform every element received from a base"},{"text":"asynchronous sequence. Typically, you use this to transform from one type"},{"text":"of element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `map(_:)` method"},{"text":"takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. This means the outer `for await in` loop"},{"text":"iterates over `String` instances instead of the underlying `Int` values"},{"text":"that `Counter` produces. Also, the dictionary doesn't provide a key for"},{"text":"`4`, and the closure throws an error for any key it can't look up, so"},{"text":"receiving this value from `Counter` ends the modified sequence with an"},{"text":"error."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .map { (value) throws -> String in"},{"text":" guard let roman = romanNumeralDict[value] else {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return roman"},{"text":" }"},{"text":" for try await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(\"Error: \\(error)\")"},{"text":" }"},{"text":" // Prints \"I II III Error: MyError() \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type. `transform` can also throw an error, which"},{"text":" ends the transformed sequence."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"Transformed","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.typealias","displayName":"Type Alias"},"identifier":{"precise":"s:9SwiftDemo9CountdownV7Elementa","interfaceLanguage":"swift"},"pathComponents":["Countdown","Element"],"names":{"title":"Countdown.Element","navigator":[{"kind":"identifier","spelling":"Element"}],"subHeading":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Element"}]},"declarationFragments":[{"kind":"keyword","spelling":"typealias"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Element"},{"kind":"text","spelling":" = "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":54,"character":21}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo9CountdownV5startSivp","interfaceLanguage":"swift"},"pathComponents":["Countdown","start"],"names":{"title":"start","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":55,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo9CountdownV4fromACSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Countdown","init(from:)"],"names":{"title":"init(from:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"from","internalName":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":56,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo9CountdownV5labelSSvp","interfaceLanguage":"swift"},"pathComponents":["Countdown","label"],"names":{"title":"label","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"label"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":57,"character":15}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo9CountdownV13AsyncIteratorV","interfaceLanguage":"swift"},"pathComponents":["Countdown","AsyncIterator"],"names":{"title":"Countdown.AsyncIterator","navigator":[{"kind":"identifier","spelling":"AsyncIterator"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"AsyncIterator"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"AsyncIterator"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":59,"character":18}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV","interfaceLanguage":"swift"},"pathComponents":["Countdown","AsyncIterator","next(isolation:)"],"names":{"title":"next(isolation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isolation"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Default implementation of `next(isolation:)` in terms of `next()`, which"},{"text":"is required to maintain backward compatibility with existing async"},{"text":"iterators."}]},"functionSignature":{"parameters":[{"name":"isolation","internalName":"actor","declarationFragments":[{"kind":"identifier","spelling":"actor"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isolation"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"actor"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV","interfaceLanguage":"swift"},"pathComponents":["Countdown","AsyncIterator","next()"],"names":{"title":"next()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Default implementation of `next()` in terms of `next(isolation:)`, which"},{"text":"is required to maintain backward compatibility with existing async"},{"text":"iterators."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF","interfaceLanguage":"swift"},"pathComponents":["Countdown","AsyncIterator","next()"],"names":{"title":"next()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":61,"character":29}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF","interfaceLanguage":"swift"},"pathComponents":["Countdown","makeAsyncIterator()"],"names":{"title":"makeAsyncIterator()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeAsyncIterator"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"AsyncIterator","preciseIdentifier":"s:9SwiftDemo9CountdownV13AsyncIteratorV"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Countdown","preciseIdentifier":"s:9SwiftDemo9CountdownV"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"AsyncIterator","preciseIdentifier":"s:9SwiftDemo9CountdownV13AsyncIteratorV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeAsyncIterator"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"AsyncIterator","preciseIdentifier":"s:9SwiftDemo9CountdownV13AsyncIteratorV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":67,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream"],"names":{"title":"WordStream","navigator":[{"kind":"identifier","spelling":"WordStream"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"WordStream"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"WordStream"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":71,"character":19}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","compactMap(_:)"],"names":{"title":"compactMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given closure over the"},{"text":"asynchronous sequence’s elements, omitting results that don't return a"},{"text":"value."},{"text":""},{"text":"Use the `compactMap(_:)` method to transform every element received from"},{"text":"a base asynchronous sequence, while also discarding any `nil` results"},{"text":"from the closure. Typically, you use this to transform from one type of"},{"text":"element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `compactMap(_:)`"},{"text":"method takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. Because there is no key for `4`, the closure"},{"text":"returns `nil` in this case, which `compactMap(_:)` omits from the"},{"text":"transformed asynchronous sequence."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":" "},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .compactMap { romanNumeralDict[$0] }"},{"text":" for await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"I II III V \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type."},{"text":"- Returns: An asynchronous sequence that contains, in order, the"},{"text":" non-`nil` elements produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"ElementOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncCompactMapSequence","preciseIdentifier":"s:12_Concurrency23AsyncCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","dropFirst(_:)"],"names":{"title":"dropFirst(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropFirst"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Omits a specified number of elements from the base asynchronous sequence,"},{"text":"then passes through all remaining elements."},{"text":""},{"text":"Use `dropFirst(_:)` when you want to drop the first *n* elements from the"},{"text":"base sequence and pass through the remaining elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `dropFirst(_:)` method causes the modified"},{"text":"sequence to ignore the values `1` through `3`, and instead emit `4` through `10`:"},{"text":""},{"text":" for await number in Counter(howHigh: 10).dropFirst(3) {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"4 5 6 7 8 9 10 \""},{"text":""},{"text":"If the number of elements to drop exceeds the number of elements in the"},{"text":"sequence, the result is an empty sequence."},{"text":""},{"text":"- Parameter count: The number of elements to drop from the beginning of"},{"text":" the sequence. `count` must be greater than or equal to zero."},{"text":"- Returns: An asynchronous sequence that drops the first `count`"},{"text":" elements from the base sequence."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"dropFirst"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" = 1) -> "},{"kind":"typeIdentifier","spelling":"AsyncDropFirstSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropFirstSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","drop(while:)"],"names":{"title":"drop(while:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Omits elements from the base asynchronous sequence until a given closure"},{"text":"returns false, after which it passes through all remaining elements."},{"text":""},{"text":"Use `drop(while:)` to omit elements from an asynchronous sequence until"},{"text":"the element received meets a condition you specify."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `drop(while:)` method causes the modified"},{"text":"sequence to ignore received values until it encounters one that is"},{"text":"divisible by `3`:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .drop { $0 % 3 != 0 }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"3 4 5 6 7 8 9 10 \""},{"text":""},{"text":"After the predicate returns `false`, the sequence never executes it again,"},{"text":"and from then on the sequence passes through elements from its underlying"},{"text":"sequence as-is."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element as a parameter and"},{"text":" returns a Boolean value indicating whether to drop the element from the"},{"text":" modified sequence."},{"text":"- Returns: An asynchronous sequence that skips over values from the"},{"text":" base sequence until the provided closure returns `false`."}]},"functionSignature":{"parameters":[{"name":"while","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"drop"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncDropWhileSequence","preciseIdentifier":"s:12_Concurrency22AsyncDropWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","filter(_:)"],"names":{"title":"filter(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"filter"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that contains, in order, the elements of"},{"text":"the base sequence that satisfy the given predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `filter(_:)` method returns `true` for even"},{"text":"values and `false` for odd values, thereby filtering out the odd values:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .filter { $0 % 2 == 0 }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"2 4 6 8 10 \""},{"text":""},{"text":"- Parameter isIncluded: A closure that takes an element of the"},{"text":" asynchronous sequence as its argument and returns a Boolean value"},{"text":" that indicates whether to include the element in the filtered sequence."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" of the base sequence that satisfy the given predicate."}]},"functionSignature":{"parameters":[{"name":"isIncluded","declarationFragments":[{"kind":"identifier","spelling":"isIncluded"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"filter"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"isIncluded"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFilterSequence","preciseIdentifier":"s:12_Concurrency19AsyncFilterSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Self.Failure","rhs":"SegmentOfResult.Failure"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"SegmentOfResult.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given transformation with each element of this sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`."},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { Counter(howHigh: $0) }"},{"text":" for await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns an `AsyncSequence`."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}],"constraints":[{"kind":"sameType","lhs":"Self.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"},{"kind":"sameType","lhs":"SegmentOfResult.Failure","rhs":"Never","rhsPrecise":"s:s5NeverO"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncFlatMapSequence","preciseIdentifier":"s:12_Concurrency20AsyncFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:Sci7FailureQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","map(_:)"],"names":{"title":"map(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given closure over the"},{"text":"asynchronous sequence’s elements."},{"text":""},{"text":"Use the `map(_:)` method to transform every element received from a base"},{"text":"asynchronous sequence. Typically, you use this to transform from one type"},{"text":"of element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `map(_:)` method"},{"text":"takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. This means the outer `for await in` loop"},{"text":"iterates over `String` instances instead of the underlying `Int` values"},{"text":"that `Counter` produces:"},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .map { romanNumeralDict[$0] ?? \"(unknown)\" }"},{"text":" for await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"I II III (unknown) V \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"Transformed","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncMapSequence","preciseIdentifier":"s:12_Concurrency16AsyncMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","prefix(_:)"],"names":{"title":"prefix(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns an asynchronous sequence, up to the specified maximum length,"},{"text":"containing the initial elements of the base asynchronous sequence."},{"text":""},{"text":"Use `prefix(_:)` to reduce the number of elements produced by the"},{"text":"asynchronous sequence."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `prefix(_:)` method causes the modified"},{"text":"sequence to pass through the first six values, then end."},{"text":""},{"text":" for await number in Counter(howHigh: 10).prefix(6) {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 2 3 4 5 6 \""},{"text":""},{"text":"If the count passed to `prefix(_:)` exceeds the number of elements in the"},{"text":"base sequence, the result contains all of the elements in the sequence."},{"text":""},{"text":"- Parameter count: The maximum number of elements to return. The value of"},{"text":" `count` must be greater than or equal to zero."},{"text":"- Returns: An asynchronous sequence starting at the beginning of the"},{"text":" base sequence with at most `count` elements."}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixSequence","preciseIdentifier":"s:12_Concurrency19AsyncPrefixSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","prefix(while:)"],"names":{"title":"prefix(while:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns an asynchronous sequence, containing the initial, consecutive"},{"text":"elements of the base sequence that satisfy the given predicate."},{"text":""},{"text":"Use `prefix(while:)` to produce values while elements from the base"},{"text":"sequence meet a condition you specify. The modified sequence ends when"},{"text":"the predicate closure returns `false`."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `prefix(while:)` method causes the modified"},{"text":"sequence to pass along values so long as they aren’t divisible by `2` and"},{"text":"`3`. Upon reaching `6`, the sequence ends:"},{"text":""},{"text":" let stream = Counter(howHigh: 10)"},{"text":" .prefix { $0 % 2 != 0 || $0 % 3 != 0 }"},{"text":" for try await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" // Prints \"1 2 3 4 5 \""},{"text":" "},{"text":"- Parameter predicate: A closure that takes an element as a parameter and"},{"text":" returns a Boolean value indicating whether the element should be"},{"text":" included in the modified sequence."},{"text":"- Returns: An asynchronous sequence of the initial, consecutive"},{"text":" elements that satisfy `predicate`."}]},"functionSignature":{"parameters":[{"name":"while","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"prefix"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"while"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"AsyncPrefixWhileSequence","preciseIdentifier":"s:12_Concurrency24AsyncPrefixWhileSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","reduce(_:_:)"],"names":{"title":"reduce(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the result of combining the elements of the asynchronous sequence"},{"text":"using the given closure."},{"text":""},{"text":"Use the `reduce(_:_:)` method to produce a single value from the elements of"},{"text":"an entire sequence. For example, you can use this method on an sequence of"},{"text":"numbers to find their sum or product."},{"text":""},{"text":"The `nextPartialResult` closure executes sequentially with an accumulating"},{"text":"value initialized to `initialResult` and each element of the sequence."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `4`. The `reduce(_:_:)` method sums the values"},{"text":"received from the asynchronous sequence."},{"text":""},{"text":" let sum = await Counter(howHigh: 4)"},{"text":" .reduce(0) {"},{"text":" $0 + $1"},{"text":" }"},{"text":" print(sum)"},{"text":" // Prints \"10\""},{"text":""},{"text":""},{"text":"- Parameters:"},{"text":" - initialResult: The value to use as the initial accumulating value."},{"text":" The `nextPartialResult` closure receives `initialResult` the first"},{"text":" time the closure runs."},{"text":" - nextPartialResult: A closure that combines an accumulating value and"},{"text":" an element of the asynchronous sequence into a new accumulating value,"},{"text":" for use in the next call of the `nextPartialResult` closure or"},{"text":" returned to the caller."},{"text":"- Returns: The final accumulated value. If the sequence has no elements,"},{"text":" the result is `initialResult`."}]},"functionSignature":{"parameters":[{"name":"initialResult","declarationFragments":[{"kind":"identifier","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"}]},{"name":"nextPartialResult","declarationFragments":[{"kind":"identifier","spelling":"nextPartialResult"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result"}]},"swiftGenerics":{"parameters":[{"name":"Result","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"nextPartialResult"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","reduce(into:_:)"],"names":{"title":"reduce(into:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the result of combining the elements of the asynchronous sequence"},{"text":"using the given closure, given a mutable initial value."},{"text":""},{"text":"Use the `reduce(into:_:)` method to produce a single value from the"},{"text":"elements of an entire sequence. For example, you can use this method on a"},{"text":"sequence of numbers to find their sum or product."},{"text":""},{"text":"The `updateAccumulatingResult` closure executes sequentially with an"},{"text":"accumulating value initialized to `initialResult` and each element of the"},{"text":"sequence."},{"text":""},{"text":"Prefer this method over `reduce(_:_:)` for efficiency when the result is"},{"text":"a copy-on-write type, for example an `Array` or `Dictionary`."},{"text":""},{"text":"- Parameters:"},{"text":" - initialResult: The value to use as the initial accumulating value."},{"text":" The `nextPartialResult` closure receives `initialResult` the first"},{"text":" time the closure executes."},{"text":" - updateAccumulatingResult: A closure that combines an accumulating"},{"text":" value and an element of the asynchronous sequence into a new"},{"text":" accumulating value, for use in the next call of the"},{"text":" `nextPartialResult` closure or returned to the caller."},{"text":"- Returns: The final accumulated value. If the sequence has no elements,"},{"text":" the result is `initialResult`."}]},"functionSignature":{"parameters":[{"name":"into","internalName":"initialResult","declarationFragments":[{"kind":"identifier","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"}]},{"name":"updateAccumulatingResult","declarationFragments":[{"kind":"identifier","spelling":"updateAccumulatingResult"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result"}]},"swiftGenerics":{"parameters":[{"name":"Result","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"reduce"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Result"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"into"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"initialResult"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"updateAccumulatingResult"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Result"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","contains(where:)"],"names":{"title":"contains(where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether the asynchronous sequence"},{"text":"contains an element that satisfies the given predicate."},{"text":""},{"text":"You can use the predicate to check for an element of a type that doesn’t"},{"text":"conform to the `Equatable` protocol, or to find an element that satisfies"},{"text":"a general condition."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `contains(where:)` method checks to see"},{"text":"whether the sequence produces a value divisible by `3`:"},{"text":""},{"text":" let containsDivisibleByThree = await Counter(howHigh: 10)"},{"text":" .contains { $0 % 3 == 0 }"},{"text":" print(containsDivisibleByThree)"},{"text":" // Prints \"true\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate finds a match or the sequence ends."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the passed element represents a match."},{"text":"- Returns: `true` if the sequence contains an element that satisfies"},{"text":" predicate; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","allSatisfy(_:)"],"names":{"title":"allSatisfy(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allSatisfy"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether all elements produced by the"},{"text":"asynchronous sequence satisfy the given predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `allSatisfy(_:)` method checks to see whether"},{"text":"all elements produced by the sequence are less than `10`."},{"text":""},{"text":" let allLessThanTen = await Counter(howHigh: 10)"},{"text":" .allSatisfy { $0 < 10 }"},{"text":" print(allLessThanTen)"},{"text":" // Prints \"false\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate returns `false` or the sequence ends."},{"text":""},{"text":"If the asynchronous sequence is empty, this method returns `true`."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the passed element satisfies a condition."},{"text":"- Returns: `true` if the sequence contains only elements that satisfy"},{"text":" `predicate`; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allSatisfy"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","contains(_:)"],"names":{"title":"contains(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns a Boolean value that indicates whether the asynchronous sequence"},{"text":"contains the given element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `contains(_:)` method checks to see whether"},{"text":"the sequence produces the value `5`:"},{"text":""},{"text":" let containsFive = await Counter(howHigh: 10)"},{"text":" .contains(5)"},{"text":" print(containsFive)"},{"text":" // Prints \"true\""},{"text":""},{"text":"- Parameter search: The element to find in the asynchronous sequence."},{"text":"- Returns: `true` if the method found the element in the asynchronous"},{"text":" sequence; otherwise, `false`."}]},"functionSignature":{"parameters":[{"name":"search","declarationFragments":[{"kind":"identifier","spelling":"search"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Equatable","rhsPrecise":"s:SQ"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"contains"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"search"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","first(where:)"],"names":{"title":"first(where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the first element of the sequence that satisfies the given"},{"text":"predicate."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `first(where:)` method returns the first"},{"text":"member of the sequence that's evenly divisible by both `2` and `3`."},{"text":""},{"text":" let divisibleBy2And3 = await Counter(howHigh: 10)"},{"text":" .first { $0 % 2 == 0 && $0 % 3 == 0 }"},{"text":" print(divisibleBy2And3 ?? \"none\")"},{"text":" // Prints \"6\""},{"text":""},{"text":"The predicate executes each time the asynchronous sequence produces an"},{"text":"element, until either the predicate finds a match or the sequence ends."},{"text":""},{"text":"- Parameter predicate: A closure that takes an element of the asynchronous"},{"text":" sequence as its argument and returns a Boolean value that indicates"},{"text":" whether the element is a match."},{"text":"- Returns: The first element of the sequence that satisfies `predicate`,"},{"text":" or `nil` if there is no element that satisfies `predicate`."}]},"functionSignature":{"parameters":[{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","min(by:)"],"names":{"title":"min(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the minimum element in the asynchronous sequence, using the given"},{"text":"predicate as the comparison between elements."},{"text":""},{"text":"Use this method when the asynchronous sequence's values don't conform"},{"text":"to `Comparable`, or when you want to apply a custom ordering to the"},{"text":"sequence."},{"text":""},{"text":"The predicate must be a *strict weak ordering* over the elements. That is,"},{"text":"for any elements `a`, `b`, and `c`, the following conditions must hold:"},{"text":""},{"text":"- `areInIncreasingOrder(a, a)` is always `false`. (Irreflexivity)"},{"text":"- If `areInIncreasingOrder(a, b)` and `areInIncreasingOrder(b, c)` are"},{"text":" both `true`, then `areInIncreasingOrder(a, c)` is also"},{"text":" `true`. (Transitive comparability)"},{"text":"- Two elements are *incomparable* if neither is ordered before the other"},{"text":" according to the predicate. If `a` and `b` are incomparable, and `b`"},{"text":" and `c` are incomparable, then `a` and `c` are also incomparable."},{"text":" (Transitive incomparability)"},{"text":""},{"text":"The following example uses an enumeration of playing cards ranks, `Rank`,"},{"text":"which ranges from `ace` (low) to `king` (high). An asynchronous sequence"},{"text":"called `RankCounter` produces all elements of the array. The predicate"},{"text":"provided to the `min(by:)` method sorts ranks based on their `rawValue`:"},{"text":""},{"text":" enum Rank: Int {"},{"text":" case ace = 1, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king"},{"text":" }"},{"text":""},{"text":" let min = await RankCounter()"},{"text":" .min { $0.rawValue < $1.rawValue }"},{"text":" print(min ?? \"none\")"},{"text":" // Prints \"ace\""},{"text":""},{"text":"- Parameter areInIncreasingOrder: A predicate that returns `true` if its"},{"text":" first argument should be ordered before its second argument; otherwise,"},{"text":" `false`."},{"text":"- Returns: The sequence’s minimum element, according to"},{"text":" `areInIncreasingOrder`. If the sequence has no elements, returns `nil`."}]},"functionSignature":{"parameters":[{"name":"by","internalName":"areInIncreasingOrder","declarationFragments":[{"kind":"identifier","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","max(by:)"],"names":{"title":"max(by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the maximum element in the asynchronous sequence, using the given"},{"text":"predicate as the comparison between elements."},{"text":""},{"text":"Use this method when the asynchronous sequence's values don't conform"},{"text":"to `Comparable`, or when you want to apply a custom ordering to the"},{"text":"sequence."},{"text":""},{"text":"The predicate must be a *strict weak ordering* over the elements. That is,"},{"text":"for any elements `a`, `b`, and `c`, the following conditions must hold:"},{"text":""},{"text":"- `areInIncreasingOrder(a, a)` is always `false`. (Irreflexivity)"},{"text":"- If `areInIncreasingOrder(a, b)` and `areInIncreasingOrder(b, c)` are"},{"text":" both `true`, then `areInIncreasingOrder(a, c)` is also"},{"text":" `true`. (Transitive comparability)"},{"text":"- Two elements are *incomparable* if neither is ordered before the other"},{"text":" according to the predicate. If `a` and `b` are incomparable, and `b`"},{"text":" and `c` are incomparable, then `a` and `c` are also incomparable."},{"text":" (Transitive incomparability)"},{"text":""},{"text":"The following example uses an enumeration of playing cards ranks, `Rank`,"},{"text":"which ranges from `ace` (low) to `king` (high). An asynchronous sequence"},{"text":"called `RankCounter` produces all elements of the array. The predicate"},{"text":"provided to the `max(by:)` method sorts ranks based on their `rawValue`:"},{"text":""},{"text":" enum Rank: Int {"},{"text":" case ace = 1, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king"},{"text":" }"},{"text":""},{"text":" let max = await RankCounter()"},{"text":" .max { $0.rawValue < $1.rawValue }"},{"text":" print(max ?? \"none\")"},{"text":" // Prints \"king\""},{"text":""},{"text":"- Parameter areInIncreasingOrder: A predicate that returns `true` if its"},{"text":" first argument should be ordered before its second argument; otherwise,"},{"text":" `false`."},{"text":"- Returns: The sequence’s minimum element, according to"},{"text":" `areInIncreasingOrder`. If the sequence has no elements, returns `nil`."}]},"functionSignature":{"parameters":[{"name":"by","internalName":"areInIncreasingOrder","declarationFragments":[{"kind":"identifier","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"areInIncreasingOrder"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","min()"],"names":{"title":"min()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the minimum element in an asynchronous sequence of comparable"},{"text":"elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `min()` method returns the minimum value"},{"text":"of the sequence."},{"text":""},{"text":" let min = await Counter(howHigh: 10)"},{"text":" .min()"},{"text":" print(min ?? \"none\")"},{"text":" // Prints \"1\""},{"text":""},{"text":"- Returns: The sequence’s minimum element. If the sequence has no"},{"text":" elements, returns `nil`."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"min"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","max()"],"names":{"title":"max()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Returns the maximum element in an asynchronous sequence of comparable"},{"text":"elements."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `10`. The `max()` method returns the max value"},{"text":"of the sequence."},{"text":""},{"text":" let max = await Counter(howHigh: 10)"},{"text":" .max()"},{"text":" print(max ?? \"none\")"},{"text":" // Prints \"10\""},{"text":""},{"text":"- Returns: The sequence’s maximum element. If the sequence has no"},{"text":" elements, returns `nil`."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol","constraints":[{"kind":"conformance","lhs":"Self.Element","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"attribute","spelling":"@warn_unqualified_access"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"max"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"rethrows"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","compactMap(_:)"],"names":{"title":"compactMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps an error-throwing closure over"},{"text":"the base sequence’s elements, omitting results that don't return a value."},{"text":""},{"text":"Use the `compactMap(_:)` method to transform every element received from"},{"text":"a base asynchronous sequence, while also discarding any `nil` results"},{"text":"from the closure. Typically, you use this to transform from one type of"},{"text":"element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `compactMap(_:)`"},{"text":"method takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. Since there is no key for `4`, the closure"},{"text":"returns `nil` in this case, which `compactMap(_:)` omits from the"},{"text":"transformed asynchronous sequence. When the value is `5`, the closure"},{"text":"throws `MyError`, terminating the sequence."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .compactMap { (value) throws -> String? in"},{"text":" if value == 5 {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return romanNumeralDict[value]"},{"text":" }"},{"text":" for try await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(\"Error: \\(error)\")"},{"text":" }"},{"text":" // Prints \"I II III Error: MyError() \""},{"text":""},{"text":"- Parameter transform: An error-throwing mapping closure. `transform`"},{"text":" accepts an element of this sequence as its parameter and returns a"},{"text":" transformed value of the same or of a different type. If `transform`"},{"text":" throws an error, the sequence ends."},{"text":"- Returns: An asynchronous sequence that contains, in order, the"},{"text":" non-`nil` elements produced by the `transform` closure. The sequence"},{"text":" ends either when the base sequence ends or when `transform` throws an"},{"text":" error."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"ElementOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compactMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"ElementOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingCompactMapSequence","preciseIdentifier":"s:12_Concurrency31AsyncThrowingCompactMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ElementOfResult"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","flatMap(_:)"],"names":{"title":"flatMap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that concatenates the results of calling"},{"text":"the given error-throwing transformation with each element of this"},{"text":"sequence."},{"text":""},{"text":"Use this method to receive a single-level asynchronous sequence when your"},{"text":"transformation produces an asynchronous sequence for each element."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The transforming closure takes the received `Int`"},{"text":"and returns a new `Counter` that counts that high. For example, when the"},{"text":"transform receives `3` from the base sequence, it creates a new `Counter`"},{"text":"that produces the values `1`, `2`, and `3`. The `flatMap(_:)` method"},{"text":"\"flattens\" the resulting sequence-of-sequences into a single"},{"text":"`AsyncSequence`. However, when the closure receives `4`, it throws an"},{"text":"error, terminating the sequence."},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .flatMap { (value) -> Counter in"},{"text":" if value == 4 {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return Counter(howHigh: value)"},{"text":" }"},{"text":" for try await number in stream {"},{"text":" print(number, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(error)"},{"text":" }"},{"text":" // Prints \"1 1 2 1 2 3 MyError() \""},{"text":""},{"text":"- Parameter transform: An error-throwing mapping closure. `transform`"},{"text":" accepts an element of this sequence as its parameter and returns an"},{"text":" `AsyncSequence`. If `transform` throws an error, the sequence ends."},{"text":"- Returns: A single, flattened asynchronous sequence that contains all"},{"text":" elements in all the asynchronous sequences produced by `transform`. The"},{"text":" sequence ends either when the last sequence created from the last"},{"text":" element from base sequence ends, or when `transform` throws an error."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"SegmentOfResult","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flatMap"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"SegmentOfResult"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingFlatMapSequence","preciseIdentifier":"s:12_Concurrency28AsyncThrowingFlatMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":"> "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"SegmentOfResult"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"AsyncSequence","preciseIdentifier":"s:Sci"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","interfaceLanguage":"swift"},"pathComponents":["WordStream","map(_:)"],"names":{"title":"map(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">(("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Creates an asynchronous sequence that maps the given error-throwing"},{"text":"closure over the asynchronous sequence’s elements."},{"text":""},{"text":"Use the `map(_:)` method to transform every element received from a base"},{"text":"asynchronous sequence. Typically, you use this to transform from one type"},{"text":"of element to another."},{"text":""},{"text":"In this example, an asynchronous sequence called `Counter` produces `Int`"},{"text":"values from `1` to `5`. The closure provided to the `map(_:)` method"},{"text":"takes each `Int` and looks up a corresponding `String` from a"},{"text":"`romanNumeralDict` dictionary. This means the outer `for await in` loop"},{"text":"iterates over `String` instances instead of the underlying `Int` values"},{"text":"that `Counter` produces. Also, the dictionary doesn't provide a key for"},{"text":"`4`, and the closure throws an error for any key it can't look up, so"},{"text":"receiving this value from `Counter` ends the modified sequence with an"},{"text":"error."},{"text":""},{"text":" let romanNumeralDict: [Int: String] ="},{"text":" [1: \"I\", 2: \"II\", 3: \"III\", 5: \"V\"]"},{"text":""},{"text":" do {"},{"text":" let stream = Counter(howHigh: 5)"},{"text":" .map { (value) throws -> String in"},{"text":" guard let roman = romanNumeralDict[value] else {"},{"text":" throw MyError()"},{"text":" }"},{"text":" return roman"},{"text":" }"},{"text":" for try await numeral in stream {"},{"text":" print(numeral, terminator: \" \")"},{"text":" }"},{"text":" } catch {"},{"text":" print(\"Error: \\(error)\")"},{"text":" }"},{"text":" // Prints \"I II III Error: MyError() \""},{"text":""},{"text":"- Parameter transform: A mapping closure. `transform` accepts an element"},{"text":" of this sequence as its parameter and returns a transformed value of the"},{"text":" same or of a different type. `transform` can also throw an error, which"},{"text":" ends the transformed sequence."},{"text":"- Returns: An asynchronous sequence that contains, in order, the elements"},{"text":" produced by the `transform` closure."}]},"functionSignature":{"parameters":[{"name":"transform","declarationFragments":[{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"}]}],"returns":[{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}]},"swiftGenerics":{"parameters":[{"name":"Transformed","index":0,"depth":1}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"attribute","spelling":"@preconcurrency"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"map"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"Transformed"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"transform"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:Sci7ElementQa"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"AsyncThrowingMapSequence","preciseIdentifier":"s:12_Concurrency24AsyncThrowingMapSequenceV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Transformed"},{"kind":"text","spelling":">"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":13,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":15}},{"domain":"tvOS","introduced":{"major":13,"minor":0}},{"domain":"watchOS","introduced":{"major":6,"minor":0}}]},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo10WordStreamCyACSScfc","interfaceLanguage":"swift"},"pathComponents":["WordStream","init(_:)"],"names":{"title":"init(_:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":73,"character":11}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo10WordStreamC8IteratorV","interfaceLanguage":"swift"},"pathComponents":["WordStream","Iterator"],"names":{"title":"WordStream.Iterator","navigator":[{"kind":"identifier","spelling":"Iterator"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Iterator"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Iterator"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":75,"character":18}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV","interfaceLanguage":"swift"},"pathComponents":["WordStream","Iterator","next(isolation:)"],"names":{"title":"next(isolation:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isolation"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Default implementation of `next(isolation:)` in terms of `next()`, which"},{"text":"is required to maintain backward compatibility with existing async"},{"text":"iterators."}]},"functionSignature":{"parameters":[{"name":"isolation","internalName":"actor","declarationFragments":[{"kind":"identifier","spelling":"actor"},{"kind":"text","spelling":": (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"isolation"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"actor"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"isolated"},{"kind":"text","spelling":" (any "},{"kind":"typeIdentifier","spelling":"Actor","preciseIdentifier":"s:ScA"},{"kind":"text","spelling":")?) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV","interfaceLanguage":"swift"},"pathComponents":["WordStream","Iterator","next()"],"names":{"title":"next()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"docComment":{"module":"_Concurrency","lines":[{"text":"Default implementation of `next()` in terms of `next(isolation:)`, which"},{"text":"is required to maintain backward compatibility with existing async"},{"text":"iterators."}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftExtension":{"extendedModule":"_Concurrency","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Failure","preciseIdentifier":"s:ScI7FailureQa"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ScI7ElementQa"},{"kind":"text","spelling":"?"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":18,"minor":0}},{"domain":"macOS","introduced":{"major":15,"minor":0}},{"domain":"tvOS","introduced":{"major":18,"minor":0}},{"domain":"visionOS","introduced":{"major":2,"minor":0}},{"domain":"watchOS","introduced":{"major":11,"minor":0}}]},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF","interfaceLanguage":"swift"},"pathComponents":["WordStream","Iterator","next()"],"names":{"title":"next()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"mutating"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"next"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":77,"character":29}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF","interfaceLanguage":"swift"},"pathComponents":["WordStream","makeAsyncIterator()"],"names":{"title":"makeAsyncIterator()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeAsyncIterator"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Iterator","preciseIdentifier":"s:9SwiftDemo10WordStreamC8IteratorV"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"WordStream","preciseIdentifier":"s:9SwiftDemo10WordStreamC"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Iterator","preciseIdentifier":"s:9SwiftDemo10WordStreamC8IteratorV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeAsyncIterator"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Iterator","preciseIdentifier":"s:9SwiftDemo10WordStreamC8IteratorV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":79,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo11ThermometerC","interfaceLanguage":"swift"},"pathComponents":["Thermometer"],"names":{"title":"Thermometer","navigator":[{"kind":"identifier","spelling":"Thermometer"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermometer"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Thermometer"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":83,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo11ThermometerCACycfc","interfaceLanguage":"swift"},"pathComponents":["Thermometer","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":85,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp","interfaceLanguage":"swift"},"pathComponents":["Thermometer","readings"],"names":{"title":"readings","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"readings"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyPublisher","preciseIdentifier":"s:7Combine12AnyPublisherV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"readings"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"AnyPublisher","preciseIdentifier":"s:7Combine12AnyPublisherV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Never","preciseIdentifier":"s:s5NeverO"},{"kind":"text","spelling":"> { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":86,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo11ThermometerC6recordyySdF","interfaceLanguage":"swift"},"pathComponents":["Thermometer","record(_:)"],"names":{"title":"record(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"record"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"record"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":87,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo11ThermometerC6finishyyF","interfaceLanguage":"swift"},"pathComponents":["Thermometer","finish()"],"names":{"title":"finish()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"finish"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"finish"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":88,"character":16}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo9StreamLogC","interfaceLanguage":"swift"},"pathComponents":["StreamLog"],"names":{"title":"StreamLog","navigator":[{"kind":"identifier","spelling":"StreamLog"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"StreamLog"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"StreamLog"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":92,"character":19}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo9StreamLogC12terminationsSivpZ","interfaceLanguage":"swift"},"pathComponents":["StreamLog","terminations"],"names":{"title":"terminations","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"terminations"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"terminations"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":93,"character":22}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6tickerScSySiGyF","interfaceLanguage":"swift"},"pathComponents":["ticker()"],"names":{"title":"ticker()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ticker"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ticker"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"AsyncStream","preciseIdentifier":"s:ScS"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Streams.swift","position":{"line":95,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11checkedSideyS2dKF","interfaceLanguage":"swift"},"pathComponents":["checkedSide(_:)"],"names":{"title":"checkedSide(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkedSide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"side","declarationFragments":[{"kind":"identifier","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkedSide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"side"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":5,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8echoInt8ys0D0VADF","interfaceLanguage":"swift"},"pathComponents":["echoInt8(_:)"],"names":{"title":"echoInt8(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt8"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt8"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int8","preciseIdentifier":"s:s4Int8V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":10,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10echoUInt64ys0D0VADF","interfaceLanguage":"swift"},"pathComponents":["echoUInt64(_:)"],"names":{"title":"echoUInt64(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoUInt64"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoUInt64"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UInt64","preciseIdentifier":"s:s6UInt64V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":11,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10largestIntSiyF","interfaceLanguage":"swift"},"pathComponents":["largestInt()"],"names":{"title":"largestInt()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largestInt"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largestInt"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":12,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5shoutySSSgACF","interfaceLanguage":"swift"},"pathComponents":["shout(_:)"],"names":{"title":"shout(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shout"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":13,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7TrackerC","interfaceLanguage":"swift"},"pathComponents":["Tracker"],"names":{"title":"Tracker","navigator":[{"kind":"identifier","spelling":"Tracker"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Tracker"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Tracker"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":15,"character":19}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo7TrackerC9liveCountSivpZ","interfaceLanguage":"swift"},"pathComponents":["Tracker","liveCount"],"names":{"title":"liveCount","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"liveCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"liveCount"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":16,"character":35}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7TrackerC2idSivp","interfaceLanguage":"swift"},"pathComponents":["Tracker","id"],"names":{"title":"id","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":17,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7TrackerC2idACSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Tracker","init(id:)"],"names":{"title":"init(id:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":19,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7TrackerC4sameACyF","interfaceLanguage":"swift"},"pathComponents":["Tracker","same()"],"names":{"title":"same()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"same"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":26,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11delayedEcho_5afterS2S_SdtYaKF","interfaceLanguage":"swift"},"pathComponents":["delayedEcho(_:after:)"],"names":{"title":"delayedEcho(_:after:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"delayedEcho"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"after","internalName":"seconds","declarationFragments":[{"kind":"identifier","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"delayedEcho"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":29,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo16makeTrackerLater2idAA0D0CSi_tYaF","interfaceLanguage":"swift"},"pathComponents":["makeTrackerLater(id:)"],"names":{"title":"makeTrackerLater(id:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeTrackerLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeTrackerLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":35,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo7PaletteC","interfaceLanguage":"swift"},"pathComponents":["Palette"],"names":{"title":"Palette","navigator":[{"kind":"identifier","spelling":"Palette"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Palette"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Palette"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":41,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7PaletteC7strokesSivp","interfaceLanguage":"swift"},"pathComponents":["Palette","strokes"],"names":{"title":"strokes","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokes"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":42,"character":28}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7PaletteCACycfc","interfaceLanguage":"swift"},"pathComponents":["Palette","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":43,"character":11}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PaletteC6strokeSiyF","interfaceLanguage":"swift"},"pathComponents":["Palette","stroke()"],"names":{"title":"stroke()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"stroke"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"stroke"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":44,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo7PaletteC11strokeLaterSiyYaF","interfaceLanguage":"swift"},"pathComponents":["Palette","strokeLater()"],"names":{"title":"strokeLater()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokeLater"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"strokeLater"},{"kind":"text","spelling":"() "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":48,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5namesySaySSGSiF","interfaceLanguage":"swift"},"pathComponents":["names(_:)"],"names":{"title":"names(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5totalySdSaySdGF","interfaceLanguage":"swift"},"pathComponents":["total(_:)"],"names":{"title":"total(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"total"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"total"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":55,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8centroid2ofAA5PointVSayAEG_tF","interfaceLanguage":"swift"},"pathComponents":["centroid(of:)"],"names":{"title":"centroid(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"centroid"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"points","declarationFragments":[{"kind":"identifier","spelling":"points"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"centroid"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"points"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":56,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8mirroredySaySaySiGGADF","interfaceLanguage":"swift"},"pathComponents":["mirrored(_:)"],"names":{"title":"mirrored(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mirrored"},{"kind":"text","spelling":"([["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]) -> [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]},"functionSignature":{"parameters":[{"name":"grid","declarationFragments":[{"kind":"identifier","spelling":"grid"},{"kind":"text","spelling":": [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]}],"returns":[{"kind":"text","spelling":"[["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"mirrored"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"grid"},{"kind":"text","spelling":": [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]) -> [["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":57,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10wordCountsySDySSSiGSaySSGF","interfaceLanguage":"swift"},"pathComponents":["wordCounts(_:)"],"names":{"title":"wordCounts(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wordCounts"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"wordCounts"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":58,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7lengthsySDySSSiGSDyS2SGF","interfaceLanguage":"swift"},"pathComponents":["lengths(_:)"],"names":{"title":"lengths(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lengths"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"table","declarationFragments":[{"kind":"identifier","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lengths"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"table"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":61,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8trackersySayAA7TrackerCGSaySiGF","interfaceLanguage":"swift"},"pathComponents":["trackers(_:)"],"names":{"title":"trackers(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"trackers"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"ids","declarationFragments":[{"kind":"identifier","spelling":"ids"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"trackers"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"ids"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":62,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF","interfaceLanguage":"swift"},"pathComponents":["allFlavors()"],"names":{"title":"allFlavors()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allFlavors"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"allFlavors"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":63,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7nextDay5after10Foundation4DateVAF_tF","interfaceLanguage":"swift"},"pathComponents":["nextDay(after:)"],"names":{"title":"nextDay(after:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"nextDay"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]},"functionSignature":{"parameters":[{"name":"after","internalName":"date","declarationFragments":[{"kind":"identifier","spelling":"date"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"nextDay"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"after"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"date"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Date","preciseIdentifier":"s:10Foundation4DateV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":64,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4host2ofSSSg10Foundation3URLV_tF","interfaceLanguage":"swift"},"pathComponents":["host(of:)"],"names":{"title":"host(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"host"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"url","declarationFragments":[{"kind":"identifier","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"host"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"url"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":65,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7resolve_7against10Foundation3URLVSS_AFtF","interfaceLanguage":"swift"},"pathComponents":["resolve(_:against:)"],"names":{"title":"resolve(_:against:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"against"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]},"functionSignature":{"parameters":[{"name":"path","declarationFragments":[{"kind":"identifier","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"against","internalName":"base","declarationFragments":[{"kind":"identifier","spelling":"base"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"path"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"against"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"base"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"URL","preciseIdentifier":"s:10Foundation3URLV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":66,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8checksumySi10Foundation4DataVF","interfaceLanguage":"swift"},"pathComponents":["checksum(_:)"],"names":{"title":"checksum(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checksum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"data","declarationFragments":[{"kind":"identifier","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checksum"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"data"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":67,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4rampy10Foundation4DataVSiF","interfaceLanguage":"swift"},"pathComponents":["ramp(_:)"],"names":{"title":"ramp(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ramp"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ramp"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Data","preciseIdentifier":"s:10Foundation4DataV"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":68,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10namesLaterySaySSGSiYaF","interfaceLanguage":"swift"},"pathComponents":["namesLater(_:)"],"names":{"title":"namesLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"namesLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"namesLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":69,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9countdown4from_ySi_ySi_SbtXEtF","interfaceLanguage":"swift"},"pathComponents":["countdown(from:_:)"],"names":{"title":"countdown(from:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countdown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"from","internalName":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"tick","declarationFragments":[{"kind":"identifier","spelling":"tick"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countdown"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tick"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":74,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10greetLater_10completionySSSg_yADYbctF","interfaceLanguage":"swift"},"pathComponents":["greetLater(_:completion:)"],"names":{"title":"greetLater(_:completion:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?, "},{"kind":"externalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":80,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo8NotifierC","interfaceLanguage":"swift"},"pathComponents":["Notifier"],"names":{"title":"Notifier","navigator":[{"kind":"identifier","spelling":"Notifier"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Notifier"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Notifier"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":86,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo8NotifierCACycfc","interfaceLanguage":"swift"},"pathComponents":["Notifier","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":88,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo8NotifierC5countSivp","interfaceLanguage":"swift"},"pathComponents":["Notifier","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":89,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC9subscribeyyySSYbcF","interfaceLanguage":"swift"},"pathComponents":["Notifier","subscribe(_:)"],"names":{"title":"subscribe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"subscribe"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"handler","declarationFragments":[{"kind":"identifier","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"subscribe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"handler"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":90,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC7publishyySSF","interfaceLanguage":"swift"},"pathComponents":["Notifier","publish(_:)"],"names":{"title":"publish(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publish"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publish"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":91,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC12publishLateryySSF","interfaceLanguage":"swift"},"pathComponents":["Notifier","publishLater(_:)"],"names":{"title":"publishLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publishLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"message","declarationFragments":[{"kind":"identifier","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"publishLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"message"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":92,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo8NotifierC5clearyyF","interfaceLanguage":"swift"},"pathComponents":["Notifier","clear()"],"names":{"title":"clear()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"()"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":96,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4area2ofSdAA11MeasurementO_tF","interfaceLanguage":"swift"},"pathComponents":["area(of:)"],"names":{"title":"area(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"measurement","declarationFragments":[{"kind":"identifier","spelling":"measurement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"area"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"measurement"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":99,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7measure_2byAA11MeasurementOSd_SdSgtF","interfaceLanguage":"swift"},"pathComponents":["measure(_:by:)"],"names":{"title":"measure(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measure"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"by","internalName":"height","declarationFragments":[{"kind":"identifier","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"height"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":106,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12measurementsSayAA11MeasurementOGyF","interfaceLanguage":"swift"},"pathComponents":["measurements()"],"names":{"title":"measurements()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measurements"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measurements"},{"kind":"text","spelling":"() -> ["},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":111,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12measureLateryAA11MeasurementOSdYaF","interfaceLanguage":"swift"},"pathComponents":["measureLater(_:)"],"names":{"title":"measureLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measureLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"functionSignature":{"parameters":[{"name":"width","declarationFragments":[{"kind":"identifier","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"measureLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"width"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":113,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9onMeasureyyyAA11MeasurementOXEF","interfaceLanguage":"swift"},"pathComponents":["onMeasure(_:)"],"names":{"title":"onMeasure(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onMeasure"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"onMeasure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Measurement","preciseIdentifier":"s:9SwiftDemo11MeasurementO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":118,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7explainySSAA10ShapeErrorOF","interfaceLanguage":"swift"},"pathComponents":["explain(_:)"],"names":{"title":"explain(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"explain"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"explain"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"error"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":120,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7FormulaO","interfaceLanguage":"swift"},"pathComponents":["Formula"],"names":{"title":"Formula","navigator":[{"kind":"identifier","spelling":"Formula"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Formula"}]},"declarationFragments":[{"kind":"keyword","spelling":"indirect"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Formula"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":128,"character":21}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO6numberyACSdcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","number(_:)"],"names":{"title":"Formula.number(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"number"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":129,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO3sumyA2C_ACtcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","sum(_:_:)"],"names":{"title":"Formula.sum(_:_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sum"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":130,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7FormulaO6negateyA2CcACmF","interfaceLanguage":"swift"},"pathComponents":["Formula","negate(_:)"],"names":{"title":"Formula.negate(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"negate"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"negate"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":131,"character":9}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7FormulaO5valueSdvp","interfaceLanguage":"swift"},"pathComponents":["Formula","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":133,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8simplifyyAA7FormulaOADF","interfaceLanguage":"swift"},"pathComponents":["simplify(_:)"],"names":{"title":"simplify(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simplify"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]},"functionSignature":{"parameters":[{"name":"formula","declarationFragments":[{"kind":"identifier","spelling":"formula"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"simplify"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"formula"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Formula","preciseIdentifier":"s:9SwiftDemo7FormulaO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":142,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo7PayloadO","interfaceLanguage":"swift"},"pathComponents":["Payload"],"names":{"title":"Payload","navigator":[{"kind":"identifier","spelling":"Payload"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Payload"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Payload"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":144,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO7trackeryAcA7TrackerCcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","tracker(_:)"],"names":{"title":"Payload.tracker(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracker"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tracker"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":145,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5pointyAcA5PointVcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","point(_:)"],"names":{"title":"Payload.point(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Point","preciseIdentifier":"s:9SwiftDemo5PointV"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":146,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO6flavoryAcA6FlavorOcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","flavor(_:)"],"names":{"title":"Payload.flavor(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flavor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"flavor"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Flavor","preciseIdentifier":"s:9SwiftDemo6FlavorO"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":147,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5maybeyACSiSgcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","maybe(_:)"],"names":{"title":"Payload.maybe(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"maybe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"maybe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":148,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo7PayloadO5namesyACSaySSGcACmF","interfaceLanguage":"swift"},"pathComponents":["Payload","names(_:)"],"names":{"title":"Payload.names(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":149,"character":9}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4echoyAA7PayloadOADF","interfaceLanguage":"swift"},"pathComponents":["echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]},"functionSignature":{"parameters":[{"name":"payload","declarationFragments":[{"kind":"identifier","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"payload"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Payload","preciseIdentifier":"s:9SwiftDemo7PayloadO"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":152,"character":12}}},{"kind":{"identifier":"swift.enum","displayName":"Enumeration"},"identifier":{"precise":"s:9SwiftDemo3JobO","interfaceLanguage":"swift"},"pathComponents":["Job"],"names":{"title":"Job","navigator":[{"kind":"identifier","spelling":"Job"}],"subHeading":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Job"}]},"declarationFragments":[{"kind":"keyword","spelling":"enum"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Job"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":155,"character":12}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo3JobO3runyACyyccACmF","interfaceLanguage":"swift"},"pathComponents":["Job","run(_:)"],"names":{"title":"Job.run(_:)","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"run"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"run"},{"kind":"text","spelling":"(() -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":156,"character":9}}},{"kind":{"identifier":"swift.enum.case","displayName":"Case"},"identifier":{"precise":"s:9SwiftDemo3JobO4idleyA2CmF","interfaceLanguage":"swift"},"pathComponents":["Job","idle"],"names":{"title":"Job.idle","subHeading":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"idle"}]},"declarationFragments":[{"kind":"keyword","spelling":"case"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"idle"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":157,"character":9}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket"],"names":{"title":"Job.Ticket","navigator":[{"kind":"identifier","spelling":"Ticket"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ticket"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Ticket"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":159,"character":18}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV2idSivp","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket","id"],"names":{"title":"id","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":160,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo3JobO6TicketV2idAESi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Job","Ticket","init(id:)"],"names":{"title":"init(id:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":161,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4bumpyySizF","interfaceLanguage":"swift"},"pathComponents":["bump(_:)"],"names":{"title":"bump(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bump"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"bump"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":165,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6append_2toySS_SaySSGztF","interfaceLanguage":"swift"},"pathComponents":["append(_:to:)"],"names":{"title":"append(_:to:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"append"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}]},"functionSignature":{"parameters":[{"name":"word","declarationFragments":[{"kind":"identifier","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"to","internalName":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"append"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"word"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"to"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"])"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":166,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5halveyySizKF","interfaceLanguage":"swift"},"pathComponents":["halve(_:)"],"names":{"title":"halve(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"halve"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"halve"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":167,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5clearyySSSgzF","interfaceLanguage":"swift"},"pathComponents":["clear(_:)"],"names":{"title":"clear(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?)"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"clear"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?)"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":171,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12swapTrackersyyAA7TrackerCz_ADztF","interfaceLanguage":"swift"},"pathComponents":["swapTrackers(_:_:)"],"names":{"title":"swapTrackers(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapTrackers"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapTrackers"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"inout"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Tracker","preciseIdentifier":"s:9SwiftDemo7TrackerC"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":172,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7echoIntyS2iF","interfaceLanguage":"swift"},"pathComponents":["echoInt(_:)"],"names":{"title":"echoInt(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoInt"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":175,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10echoStringyS2SF","interfaceLanguage":"swift"},"pathComponents":["echoString(_:)"],"names":{"title":"echoString(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoString"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echoString"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":176,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo5BenchC","interfaceLanguage":"swift"},"pathComponents":["Bench"],"names":{"title":"Bench","navigator":[{"kind":"identifier","spelling":"Bench"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Bench"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Bench"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":178,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo5BenchC5valueSivp","interfaceLanguage":"swift"},"pathComponents":["Bench","value"],"names":{"title":"value","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":179,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5BenchCACycfc","interfaceLanguage":"swift"},"pathComponents":["Bench","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":180,"character":11}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo5BenchC4echoyS2iFZ","interfaceLanguage":"swift"},"pathComponents":["Bench","echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":181,"character":23}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo5BenchC4echoyS2iF","interfaceLanguage":"swift"},"pathComponents":["Bench","echo(_:)"],"names":{"title":"echo(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"echo"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":182,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9transformySaySSGSaySiG_SSSiXEtF","interfaceLanguage":"swift"},"pathComponents":["transform(_:_:)"],"names":{"title":"transform(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"body","declarationFragments":[{"kind":"identifier","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"transform"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"body"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":186,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11sortedNames_2bySaySSGAD_SbSS_SStXEtF","interfaceLanguage":"swift"},"pathComponents":["sortedNames(_:by:)"],"names":{"title":"sortedNames(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sortedNames"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"names","declarationFragments":[{"kind":"identifier","spelling":"names"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},{"name":"by","internalName":"less","declarationFragments":[{"kind":"identifier","spelling":"less"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sortedNames"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"names"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"less"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":187,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10firstMatch_5whereSiSgSaySiG_SbSiKXEtKF","interfaceLanguage":"swift"},"pathComponents":["firstMatch(_:where:)"],"names":{"title":"firstMatch(_:where:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstMatch"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},{"name":"where","internalName":"predicate","declarationFragments":[{"kind":"identifier","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstMatch"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"], "},{"kind":"externalParam","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"predicate"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":190,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6lookupySiSS_SiSgSSXEtF","interfaceLanguage":"swift"},"pathComponents":["lookup(_:_:)"],"names":{"title":"lookup(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"key","declarationFragments":[{"kind":"identifier","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},{"name":"resolve","declarationFragments":[{"kind":"identifier","spelling":"resolve"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"lookup"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"key"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"resolve"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":193,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF","interfaceLanguage":"swift"},"pathComponents":["computeInBackground(_:)"],"names":{"title":"computeInBackground(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"computeInBackground"},{"kind":"text","spelling":"("},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"provider","declarationFragments":[{"kind":"identifier","spelling":"provider"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"computeInBackground"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"provider"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" () -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":194,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7largestyxSgSayxGSLRzlF","interfaceLanguage":"swift"},"pathComponents":["largest(_:)"],"names":{"title":"largest(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largest"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">(["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Comparable","rhsPrecise":"s:SL"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"largest"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo7largestyxSgSayxGSLRzlF1TL_xmfp"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Comparable","preciseIdentifier":"s:SL"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":199,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF","interfaceLanguage":"swift"},"pathComponents":["repeated(_:times:)"],"names":{"title":"repeated(_:times:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"repeated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"}]},{"name":"times","declarationFragments":[{"kind":"identifier","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"]"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"repeated"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"times"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo8repeated_5timesSayxGx_SitlF1TL_xmfp"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":200,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF","interfaceLanguage":"swift"},"pathComponents":["popCount(_:)"],"names":{"title":"popCount(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popCount"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"parameters":[{"name":"I","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"I","rhs":"FixedWidthInteger","rhsPrecise":"s:s17FixedWidthIntegerP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"popCount"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"I"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"I","preciseIdentifier":"s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF1IL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"I"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"FixedWidthInteger","preciseIdentifier":"s:s17FixedWidthIntegerP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":201,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4zeroxySjRzlF","interfaceLanguage":"swift"},"pathComponents":["zero()"],"names":{"title":"zero()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zero"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"N"},{"kind":"text","spelling":">() -> "},{"kind":"typeIdentifier","spelling":"N","preciseIdentifier":"s:9SwiftDemo4zeroxySjRzlF1NL_xmfp"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"N"}]},"swiftGenerics":{"parameters":[{"name":"N","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"N","rhs":"Numeric","rhsPrecise":"s:Sj"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"zero"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"N"},{"kind":"text","spelling":">() -> "},{"kind":"typeIdentifier","spelling":"N","preciseIdentifier":"s:9SwiftDemo4zeroxySjRzlF1NL_xmfp"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"N"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Numeric","preciseIdentifier":"s:Sj"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":202,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF","interfaceLanguage":"swift"},"pathComponents":["greetTwice(_:_:)"],"names":{"title":"greetTwice(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetTwice"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"G"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"}]},{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"parameters":[{"name":"G","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"G","rhs":"Greeting","rhsPrecise":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetTwice"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"G"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"G","preciseIdentifier":"s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF1GL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"G"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":203,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF","interfaceLanguage":"swift"},"pathComponents":["decodeJSON(_:from:)"],"names":{"title":"decodeJSON(_:from:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"decodeJSON"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"type","declarationFragments":[{"kind":"identifier","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type"}]},{"name":"from","internalName":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"T","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"T","rhs":"Decodable","rhsPrecise":"s:Se"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"decodeJSON"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"T"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"type"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":".Type, "},{"kind":"externalParam","spelling":"from"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"T","preciseIdentifier":"s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF1TL_xmfp"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"T"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Decodable","preciseIdentifier":"s:Se"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":208,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF","interfaceLanguage":"swift"},"pathComponents":["firstElement(_:)"],"names":{"title":"firstElement(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstElement"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"?"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstElement"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":"? "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":211,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6joinedySSx_q_tr0_lF","interfaceLanguage":"swift"},"pathComponents":["joined(_:_:)"],"names":{"title":"joined(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joined"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"first","declarationFragments":[{"kind":"identifier","spelling":"first"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"}]},{"name":"second","declarationFragments":[{"kind":"identifier","spelling":"second"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"parameters":[{"name":"A","index":0,"depth":0},{"name":"B","index":1,"depth":0}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joined"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"A"},{"kind":"text","spelling":", "},{"kind":"genericParameter","spelling":"B"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"first"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"A","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1AL_xmfp"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"second"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"B","preciseIdentifier":"s:9SwiftDemo6joinedySSx_q_tr0_lF1BL_q_mfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":212,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7compactySaySiGSaySiSgGF","interfaceLanguage":"swift"},"pathComponents":["compact(_:)"],"names":{"title":"compact(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compact"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"compact"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":215,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5holesySaySSSgGSiF","interfaceLanguage":"swift"},"pathComponents":["holes(_:)"],"names":{"title":"holes(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"holes"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}]},"functionSignature":{"parameters":[{"name":"count","declarationFragments":[{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"holes"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":216,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11knownScoresySDySSSiSgGADF","interfaceLanguage":"swift"},"pathComponents":["knownScores(_:)"],"names":{"title":"knownScores(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"knownScores"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]},"functionSignature":{"parameters":[{"name":"scores","declarationFragments":[{"kind":"identifier","spelling":"scores"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"knownScores"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"scores"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]) -> ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":217,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6divide_2bySi8quotient_Si9remaindertSi_SitF","interfaceLanguage":"swift"},"pathComponents":["divide(_:by:)"],"names":{"title":"divide(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"divide"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> (quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"by","internalName":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"(quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"divide"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> (quotient"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", remainder"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":220,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8swapPairySS_SitSi_SSt_tF","interfaceLanguage":"swift"},"pathComponents":["swapPair(_:)"],"names":{"title":"swapPair(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapPair"},{"kind":"text","spelling":"(("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")) -> ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"pair","declarationFragments":[{"kind":"identifier","spelling":"pair"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]}],"returns":[{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"swapPair"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"pair"},{"kind":"text","spelling":": ("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")) -> ("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":221,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4plotySSSgSd1x_Sd1ytSgF","interfaceLanguage":"swift"},"pathComponents":["plot(_:)"],"names":{"title":"plot(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"plot"},{"kind":"text","spelling":"((x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"point","declarationFragments":[{"kind":"identifier","spelling":"point"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"plot"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"point"},{"kind":"text","spelling":": (x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":222,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5spansSaySS_SiSgtGyF","interfaceLanguage":"swift"},"pathComponents":["spans()"],"names":{"title":"spans()","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"spans"},{"kind":"text","spelling":"() -> [("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}]},"functionSignature":{"returns":[{"kind":"text","spelling":"[("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"spans"},{"kind":"text","spelling":"() -> [("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?)]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":223,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10uniqueTagsyShySSGSaySSGF","interfaceLanguage":"swift"},"pathComponents":["uniqueTags(_:)"],"names":{"title":"uniqueTags(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"uniqueTags"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"tags","declarationFragments":[{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"uniqueTags"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tags"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) -> "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":224,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11countUniqueySiShySiGF","interfaceLanguage":"swift"},"pathComponents":["countUnique(_:)"],"names":{"title":"countUnique(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUnique"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"countUnique"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":225,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10tallyLateryShySSG6unique_Si5counttSaySSGYaF","interfaceLanguage":"swift"},"pathComponents":["tallyLater(_:)"],"names":{"title":"tallyLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tallyLater"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> (unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"(unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tallyLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":"]) "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> (unique"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">, count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":226,"character":12}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV","interfaceLanguage":"swift"},"pathComponents":["ParseFailure"],"names":{"title":"ParseFailure","navigator":[{"kind":"identifier","spelling":"ParseFailure"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ParseFailure"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"ParseFailure"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":231,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","localizedDescription"],"names":{"title":"localizedDescription","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"docComment":{"module":"Foundation","lines":[{"text":"Retrieve the localized description for this error."}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"localizedDescription"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","availability":[{"domain":"iOS","introduced":{"major":8,"minor":0}},{"domain":"macOS","introduced":{"major":10,"minor":10}},{"domain":"tvOS","introduced":{"major":9,"minor":0}},{"domain":"watchOS","introduced":{"major":2,"minor":0}}]},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV4textSSvp","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","text"],"names":{"title":"text","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":232,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo12ParseFailureV11descriptionSSvp","interfaceLanguage":"swift"},"pathComponents":["ParseFailure","description"],"names":{"title":"description","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"description"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":233,"character":15}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF","interfaceLanguage":"swift"},"pathComponents":["parseNumber(_:)"],"names":{"title":"parseNumber(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseNumber"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseNumber"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":235,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10checkSidesys6ResultOyytAA10ShapeErrorOGSiF","interfaceLanguage":"swift"},"pathComponents":["checkSides(_:)"],"names":{"title":"checkSides(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkSides"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"sides","declarationFragments":[{"kind":"identifier","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"checkSides"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"sides"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"ShapeError","preciseIdentifier":"s:9SwiftDemo10ShapeErrorO"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":239,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF","interfaceLanguage":"swift"},"pathComponents":["unwrap(_:)"],"names":{"title":"unwrap(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unwrap"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"result","declarationFragments":[{"kind":"identifier","spelling":"result"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"unwrap"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"result"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) "},{"kind":"keyword","spelling":"throws"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":242,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo10parseLaterys6ResultOySis5Error_pGSSYaF","interfaceLanguage":"swift"},"pathComponents":["parseLater(_:)"],"names":{"title":"parseLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", any "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"parseLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":243,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9fetchItemyySi_ys6ResultOySSs5Error_pGYbctF","interfaceLanguage":"swift"},"pathComponents":["fetchItem(_:_:)"],"names":{"title":"fetchItem(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetchItem"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"id","declarationFragments":[{"kind":"identifier","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"completion","declarationFragments":[{"kind":"identifier","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"}]}],"returns":[{"kind":"text","spelling":"()"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fetchItem"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"id"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"completion"},{"kind":"text","spelling":": "},{"kind":"attribute","spelling":"@escaping"},{"kind":"text","spelling":" "},{"kind":"attribute","spelling":"@Sendable"},{"kind":"text","spelling":" ("},{"kind":"typeIdentifier","spelling":"Result","preciseIdentifier":"s:s6ResultO"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Void","preciseIdentifier":"s:s4Voida"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":244,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13describeErrorySSs0D0_pSgF","interfaceLanguage":"swift"},"pathComponents":["describeError(_:)"],"names":{"title":"describeError(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeError"},{"kind":"text","spelling":"(("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"error","declarationFragments":[{"kind":"identifier","spelling":"error"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeError"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"error"},{"kind":"text","spelling":": ("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Error","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","spelling":")?) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":249,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8shoutAllySSxSyRzlF","interfaceLanguage":"swift"},"pathComponents":["shoutAll(_:)"],"names":{"title":"shoutAll(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shoutAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some StringProtocol","rhs":"StringProtocol","rhsPrecise":"s:Sy"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"shoutAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"StringProtocol","preciseIdentifier":"s:Sy"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":252,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF","interfaceLanguage":"swift"},"pathComponents":["describeValue(_:)"],"names":{"title":"describeValue(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeValue"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"value","declarationFragments":[{"kind":"identifier","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some CustomStringConvertible","rhs":"CustomStringConvertible","rhsPrecise":"s:s23CustomStringConvertibleP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describeValue"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"value"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"CustomStringConvertible","preciseIdentifier":"s:s23CustomStringConvertibleP"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":253,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF","interfaceLanguage":"swift"},"pathComponents":["greetOnce(_:_:)"],"names":{"title":"greetOnce(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetOnce"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"greeting","declarationFragments":[{"kind":"identifier","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"}]},{"name":"other","declarationFragments":[{"kind":"identifier","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Greeting","rhs":"Greeting","rhsPrecise":"s:9SwiftDemo8GreetingP"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"greetOnce"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"greeting"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Greeting","preciseIdentifier":"s:9SwiftDemo8GreetingP"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"other"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":254,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo9CancelLogC","interfaceLanguage":"swift"},"pathComponents":["CancelLog"],"names":{"title":"CancelLog","navigator":[{"kind":"identifier","spelling":"CancelLog"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CancelLog"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CancelLog"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":257,"character":19}}},{"kind":{"identifier":"swift.type.property","displayName":"Type Property"},"identifier":{"precise":"s:9SwiftDemo9CancelLogC13cancellationsSivpZ","interfaceLanguage":"swift"},"pathComponents":["CancelLog","cancellations"],"names":{"title":"cancellations","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cancellations"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cancellations"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":258,"character":22}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo13waitForCancelySbSdYaF","interfaceLanguage":"swift"},"pathComponents":["waitForCancel(_:)"],"names":{"title":"waitForCancel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"waitForCancel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"functionSignature":{"parameters":[{"name":"seconds","declarationFragments":[{"kind":"identifier","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"waitForCancel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"seconds"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":260,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"s:9SwiftDemo5ShelfC","interfaceLanguage":"swift"},"pathComponents":["Shelf"],"names":{"title":"Shelf","navigator":[{"kind":"identifier","spelling":"Shelf"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shelf"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Shelf"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":271,"character":19}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo5ShelfCACycfc","interfaceLanguage":"swift"},"pathComponents":["Shelf","init()"],"names":{"title":"init()","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}]},"functionSignature":{},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"()"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":273,"character":11}}},{"kind":{"identifier":"swift.subscript","displayName":"Instance Subscript"},"identifier":{"precise":"s:9SwiftDemo5ShelfCySiSgSScip","interfaceLanguage":"swift"},"pathComponents":["Shelf","subscript(_:)"],"names":{"title":"subscript(_:)","subHeading":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"name","declarationFragments":[{"kind":"identifier","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"name"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"? { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":274,"character":11}}},{"kind":{"identifier":"swift.subscript","displayName":"Instance Subscript"},"identifier":{"precise":"s:9SwiftDemo5ShelfCySSSi_Sitcip","interfaceLanguage":"swift"},"pathComponents":["Shelf","subscript(_:_:)"],"names":{"title":"subscript(_:_:)","subHeading":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"row","declarationFragments":[{"kind":"identifier","spelling":"row"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"column","declarationFragments":[{"kind":"identifier","spelling":"column"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"row"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"column"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":278,"character":11}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo4GridV","interfaceLanguage":"swift"},"pathComponents":["Grid"],"names":{"title":"Grid","navigator":[{"kind":"identifier","spelling":"Grid"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Grid"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Grid"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":280,"character":14}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4GridV5cellsSaySiGvp","interfaceLanguage":"swift"},"pathComponents":["Grid","cells"],"names":{"title":"cells","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cells"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"cells"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":281,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo4GridV4sizeACSi_tcfc","interfaceLanguage":"swift"},"pathComponents":["Grid","init(size:)"],"names":{"title":"init(size:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"size","declarationFragments":[{"kind":"identifier","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":282,"character":11}}},{"kind":{"identifier":"swift.subscript","displayName":"Instance Subscript"},"identifier":{"precise":"s:9SwiftDemo4GridVyS2icip","interfaceLanguage":"swift"},"pathComponents":["Grid","subscript(_:)"],"names":{"title":"subscript(_:)","subHeading":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"index","declarationFragments":[{"kind":"identifier","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"subscript"},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"index"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { "},{"kind":"keyword","spelling":"get"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"set"},{"kind":"text","spelling":" }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":283,"character":11}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo7Vector2V","interfaceLanguage":"swift"},"pathComponents":["Vector2"],"names":{"title":"Vector2","navigator":[{"kind":"identifier","spelling":"Vector2"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Vector2"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Vector2"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":291,"character":14}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7Vector2V","interfaceLanguage":"swift"},"pathComponents":["Vector2","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1xSdvp","interfaceLanguage":"swift"},"pathComponents":["Vector2","x"],"names":{"title":"x","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":292,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1ySdvp","interfaceLanguage":"swift"},"pathComponents":["Vector2","y"],"names":{"title":"y","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":293,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc","interfaceLanguage":"swift"},"pathComponents":["Vector2","init(x:y:)"],"names":{"title":"init(x:y:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"x","declarationFragments":[{"kind":"identifier","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"y","declarationFragments":[{"kind":"identifier","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"x"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"y"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":294,"character":11}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ","interfaceLanguage":"swift"},"pathComponents":["Vector2","+(_:_:)"],"names":{"title":"+(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"+"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":295,"character":23}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1sopyA2CFZ","interfaceLanguage":"swift"},"pathComponents":["Vector2","-(_:)"],"names":{"title":"-(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"-"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"functionSignature":{"parameters":[{"name":"vector","declarationFragments":[{"kind":"identifier","spelling":"vector"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"-"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"vector"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":296,"character":30}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ","interfaceLanguage":"swift"},"pathComponents":["Vector2","*(_:_:)"],"names":{"title":"*(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"*"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"functionSignature":{"parameters":[{"name":"scale","declarationFragments":[{"kind":"identifier","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},{"name":"vector","declarationFragments":[{"kind":"identifier","spelling":"vector"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"*"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"scale"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"vector"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Vector2","preciseIdentifier":"s:9SwiftDemo7Vector2V"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":297,"character":23}}},{"kind":{"identifier":"swift.struct","displayName":"Structure"},"identifier":{"precise":"s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version"],"names":{"title":"Version","navigator":[{"kind":"identifier","spelling":"Version"}],"subHeading":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Version"}]},"declarationFragments":[{"kind":"keyword","spelling":"struct"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Version"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":299,"character":14}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsE3zzzoiySNyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","...(_:_:)"],"names":{"title":"...(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ClosedRange","preciseIdentifier":"s:SN"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a closed range that contains both of its bounds."},{"text":""},{"text":"Use the closed range operator (`...`) to create a closed range of any type"},{"text":"that conforms to the `Comparable` protocol. This example creates a"},{"text":"`ClosedRange` from \"a\" up to, and including, \"z\"."},{"text":""},{"text":" let lowercase = \"a\"...\"z\""},{"text":" print(lowercase.contains(\"z\"))"},{"text":" // Prints \"true\""},{"text":""},{"text":"- Parameters:"},{"text":" - minimum: The lower bound for the range."},{"text":" - maximum: The upper bound for the range."},{"text":""},{"text":"- Precondition: `minimum <= maximum`."}]},"functionSignature":{"parameters":[{"name":"minimum","declarationFragments":[{"kind":"identifier","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"maximum","declarationFragments":[{"kind":"identifier","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"ClosedRange","preciseIdentifier":"s:SN"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"ClosedRange","preciseIdentifier":"s:SN"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsRi_zRi0_zrlE1goiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version",">(_:_:)"],"names":{"title":">(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":">"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether the value of the first argument"},{"text":"is greater than that of the second argument."},{"text":""},{"text":"This is the default implementation of the greater-than operator (`>`) for"},{"text":"any type that conforms to `Comparable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":">"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","<=(_:_:)"],"names":{"title":"<=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"<="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether the value of the first argument"},{"text":"is less than or equal to that of the second argument."},{"text":""},{"text":"This is the default implementation of the less-than-or-equal-to"},{"text":"operator (`<=`) for any type that conforms to `Comparable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"<="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version",">=(_:_:)"],"names":{"title":">=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":">="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether the value of the first argument"},{"text":"is greater than or equal to that of the second argument."},{"text":""},{"text":"This is the default implementation of the greater-than-or-equal-to operator"},{"text":"(`>=`) for any type that conforms to `Comparable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."},{"text":"- Returns: `true` if `lhs` is greater than or equal to `rhs`; otherwise,"},{"text":" `false`."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":">="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","!=(_:_:)"],"names":{"title":"!=(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a Boolean value indicating whether two values are not equal."},{"text":""},{"text":"Inequality is the inverse of equality. For any values `a` and `b`, `a != b`"},{"text":"implies that `a == b` is `false`."},{"text":""},{"text":"This is the default implementation of the not-equal-to operator (`!=`)"},{"text":"for any type that conforms to `Equatable`."},{"text":""},{"text":"- Parameters:"},{"text":" - lhs: A value to compare."},{"text":" - rhs: Another value to compare."}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"!="},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"borrowing"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsE3zzloiySnyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","..<(_:_:)"],"names":{"title":"..<(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a half-open range that contains its lower bound but not its upper"},{"text":"bound."},{"text":""},{"text":"Use the half-open range operator (`..<`) to create a range of any type"},{"text":"that conforms to the `Comparable` protocol. This example creates a"},{"text":"`Range` from zero up to, but not including, 5.0."},{"text":""},{"text":" let lessThanFive = 0.0..<5.0"},{"text":" print(lessThanFive.contains(3.14)) // Prints \"true\""},{"text":" print(lessThanFive.contains(5.0)) // Prints \"false\""},{"text":""},{"text":"- Parameters:"},{"text":" - minimum: The lower bound for the range."},{"text":" - maximum: The upper bound for the range."},{"text":""},{"text":"- Precondition: `minimum <= maximum`."}]},"functionSignature":{"parameters":[{"name":"minimum","declarationFragments":[{"kind":"identifier","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]},{"name":"maximum","declarationFragments":[{"kind":"identifier","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Range","preciseIdentifier":"s:Sn"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","..<(_:)"],"names":{"title":"..<(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeUpTo","preciseIdentifier":"s:s16PartialRangeUpToV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a partial range up to, but not including, its upper bound."},{"text":""},{"text":"Use the prefix half-open range operator (prefix `..<`) to create a"},{"text":"partial range of any type that conforms to the `Comparable` protocol."},{"text":"This example creates a `PartialRangeUpTo` instance that includes"},{"text":"any value less than `5.0`."},{"text":""},{"text":" let upToFive = ..<5.0"},{"text":""},{"text":" upToFive.contains(3.14) // true"},{"text":" upToFive.contains(6.28) // false"},{"text":" upToFive.contains(5.0) // false"},{"text":""},{"text":"You can use this type of partial range of a collection's indices to"},{"text":"represent the range from the start of the collection up to, but not"},{"text":"including, the partial range's upper bound."},{"text":""},{"text":" let numbers = [10, 20, 30, 40, 50, 60, 70]"},{"text":" print(numbers[..<3])"},{"text":" // Prints \"[10, 20, 30]\""},{"text":""},{"text":"- Parameter maximum: The upper bound for the range."},{"text":""},{"text":"- Precondition: `maximum` must compare equal to itself (i.e. cannot be NaN)."}]},"functionSignature":{"parameters":[{"name":"maximum","declarationFragments":[{"kind":"identifier","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"PartialRangeUpTo","preciseIdentifier":"s:s16PartialRangeUpToV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeUpTo","preciseIdentifier":"s:s16PartialRangeUpToV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","...(_:)"],"names":{"title":"...(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeThrough","preciseIdentifier":"s:s19PartialRangeThroughV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a partial range up to, and including, its upper bound."},{"text":""},{"text":"Use the prefix closed range operator (prefix `...`) to create a partial"},{"text":"range of any type that conforms to the `Comparable` protocol. This"},{"text":"example creates a `PartialRangeThrough` instance that includes"},{"text":"any value less than or equal to `5.0`."},{"text":""},{"text":" let throughFive = ...5.0"},{"text":""},{"text":" throughFive.contains(4.0) // true"},{"text":" throughFive.contains(5.0) // true"},{"text":" throughFive.contains(6.0) // false"},{"text":""},{"text":"You can use this type of partial range of a collection's indices to"},{"text":"represent the range from the start of the collection up to, and"},{"text":"including, the partial range's upper bound."},{"text":""},{"text":" let numbers = [10, 20, 30, 40, 50, 60, 70]"},{"text":" print(numbers[...3])"},{"text":" // Prints \"[10, 20, 30, 40]\""},{"text":""},{"text":"- Parameter maximum: The upper bound for the range."},{"text":""},{"text":"- Precondition: `maximum` must compare equal to itself (i.e. cannot be NaN)."}]},"functionSignature":{"parameters":[{"name":"maximum","declarationFragments":[{"kind":"identifier","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"PartialRangeThrough","preciseIdentifier":"s:s19PartialRangeThroughV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"maximum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeThrough","preciseIdentifier":"s:s19PartialRangeThroughV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public"},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","interfaceLanguage":"swift"},"pathComponents":["Version","...(_:)"],"names":{"title":"...(_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeFrom","preciseIdentifier":"s:s16PartialRangeFromV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"docComment":{"module":"Swift","lines":[{"text":"Returns a partial range extending upward from a lower bound."},{"text":""},{"text":"Use the postfix range operator (postfix `...`) to create a partial range"},{"text":"of any type that conforms to the `Comparable` protocol. This example"},{"text":"creates a `PartialRangeFrom` instance that includes any value"},{"text":"greater than or equal to `5.0`."},{"text":""},{"text":" let atLeastFive = 5.0..."},{"text":""},{"text":" atLeastFive.contains(4.0) // false"},{"text":" atLeastFive.contains(5.0) // true"},{"text":" atLeastFive.contains(6.0) // true"},{"text":""},{"text":"You can use this type of partial range of a collection's indices to"},{"text":"represent the range from the partial range's lower bound up to the end"},{"text":"of the collection."},{"text":""},{"text":" let numbers = [10, 20, 30, 40, 50, 60, 70]"},{"text":" print(numbers[3...])"},{"text":" // Prints \"[40, 50, 60, 70]\""},{"text":""},{"text":"- Parameter minimum: The lower bound for the range."},{"text":""},{"text":"- Precondition: `minimum` must compare equal to itself (i.e. cannot be NaN)."}]},"functionSignature":{"parameters":[{"name":"minimum","declarationFragments":[{"kind":"identifier","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"}]}],"returns":[{"kind":"typeIdentifier","spelling":"PartialRangeFrom","preciseIdentifier":"s:s16PartialRangeFromV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}]},"swiftExtension":{"extendedModule":"Swift","typeKind":"swift.protocol"},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"..."},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"minimum"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"PartialRangeFrom","preciseIdentifier":"s:s16PartialRangeFromV"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Self"},{"kind":"text","spelling":">"}],"accessLevel":"public"},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7VersionV5majorSivp","interfaceLanguage":"swift"},"pathComponents":["Version","major"],"names":{"title":"major","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"major"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"major"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":300,"character":15}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo7VersionV5minorSivp","interfaceLanguage":"swift"},"pathComponents":["Version","minor"],"names":{"title":"minor","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"minor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":301,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc","interfaceLanguage":"swift"},"pathComponents":["Version","init(major:minor:)"],"names":{"title":"init(major:minor:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"major"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"minor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"major","declarationFragments":[{"kind":"identifier","spelling":"major"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"minor","declarationFragments":[{"kind":"identifier","spelling":"minor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"major"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"minor"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":302,"character":11}}},{"kind":{"identifier":"swift.func.op","displayName":"Operator"},"identifier":{"precise":"s:9SwiftDemo7VersionV1loiySbAC_ACtFZ","interfaceLanguage":"swift"},"pathComponents":["Version","<(_:_:)"],"names":{"title":"<(_:_:)","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"functionSignature":{"parameters":[{"name":"lhs","declarationFragments":[{"kind":"identifier","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"}]},{"name":"rhs","declarationFragments":[{"kind":"identifier","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"<"},{"kind":"text","spelling":" "},{"kind":"text","spelling":"("},{"kind":"internalParam","spelling":"lhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"},{"kind":"text","spelling":", "},{"kind":"internalParam","spelling":"rhs"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Version","preciseIdentifier":"s:9SwiftDemo7VersionV"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Bool","preciseIdentifier":"s:Sb"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":303,"character":23}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF","interfaceLanguage":"swift"},"pathComponents":["sumAll(_:)"],"names":{"title":"sumAll(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sumAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"values","declarationFragments":[{"kind":"identifier","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"constraints":[{"kind":"conformance","lhs":"some Sequence","rhs":"Sequence","rhsPrecise":"s:ST"},{"kind":"sameType","lhs":"(some Sequence).Element","rhs":"Int","rhsPrecise":"s:Si"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"sumAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"values"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":307,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF","interfaceLanguage":"swift"},"pathComponents":["longestWord(_:)"],"names":{"title":"longestWord(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"longestWord"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"words","declarationFragments":[{"kind":"identifier","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF1CL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"parameters":[{"name":"C","index":0,"depth":0}],"constraints":[{"kind":"conformance","lhs":"C","rhs":"Collection","rhsPrecise":"s:Sl"},{"kind":"sameType","lhs":"C.Element","rhs":"String","rhsPrecise":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"longestWord"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"C"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"words"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"C","preciseIdentifier":"s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF1CL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"Collection","preciseIdentifier":"s:Sl"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"C"},{"kind":"text","spelling":"."},{"kind":"typeIdentifier","spelling":"Element","preciseIdentifier":"s:ST7ElementQa"},{"kind":"text","spelling":" == "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":308,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF","interfaceLanguage":"swift"},"pathComponents":["joinAll(_:)"],"names":{"title":"joinAll(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joinAll"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"parts","declarationFragments":[{"kind":"identifier","spelling":"parts"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"joinAll"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"parts"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">) -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":311,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF","interfaceLanguage":"swift"},"pathComponents":["evens(below:)"],"names":{"title":"evens(below:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"evens"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"below"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"functionSignature":{"parameters":[{"name":"below","internalName":"limit","declarationFragments":[{"kind":"identifier","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"text","spelling":"any "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"evens"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"below"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"limit"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"keyword","spelling":"any"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"Sequence","preciseIdentifier":"s:ST"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Values.swift","position":{"line":312,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8describeySSSo6UIViewCF","interfaceLanguage":"swift"},"pathComponents":["describe(_:)"],"names":{"title":"describe(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"describe"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":6,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9makeLabelySo7UILabelCSSF","interfaceLanguage":"swift"},"pathComponents":["makeLabel(_:)"],"names":{"title":"makeLabel(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeLabel"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeLabel"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UILabel","preciseIdentifier":"c:objc(cs)UILabel"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":8,"character":23}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4tagsySaySiGSaySo6UIViewCGF","interfaceLanguage":"swift"},"pathComponents":["tags(_:)"],"names":{"title":"tags(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":"(["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"functionSignature":{"parameters":[{"name":"views","declarationFragments":[{"kind":"identifier","spelling":"views"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]"}]}],"returns":[{"kind":"text","spelling":"["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"views"},{"kind":"text","spelling":": ["},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"]) -> ["},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"]"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":14,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12firstSubview2ofSo6UIViewCSgAE_tF","interfaceLanguage":"swift"},"pathComponents":["firstSubview(of:)"],"names":{"title":"firstSubview(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstSubview"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"firstSubview"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":16,"character":12}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)Note","interfaceLanguage":"swift"},"pathComponents":["Note"],"names":{"title":"Note","navigator":[{"kind":"identifier","spelling":"Note"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":18,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4NoteC4textSSvp","interfaceLanguage":"swift"},"pathComponents":["Note","text"],"names":{"title":"text","subHeading":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"let"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":19,"character":15}}},{"kind":{"identifier":"swift.init","displayName":"Initializer"},"identifier":{"precise":"s:9SwiftDemo4NoteC4textACSS_tcfc","interfaceLanguage":"swift"},"pathComponents":["Note","init(text:)"],"names":{"title":"init(text:)","subHeading":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}]},"declarationFragments":[{"kind":"keyword","spelling":"init"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":")"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":20,"character":11}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo4NoteC4tagsShySSGvp","interfaceLanguage":"swift"},"pathComponents":["Note","tags"],"names":{"title":"tags","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}]},"declarationFragments":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tags"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Set","preciseIdentifier":"s:Sh"},{"kind":"text","spelling":"<"},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":">"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":23,"character":15}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC6taggedyACSSF","interfaceLanguage":"swift"},"pathComponents":["Note","tagged(_:)"],"names":{"title":"tagged(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagged"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"tag","declarationFragments":[{"kind":"identifier","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagged"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"tag"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":24,"character":16}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF","interfaceLanguage":"swift"},"pathComponents":["Note","summary(maxLength:)"],"names":{"title":"summary(maxLength:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"summary"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"maxLength","declarationFragments":[{"kind":"identifier","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"summary"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"maxLength"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":28,"character":16}}},{"kind":{"identifier":"swift.type.method","displayName":"Type Method"},"identifier":{"precise":"s:9SwiftDemo4NoteC5blankACyFZ","interfaceLanguage":"swift"},"pathComponents":["Note","blank()"],"names":{"title":"blank()","subHeading":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blank"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"static"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"blank"},{"kind":"text","spelling":"() -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":29,"character":23}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)Note(py)revision","interfaceLanguage":"swift"},"pathComponents":["Note","revision"],"names":{"title":"revision","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"revision"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@objc"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"revision"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":31,"character":21}}},{"kind":{"identifier":"swift.class","displayName":"Class"},"identifier":{"precise":"c:@M@SwiftDemo@objc(cs)CounterView","interfaceLanguage":"swift"},"pathComponents":["CounterView"],"names":{"title":"CounterView","navigator":[{"kind":"identifier","spelling":"CounterView"}],"subHeading":[{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CounterView"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"final"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"class"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"CounterView"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":35,"character":19}}},{"kind":{"identifier":"swift.property","displayName":"Instance Property"},"identifier":{"precise":"s:9SwiftDemo11CounterViewC5countSivp","interfaceLanguage":"swift"},"pathComponents":["CounterView","count"],"names":{"title":"count","subHeading":[{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"var"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"count"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" { get }"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":36,"character":28}}},{"kind":{"identifier":"swift.method","displayName":"Instance Method"},"identifier":{"precise":"s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF","interfaceLanguage":"swift"},"pathComponents":["CounterView","configure(start:step:)"],"names":{"title":"configure(start:step:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"configure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"start","declarationFragments":[{"kind":"identifier","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},{"name":"step","declarationFragments":[{"kind":"identifier","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"declarationFragments":[{"kind":"attribute","spelling":"@"},{"kind":"attribute","spelling":"MainActor","preciseIdentifier":"s:ScM"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"configure"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"start"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"step"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":37,"character":16}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8makeNoteyAA0D0CSSF","interfaceLanguage":"swift"},"pathComponents":["makeNote(_:)"],"names":{"title":"makeNote(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeNote"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"makeNote"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":43,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo4text2ofSSAA4NoteC_tF","interfaceLanguage":"swift"},"pathComponents":["text(of:)"],"names":{"title":"text(of:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"functionSignature":{"parameters":[{"name":"of","internalName":"note","declarationFragments":[{"kind":"identifier","spelling":"note"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]}],"returns":[{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"of"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"note"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":44,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo9noteLateryAA4NoteCSSYaF","interfaceLanguage":"swift"},"pathComponents":["noteLater(_:)"],"names":{"title":"noteLater(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"noteLater"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"functionSignature":{"parameters":[{"name":"text","declarationFragments":[{"kind":"identifier","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"noteLater"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"text"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"String","preciseIdentifier":"s:SS"},{"kind":"text","spelling":") "},{"kind":"keyword","spelling":"async"},{"kind":"text","spelling":" -> "},{"kind":"typeIdentifier","spelling":"Note","preciseIdentifier":"c:@M@SwiftDemo@objc(cs)Note"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":46,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF","interfaceLanguage":"swift"},"pathComponents":["viewTag(_:)"],"names":{"title":"viewTag(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"viewTag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"parameters":[{"name":"V","index":0,"depth":0}],"constraints":[{"kind":"superclass","lhs":"V","rhs":"UIView","rhsPrecise":"c:objc(cs)UIView"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"viewTag"},{"kind":"text","spelling":"<"},{"kind":"genericParameter","spelling":"V"},{"kind":"text","spelling":">("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"V","preciseIdentifier":"s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF1VL_xmfp"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"},{"kind":"text","spelling":" "},{"kind":"keyword","spelling":"where"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"V"},{"kind":"text","spelling":" : "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":51,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo8midpointySo7CGPointVAD_ADtF","interfaceLanguage":"swift"},"pathComponents":["midpoint(_:_:)"],"names":{"title":"midpoint(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"midpoint"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"midpoint"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGPoint","preciseIdentifier":"c:@S@CGPoint"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":54,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5inset_2bySo6CGRectVAE_So12UIEdgeInsetsVtF","interfaceLanguage":"swift"},"pathComponents":["inset(_:by:)"],"names":{"title":"inset(_:by:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inset"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},"functionSignature":{"parameters":[{"name":"rect","declarationFragments":[{"kind":"identifier","spelling":"rect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},{"name":"by","internalName":"insets","declarationFragments":[{"kind":"identifier","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"inset"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"rect"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"by"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"insets"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"UIEdgeInsets","preciseIdentifier":"c:@S@UIEdgeInsets"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"CGRect","preciseIdentifier":"c:@S@CGRect"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":57,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo7fittingySo6CGSizeVSgAEF","interfaceLanguage":"swift"},"pathComponents":["fitting(_:)"],"names":{"title":"fitting(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fitting"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]},"functionSignature":{"parameters":[{"name":"size","declarationFragments":[{"kind":"identifier","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]}],"returns":[{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"fitting"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"size"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?) -> "},{"kind":"typeIdentifier","spelling":"CGSize","preciseIdentifier":"c:@S@CGSize"},{"kind":"text","spelling":"?"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":58,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo12latitudeSpanySdSo22CLLocationCoordinate2DV_ADtF","interfaceLanguage":"swift"},"pathComponents":["latitudeSpan(_:_:)"],"names":{"title":"latitudeSpan(_:_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"latitudeSpan"},{"kind":"text","spelling":"("},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":", "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"functionSignature":{"parameters":[{"name":"a","declarationFragments":[{"kind":"identifier","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"}]},{"name":"b","declarationFragments":[{"kind":"identifier","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"latitudeSpan"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"a"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":", "},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"b"},{"kind":"text","spelling":": "},{"kind":"typeIdentifier","spelling":"CLLocationCoordinate2D","preciseIdentifier":"c:@S@CLLocationCoordinate2D"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Double","preciseIdentifier":"s:Sd"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":59,"character":12}}},{"kind":{"identifier":"swift.func","displayName":"Function"},"identifier":{"precise":"s:9SwiftDemo5tagOfySixSo6UIViewCRbzlF","interfaceLanguage":"swift"},"pathComponents":["tagOf(_:)"],"names":{"title":"tagOf(_:)","subHeading":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagOf"},{"kind":"text","spelling":"("},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"functionSignature":{"parameters":[{"name":"view","declarationFragments":[{"kind":"identifier","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"}]}],"returns":[{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}]},"swiftGenerics":{"constraints":[{"kind":"superclass","lhs":"some UIView","rhs":"UIView","rhsPrecise":"c:objc(cs)UIView"}]},"declarationFragments":[{"kind":"keyword","spelling":"func"},{"kind":"text","spelling":" "},{"kind":"identifier","spelling":"tagOf"},{"kind":"text","spelling":"("},{"kind":"externalParam","spelling":"_"},{"kind":"text","spelling":" "},{"kind":"internalParam","spelling":"view"},{"kind":"text","spelling":": "},{"kind":"keyword","spelling":"some"},{"kind":"text","spelling":" "},{"kind":"typeIdentifier","spelling":"UIView","preciseIdentifier":"c:objc(cs)UIView"},{"kind":"text","spelling":") -> "},{"kind":"typeIdentifier","spelling":"Int","preciseIdentifier":"s:Si"}],"accessLevel":"public","location":{"uri":"file://Sources/SwiftDemo/Views.swift","position":{"line":62,"character":12}}}],"relationships":[{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.focusedValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.focusedSceneValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins3for5edges9alignmentQrAA18ContentMarginGuideV_AA4EdgeO3SetVAA9AlignmentVSgtF","displayName":"View.contentMargins(for:edges:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6offsetyQrSo6CGSizeVF","displayName":"View.offset(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6offset1x1yQr14CoreFoundation7CGFloatV_AItF","displayName":"View.offset(x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fixedSize10horizontal8verticalQrSb_SbtF","displayName":"View.fixedSize(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fixedSizeQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fixedSizeQryF","displayName":"View.fixedSize()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14rotationEffect_6anchorQrAA5AngleV_AA9UnitPointVtF","displayName":"View.rotationEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrqd___SbtAA011CustomHoverE0Rd__lF","displayName":"View.hoverEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffectyQrAA05HoverE0VF","displayName":"View.hoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hoverEffect_9isEnabledQrAA05HoverE0V_SbtF","displayName":"View.hoverEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrAA0eF0VSgF","displayName":"View.defaultHoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18defaultHoverEffectyQrqd__AA06CustomeF0Rd__lF","displayName":"View.defaultHoverEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19hoverEffectDisabledyQrSbF","displayName":"View.hoverEffectDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundColoryQrAA0E0VSgF","displayName":"View.foregroundColor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11accentColoryQrAA0E0VSgF","displayName":"View.accentColor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue7trigger7content9keyframesQrqd___qd_0_qd_1_AA018PlaceholderContentC0VyxG_qd__tYbcqd_2_qd__ct0G0Qyd_2_Rsd__SQRd_0_AaBRd_1_AA9KeyframesRd_2_r2_lF","displayName":"View.keyframeAnimator(initialValue:trigger:content:keyframes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyframeAnimator12initialValue9repeating7content9keyframesQrqd___Sbqd_0_AA018PlaceholderContentC0VyxG_qd__tYbcqd_1_qd__ct0G0Qyd_1_Rsd__AaBRd_0_AA9KeyframesRd_1_r1_lF","displayName":"View.keyframeAnimator(initialValue:repeating:content:keyframes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQrAA10EdgeInsetsVF","displayName":"View.padding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.padding(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7paddingyQr14CoreFoundation7CGFloatVF","displayName":"View.padding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11glassEffect_2inQrAA5GlassV_qd__tAA5ShapeRd__lF","displayName":"View.glassEffect(_:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21glassEffectTransitionyQrAA05GlasseF0VF","displayName":"View.glassEffectTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onOpenURL12prefersInAppQrSb_tF","displayName":"View.onOpenURL(prefersInApp:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF","displayName":"View.splitArrangementLayoutRatio(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatio13minHorizontal05idealI003maxI00H8Vertical0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF","displayName":"View.splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26splitArrangementLayoutSize8minWidth05idealI003maxI00H6Height0jL00kL0Qr14CoreFoundation7CGFloatVSg_A5NtF","displayName":"View.splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF","displayName":"View.splitArrangementFixedLayoutSize(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10lineHeightyQr10Foundation16AttributedStringV8CoreTextE04LineE0VSgF","displayName":"View.lineHeight(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__AA010AttributedefG0Rd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrqd__m10Foundation14AttributeScopeRd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34attributedTextFormattingDefinitionyQrs7KeyPathCy10Foundation15AttributeScopesOqd__mGAG0K5ScopeRd__lF","displayName":"View.attributedTextFormattingDefinition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16glassEffectUnion2id9namespaceQrqd__Sg_AA9NamespaceV2IDVtSHRd__lF","displayName":"View.glassEffectUnion(id:namespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA08VerticalF0OSgF","displayName":"View.overlayArrangementEdge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayArrangementEdgeyQrAA010HorizontalF0OSgF","displayName":"View.overlayArrangementEdge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16writingDirection8strategyQrAA4TextV07WritingE8StrategyV_tF","displayName":"View.writingDirection(strategy:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE011arrangementC5StyleyQrqd__AA011ArrangementcE0Rd__lF","displayName":"View.arrangementViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22multilineTextAlignment8strategyQrAA0E0V0F8StrategyV_tF","displayName":"View.multilineTextAlignment(strategy:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21containerCornerOffset_9sizeToFitQrAA4EdgeO3SetV_SbtF","displayName":"View.containerCornerOffset(_:sizeToFit:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13glassEffectID_2inQrqd__Sg_AA9NamespaceV0F0VtSHRd__s8SendableRd__lF","displayName":"View.glassEffectID(_:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility5valueAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21sliderThumbVisibilityyQrAA0F0OF","displayName":"View.sliderThumbVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11actionSheet4item7contentQrAA7BindingVyqd__SgG_AA06ActionE0Vqd__XEts12IdentifiableRd__lF","displayName":"View.actionSheet(item:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11actionSheet11isPresented7contentQrAA7BindingVySbG_AA06ActionE0VyXEtF","displayName":"View.actionSheet(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15searchSelectionyQrAA7BindingVyAA04TextE0VSgGF","displayName":"View.searchSelection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20scrollTargetBehavioryQrqd__AA06ScrolleF0Rd__lF","displayName":"View.scrollTargetBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18scrollTargetLayout9isEnabledQrSb_tF","displayName":"View.scrollTargetLayout(isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrAA010CoordinateH0O_yAA0F5PhaseOctF","displayName":"View.onContinuousHover(coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20writingToolsBehavioryQrAA07WritingeF0VF","displayName":"View.writingToolsBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dropDestination3for6action10isTargetedQrqd__m_SbSayqd__G_So7CGPointVtcySbct16CoreTransferable0L0Rd__lF","displayName":"View.dropDestination(for:action:isTargeted:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12searchScopes_6scopesQrAA7BindingVyqd__G_qd_0_yXEtSHRd__AaBRd_0_r0_lF","displayName":"View.searchScopes(_:scopes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12searchScopes_10activation_QrAA7BindingVyqd__G_AA21SearchScopeActivationVqd_0_yXEtSHRd__AaBRd_0_r0_lF","displayName":"View.searchScopes(_:activation:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17selectionDisabledyQrSbF","displayName":"View.selectionDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15statusBarHiddenyQrSbF","displayName":"View.statusBarHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9statusBar6hiddenQrSb_tF","displayName":"View.statusBar(hidden:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12keyboardTypeyQrSo010UIKeyboardE0VF","displayName":"View.keyboardType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18autocapitalizationyQrSo28UITextAutocapitalizationTypeVF","displayName":"View.autocapitalization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9menuOrderyQrAA04MenuE0VF","displayName":"View.menuOrder(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_AA0G6InsetsVAA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins__3forQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgAA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentMargins_3forQr14CoreFoundation7CGFloatV_AA22ContentMarginPlacementVtF","displayName":"View.contentMargins(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrAA4TextVSgF","displayName":"View.sectionIndexLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17sectionIndexLabelyQrqd__SgSyRd__lF","displayName":"View.sectionIndexLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26listSectionIndexVisibilityyQrAA0G0OF","displayName":"View.listSectionIndexVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12defaultFocus__8priorityQrAA0E5StateV7BindingVyqd___G_qd__AA07DefaultE18EvaluationPriorityVtSHRd__lF","displayName":"View.defaultFocus(_:_:priority:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30onScrollTargetVisibilityChange6idType9threshold_Qrqd__m_SdySayqd__GctSHRd__lF","displayName":"View.onScrollTargetVisibilityChange(idType:threshold:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24onScrollVisibilityChange9threshold_QrSd_ySbctF","displayName":"View.onScrollVisibilityChange(threshold:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA4TextVSgtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text11isPresented9placement6promptQrAA7BindingVySSG_AJySbGAA20SearchFieldPlacementVqd__tSyRd__lF","displayName":"View.searchable(text:isPresented:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13searchFocusedyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.searchFocused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13searchFocused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.searchFocused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC5StyleyQrqd__AA010NavigationecF0Rd__lF","displayName":"View.navigationSplitViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE32writingToolsAffordanceVisibilityyQrAA0G0OF","displayName":"View.writingToolsAffordanceVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems7leading8trailingQrqd___qd_0_tAaBRd__AaBRd_0_r0_lF","displayName":"View.navigationBarItems(leading:trailing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems7leadingQrqd___tAaBRd__lF","displayName":"View.navigationBarItems(leading:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarItems8trailingQrqd___tAaBRd__lF","displayName":"View.navigationBarItems(trailing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility6hiddenAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_tF","displayName":"View.accessibility(hidden:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility5labelAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(label:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility4hintAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_tF","displayName":"View.accessibility(hint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF","displayName":"View.accessibility(inputLabels:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility10identifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_tF","displayName":"View.accessibility(identifier:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility19selectionIdentifierAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGs11AnyHashableV_tF","displayName":"View.accessibility(selectionIdentifier:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility12sortPriorityAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSd_tF","displayName":"View.accessibility(sortPriority:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_tF","displayName":"View.accessibility(activationPoint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility15activationPointAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_tF","displayName":"View.accessibility(activationPoint:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20navigationTransitionyQrqd__AA010NavigationE0Rd__lF","displayName":"View.navigationTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22tabBarMinimizeBehavioryQrAA03TabefG0VF","displayName":"View.tabBarMinimizeBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24persistentSystemOverlaysyQrAA10VisibilityOF","displayName":"View.persistentSystemOverlays(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrqd___AA16ToolbarPlacementVdtAA10ShapeStyleRd__lF","displayName":"View.toolbarBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarBackground_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF","displayName":"View.toolbarBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27toolbarBackgroundVisibility_3forQrAA0F0O_AA16ToolbarPlacementVdtF","displayName":"View.toolbarBackgroundVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18toolbarColorScheme_3forQrAA0eF0OSg_AA16ToolbarPlacementVdtF","displayName":"View.toolbarColorScheme(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar_3forQrAA10VisibilityO_AA16ToolbarPlacementVdtF","displayName":"View.toolbar(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17toolbarVisibility_3forQrAA0E0O_AA16ToolbarPlacementVdtF","displayName":"View.toolbarVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22toolbarForegroundStyle_3forQrqd___AA16ToolbarPlacementVdtAA05ShapeF0Rd__lF","displayName":"View.toolbarForegroundStyle(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for9isEnabled4moveQrqd__m_SbyAA17ReorderDifferenceVy2IDQyd__AA37ReorderableSingleCollectionIdentifierVGcts12IdentifiableRd__s8SendableAKRQlF","displayName":"View.reorderContainer(for:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for2in9isEnabled4moveQrqd__m_qd_0_mSbyAA17ReorderDifferenceVy2IDQyd__qd_0_Gcts12IdentifiableRd__SHRd_0_s8SendableRd_0_sAoLRQr0_lF","displayName":"View.reorderContainer(for:in:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_GSbyAA17ReorderDifferenceVyqd_0_AA37ReorderableSingleCollectionIdentifierVGctSHRd_0_s8SendableRd_0_r0_lF","displayName":"View.reorderContainer(for:itemID:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16reorderContainer3for6itemID2in9isEnabled4moveQrqd__m_s7KeyPathCyqd__qd_0_Gqd_1_mSbyAA17ReorderDifferenceVyqd_0_qd_1_GctSHRd_0_s8SendableRd_0_SHRd_1_sAPRd_1_r1_lF","displayName":"View.reorderContainer(for:itemID:in:isEnabled:move:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16pasteDestination3for6action9validatorQrqd__m_ySayqd__GcA2Hct16CoreTransferable0J0Rd__lF","displayName":"View.pasteDestination(for:action:validator:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8cuttable3for6actionQrqd__m_Sayqd__Gyct16CoreTransferable0H0Rd__lF","displayName":"View.cuttable(for:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8copyableyQrSayqd__GyXA16CoreTransferable0F0Rd__lF","displayName":"View.copyable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17searchSuggestionsyQrqd__yXEAaBRd__lF","displayName":"View.searchSuggestions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgqd__yXEtAaBRd__lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVqd__yXEtAaBRd__lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6prompt11suggestionsQrAA7BindingVySSG_AA20SearchFieldPlacementVqd_0_qd__yXEtAaBRd__SyRd_0_r0_lF","displayName":"View.searchable(text:placement:prompt:suggestions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC16SearchActivationyQrAA03TabeF0VF","displayName":"View.tabViewSearchActivation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA4TextVSgqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableASRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_AKy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableAQRQr1_lF","displayName":"View.searchable(text:tokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens9placement6prompt5tokenQrAA7BindingVySSG_AKyqd__GAA20SearchFieldPlacementVqd_0_qd_1_AKy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableAQRQr1_lF","displayName":"View.searchable(text:editableTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_ALy7ElementSTQyd__GctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableASRQr1_lF","displayName":"View.searchable(text:tokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text14editableTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GALySbGAA20SearchFieldPlacementVqd_0_qd_1_ALy7ElementSTQyd__GctSkRd__SmRd__SyRd_0_AaBRd_1_s12IdentifiableASRQr1_lF","displayName":"View.searchable(text:editableTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableATRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_s12IdentifiableAURQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens9placement6prompt5tokenQrAA7BindingVySSG_ALyqd__GAnA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableARRQr1_lF","displayName":"View.searchable(text:tokens:suggestedTokens:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA4TextVSgqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVAA18LocalizedStringKeyVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAVRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVqd_0_7ElementSTQyd__ctSkRd__SmRd__AaBRd_0_s12IdentifiableAWRQr0_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text6tokens15suggestedTokens11isPresented9placement6prompt5tokenQrAA7BindingVySSG_AMyqd__GAoMySbGAA20SearchFieldPlacementVqd_1_qd_0_7ElementSTQyd__ctSMRd__SkRd__SmRd__AaBRd_0_SyRd_1_s12IdentifiableATRQr1_lF","displayName":"View.searchable(text:tokens:suggestedTokens:isPresented:placement:prompt:token:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19defaultScrollAnchoryQrAA9UnitPointVSgF","displayName":"View.defaultScrollAnchor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19defaultScrollAnchor_3forQrAA9UnitPointVSg_AA0eF4RoleVtF","displayName":"View.defaultScrollAnchor(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffectQryF","displayName":"View.backgroundExtensionEffect()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundExtensionEffect9isEnabledQrSb_tF","displayName":"View.backgroundExtensionEffect(isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollIndicators_4axesQrAA25ScrollIndicatorVisibilityV_AA4AxisO3SetVtF","displayName":"View.scrollIndicators(_:axes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollEdgeEffectStyle_3forQrAA06ScrollefG0VSg_AA0E0O3SetVtF","displayName":"View.scrollEdgeEffectStyle(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22scrollEdgeEffectHidden_3forQrSb_AA0E0O3SetVtF","displayName":"View.scrollEdgeEffectHidden(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19scrollInputBehavior_3forQrAA06ScrolleF0V_AA0hE4KindVtF","displayName":"View.scrollInputBehavior(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash7triggerQrqd___tSQRd__lF","displayName":"View.scrollIndicatorsFlash(trigger:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21scrollIndicatorsFlash8onAppearQrSb_tF","displayName":"View.scrollIndicatorsFlash(onAppear:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollDisabledyQrSbF","displayName":"View.scrollDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18scrollClipDisabledyQrSbF","displayName":"View.scrollClipDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23scrollDismissesKeyboardyQrAA06ScrolleF4ModeVF","displayName":"View.scrollDismissesKeyboard(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20scrollBounceBehavior_4axesQrAA06ScrolleF0V_AA4AxisO3SetVtF","displayName":"View.scrollBounceBehavior(_:axes:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19containerBackground_3forQrqd___AA09ContainerE9PlacementVtAA10ShapeStyleRd__lF","displayName":"View.containerBackground(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19containerBackground3for9alignment7contentQrAA09ContainerE9PlacementV_AA9AlignmentVqd__yXEtAaBRd__lF","displayName":"View.containerBackground(for:alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26documentBrowserContextMenuyQrqd__Say10Foundation3URLVGSgcAaBRd__lF","displayName":"View.documentBrowserContextMenu(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AFtcF","displayName":"View.onScrollPhaseChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19onScrollPhaseChangeyQryAA0eF0O_AfA0efG7ContextVtcF","displayName":"View.onScrollPhaseChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22onScrollGeometryChange3for2of6actionQrqd__m_qd__AA0eF0Vcyqd___qd__tctSQRd__lF","displayName":"View.onScrollGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewBottomAccessory(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC15BottomAccessory9isEnabled7contentQrSb_qd__yXEtAaBRd__lF","displayName":"View.tabViewBottomAccessory(isEnabled:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25menuActionDismissBehavioryQrAA04MenuefG0VF","displayName":"View.menuActionDismissBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20asyncImageURLSessionyQrSo12NSURLSessionCF","displayName":"View.asyncImageURLSession(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17searchSuggestions_3forQrAA10VisibilityO_AA06SearchE9PlacementV3SetVtF","displayName":"View.searchSuggestions(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.matchedTransitionSource(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23matchedTransitionSource2id2in13configurationQrqd___AA9NamespaceV2IDVqd_0_AA012EmptyMatchedeF13ConfigurationVXEtSHRd__AA0mefN0Rd_0_r0_lF","displayName":"View.matchedTransitionSource(id:in:configuration:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocumentyQrqd__16CoreTransferable0G0Rd__lF","displayName":"View.navigationDocument(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOAIGt16CoreTransferable0K0Rd__lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVys5NeverOqd_0_Gt16CoreTransferable0K0Rd__AkLRd_0_r0_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_s5NeverOGt16CoreTransferable0K0Rd__AkLRd_0_r0_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocument_7previewQrqd___AA12SharePreviewVyqd_0_qd_1_Gt16CoreTransferable0J0Rd__AiJRd_0_AiJRd_1_r1_lF","displayName":"View.navigationDocument(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationDocumentyQr10Foundation3URLVF","displayName":"View.navigationDocument(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar8removingQrAA22ToolbarDefaultItemKindVSg_tF","displayName":"View.toolbar(removing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaBar(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11safeAreaBar4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaBar(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA7BindingVySSGF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20defersSystemGestures2onQrAA4EdgeO3SetV_tF","displayName":"View.defersSystemGestures(on:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15textContentTypeyQrSo06UITexteF0aSgF","displayName":"View.textContentType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16toolbarTitleMenu7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbarTitleMenu(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33searchPresentationToolbarBehavioryQrAA06SearchefG0VF","displayName":"View.searchPresentationToolbarBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21searchToolbarBehavioryQrAA06SearcheF0VF","displayName":"View.searchToolbarBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23searchDictationBehavioryQrAA09TextInputeF0VF","displayName":"View.searchDictationBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF","displayName":"View.focusedValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12focusedValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF","displayName":"View.focusedValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_qd__tlF","displayName":"View.focusedSceneValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17focusedSceneValueyQrs15WritableKeyPathCyAA13FocusedValuesVqd__SgG_AItlF","displayName":"View.focusedSceneValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23toolbarTitleDisplayModeyQrAA07ToolbarefG0VF","displayName":"View.toolbarTitleDisplayMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF","displayName":"View.autocorrectionDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21disableAutocorrectionyQrSbSgF","displayName":"View.disableAutocorrection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollPosition_6anchorQrAA7BindingVyAA06ScrollE0VG_AA9UnitPointVSgtF","displayName":"View.scrollPosition(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14scrollPosition2id6anchorQrAA7BindingVyqd__SgG_AA9UnitPointVSgtSHRd__lF","displayName":"View.scrollPosition(id:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9focusableyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9focusableyQrSbF","displayName":"View.focusable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9focusable_12interactionsQrSb_AA17FocusInteractionsVtF","displayName":"View.focusable(_:interactions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19focusEffectDisabledyQrSbF","displayName":"View.focusEffectDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16labelsVisibilityyQrAA0E0OF","displayName":"View.labelsVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11toolbarRoleyQrAA07ToolbarE0VF","displayName":"View.toolbarRole(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility9addTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF","displayName":"View.accessibility(addTraits:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13accessibility12removeTraitsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0V_tF","displayName":"View.accessibility(removeTraits:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_AA010CoordinateI0OySo7CGPointVctF","displayName":"View.onTapGesture(count:coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace7performQrSi_qd__ySo7CGPointVctAA010CoordinateI8ProtocolRd__lF","displayName":"View.onTapGesture(count:coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30interactionActivityTrackingTagyQrSSF","displayName":"View.interactionActivityTrackingTag(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12renameActionyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.renameAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12renameActionyQryycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12renameActionyQryycF","displayName":"View.renameAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19toolbarOverflowMenu7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbarOverflowMenu(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20onDragSessionUpdatedyQryAA0eF0VcF","displayName":"View.onDragSessionUpdated(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17dragConfigurationyQrAA04DragE0VF","displayName":"View.dragConfiguration(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9blendModeyQrAA05BlendE0OF","displayName":"View.blendMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16privacySensitiveyQrSbF","displayName":"View.privacySensitive(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8contrastyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8contrastyQrSdF","displayName":"View.contrast(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21matchedGeometryEffect2id2in10properties6anchor8isSourceQrqd___AA9NamespaceV2IDVAA07MatchedE10PropertiesVAA9UnitPointVSbtSHRd__lF","displayName":"View.matchedGeometryEffect(id:in:properties:anchor:isSource:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11environmentyQrs15WritableKeyPathCyAA17EnvironmentValuesVqd__G_qd__tlF","displayName":"View.environment(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_9alignmentQrqd___AA9AlignmentVtAaBRd__lF","displayName":"View.overlay(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6border_5widthQrqd___14CoreFoundation7CGFloatVtAA10ShapeStyleRd__lF","displayName":"View.border(_:width:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.overlay(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF","displayName":"View.overlay(_:ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7overlay_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF","displayName":"View.overlay(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12buttonSizingyQrAA06ButtonE0VF","displayName":"View.buttonSizing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF","displayName":"View.blur(radius:opaque:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorInvertQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorInvertQryF","displayName":"View.colorInvert()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9grayscaleyQrSdF","displayName":"View.grayscale(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16rotation3DEffect_4axis6anchor0G1Z11perspectiveQrAA5AngleV_14CoreFoundation7CGFloatV1x_AM1yAM1ztAA9UnitPointVA2MtF","displayName":"View.rotation3DEffect(_:axis:anchor:anchorZ:perspective:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23layoutDirectionBehavioryQrAA06LayouteF0OF","displayName":"View.layoutDirectionBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7opacityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7opacityyQrSdF","displayName":"View.opacity(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6shadow5color6radius1x1yQrAA5ColorV_14CoreFoundation7CGFloatVA2MtF","displayName":"View.shadow(color:radius:x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12drawingGroup6opaque9colorModeQrSb_AA014ColorRenderingH0OtF","displayName":"View.drawingGroup(opaque:colorMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10brightnessyQrSdF","displayName":"View.brightness(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13geometryGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13geometryGroupQryF","displayName":"View.geometryGroup()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17environmentObjectyQrqd__7Combine010ObservableE0Rd__lF","displayName":"View.environmentObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4mask9alignment_QrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.mask(alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4maskyQrqd__AaBRd__lF","displayName":"View.mask(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21edgesIgnoringSafeAreayQrAA4EdgeO3SetVF","displayName":"View.edgesIgnoringSafeArea(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16compositingGroupQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16compositingGroupQryF","displayName":"View.compositingGroup()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8positionyQrSo7CGPointVF","displayName":"View.position(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8position1x1yQr14CoreFoundation7CGFloatV_AItF","displayName":"View.position(x:y:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE32accessibilityIgnoresInvertColorsyQrSbF","displayName":"View.accessibilityIgnoresInvertColors(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9underline_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF","displayName":"View.underline(_:pattern:color:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13strikethrough_7pattern5colorQrSb_AA4TextV9LineStyleV7PatternVAA5ColorVSgtF","displayName":"View.strikethrough(_:pattern:color:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31speechAlwaysIncludesPunctuationyQrSbF","displayName":"View.speechAlwaysIncludesPunctuation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25speechSpellsOutCharactersyQrSbF","displayName":"View.speechSpellsOutCharacters(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19speechAdjustedPitchyQrSdF","displayName":"View.speechAdjustedPitch(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25speechAnnouncementsQueuedyQrSbF","displayName":"View.speechAnnouncementsQueued(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd__ctSQRd__lF","displayName":"View.onGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16onGeometryChange3for2of6actionQrqd__m_qd__AA0E5ProxyVcyqd___qd__tctSQRd__lF","displayName":"View.onGeometryChange(for:of:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8redacted6reasonQrAA16RedactionReasonsV_tF","displayName":"View.redacted(reason:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10unredactedQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10unredactedQryF","displayName":"View.unredacted()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11controlSizeyQrAA07ControlE0OF","displayName":"View.controlSize(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24materialActiveAppearanceyQrAA08MaterialeF0VF","displayName":"View.materialActiveAppearance(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15transformEffectyQrSo17CGAffineTransformVF","displayName":"View.transformEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15coordinateSpace4nameQrqd___tSHRd__lF","displayName":"View.coordinateSpace(name:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15coordinateSpaceyQrAA015NamedCoordinateE0VF","displayName":"View.coordinateSpace(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19symbolRenderingModeyQrAA06SymboleF0VSgF","displayName":"View.symbolRenderingMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23symbolVariableValueModeyQrAA06SymbolefG0VSgF","displayName":"View.symbolVariableValueMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24symbolColorRenderingModeyQrAA06SymbolefG0VSgF","displayName":"View.symbolColorRenderingMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorEffect_9isEnabledQrAA6ShaderV_SbtF","displayName":"View.colorEffect(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16distortionEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF","displayName":"View.distortionEffect(_:maxSampleOffset:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11layerEffect_15maxSampleOffset9isEnabledQrAA6ShaderV_So6CGSizeVSbtF","displayName":"View.layerEffect(_:maxSampleOffset:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQr14CoreFoundation7CGFloatVSg_AA07ContentG0OtF","displayName":"View.aspectRatio(_:contentMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11aspectRatio_11contentModeQrSo6CGSizeV_AA07ContentG0OtF","displayName":"View.aspectRatio(_:contentMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaledToFitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaledToFitQryF","displayName":"View.scaledToFit()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scaledToFillQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scaledToFillQryF","displayName":"View.scaledToFill()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.overlayPreferenceValue(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValue_9alignment_Qrqd__m_AA9AlignmentVqd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.backgroundPreferenceValue(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22overlayPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.overlayPreferenceValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25backgroundPreferenceValueyQrqd__m_qd_0_0F0Qyd__ctAA0E3KeyRd__AaBRd_0_r0_lF","displayName":"View.backgroundPreferenceValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6zIndexyQrSdF","displayName":"View.zIndex(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11layoutValue3key5valueQrqd__m_0E0Qyd__tAA06LayoutE3KeyRd__lF","displayName":"View.layoutValue(key:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22multilineTextAlignmentyQrAA0eF0OF","displayName":"View.multilineTextAlignment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14truncationModeyQrAA4TextV010TruncationE0OF","displayName":"View.truncationMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11lineSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.lineSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16allowsTighteningyQrSbF","displayName":"View.allowsTightening(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18minimumScaleFactoryQr14CoreFoundation7CGFloatVF","displayName":"View.minimumScaleFactor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8textCaseyQrAA4TextV0E0OSgF","displayName":"View.textCase(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQr10Foundation6LocaleV0E0V_SbtF","displayName":"View.typesettingLanguage(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19typesettingLanguage_9isEnabledQrAA011TypesettingE0V_SbtF","displayName":"View.typesettingLanguage(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9lineLimityQrSiSgF","displayName":"View.lineLimit(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9lineLimit_13reservesSpaceQrSi_SbtF","displayName":"View.lineLimit(_:reservesSpace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA19HorizontalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF","displayName":"View.alignmentGuide(_:computeValue:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14alignmentGuide_12computeValueQrAA17VerticalAlignmentV_14CoreFoundation7CGFloatVAA0C10DimensionsVctF","displayName":"View.alignmentGuide(_:computeValue:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15backgroundStyleyQrqd__AA05ShapeE0Rd__lF","displayName":"View.backgroundStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd__AA05ShapeE0Rd__lF","displayName":"View.foregroundStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_tAA05ShapeE0Rd__AaERd_0_r0_lF","displayName":"View.foregroundStyle(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15foregroundStyleyQrqd___qd_0_qd_1_tAA05ShapeE0Rd__AaERd_0_AaERd_1_r1_lF","displayName":"View.foregroundStyle(_:_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19transformPreferenceyQrqd__m_y5ValueQyd__zctAA0E3KeyRd__lF","displayName":"View.transformPreference(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10preference3key5valueQrqd__m_5ValueQyd__tAA13PreferenceKeyRd__lF","displayName":"View.preference(key:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16luminanceToAlphaQryF","displayName":"View.luminanceToAlpha()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignmentQrAA4AxisO3SetV_AA9AlignmentVtF","displayName":"View.containerRelativeFrame(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_5count4span7spacing9alignmentQrAA4AxisO3SetV_S2i14CoreFoundation7CGFloatVAA9AlignmentVtF","displayName":"View.containerRelativeFrame(_:count:span:spacing:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22containerRelativeFrame_9alignment_QrAA4AxisO3SetV_AA9AlignmentV14CoreFoundation7CGFloatVAN_AGtctF","displayName":"View.containerRelativeFrame(_:alignment:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onAppear7performQryycSg_tF","displayName":"View.onAppear(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11onDisappear7performQryycSg_tF","displayName":"View.onDisappear(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20transformEnvironment_0D0Qrs15WritableKeyPathCyAA0E6ValuesVqd__G_yqd__zctlF","displayName":"View.transformEnvironment(_:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE3tag_15includeOptionalQrqd___SbtSHRd__lF","displayName":"View.tag(_:includeOptional:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dynamicTypeSizeyQrAA07DynamiceF0OF","displayName":"View.dynamicTypeSize(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerValueyQrs15WritableKeyPathCyAA15ContainerValuesVqd__G_qd__tlF","displayName":"View.containerValue(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16anchorPreference3key5value9transformQrqd_0_m_AA6AnchorV6SourceVyqd___G5ValueQyd_0_AIyqd__GctAA0E3KeyRd_0_r0_lF","displayName":"View.anchorPreference(key:value:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frame5width6height9alignmentQr14CoreFoundation7CGFloatVSg_AkA9AlignmentVtF","displayName":"View.frame(width:height:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frameQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frameQryF","displayName":"View.frame()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5frame8minWidth05idealF003maxF00E6Height0gI00hI09alignmentQr14CoreFoundation7CGFloatVSg_A5oA9AlignmentVtF","displayName":"View.frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12textRendereryQrqd__AA04TextE0Rd__lF","displayName":"View.textRenderer(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9textScale_9isEnabledQrAA4TextV0E0V_SbtF","displayName":"View.textScale(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12contentShape_6eoFillQrqd___SbtAA0E0Rd__lF","displayName":"View.contentShape(_:eoFill:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12contentShape__6eoFillQrAA07ContentE5KindsV_qd__SbtAA0E0Rd__lF","displayName":"View.contentShape(_:_:eoFill:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF","displayName":"View.symbolEffect(_:options:isActive:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12symbolEffect_7options5valueQrqd___7Symbols06SymbolE7OptionsVqd_0_tAG08DiscreteiE0Rd__AG0iE0Rd__SQRd_0_r0_lF","displayName":"View.symbolEffect(_:options:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animation_5valueQrAA9AnimationVSg_qd__tSQRd__lF","displayName":"View.animation(_:value:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA018RoundedRectangularE0Rd__lF","displayName":"View.containerShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7performQrqd___yqd__ctSQRd__lF","displayName":"View.onChange(of:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___Sbyqd___qd__tctSQRd__lF","displayName":"View.onChange(of:initial:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onChange2of7initial_Qrqd___SbyyctSQRd__lF","displayName":"View.onChange(of:initial:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentVieweryQrqd__yXEAaBRd__lF","displayName":"View.accessibilityShowsLargeContentViewer(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF","displayName":"View.accessibilityShowsLargeContentViewer()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14containerShapeyQrqd__AA010InsettableE0Rd__lF","displayName":"View.containerShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13phaseAnimator_7trigger7content9animationQrqd_0__qd_1_qd_2_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_SQRd_1_AaBRd_2_r2_lF","displayName":"View.phaseAnimator(_:trigger:content:animation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13phaseAnimator_7content9animationQrqd_0__qd_1_AA018PlaceholderContentC0VyxG_qd__tcAA9AnimationVSgqd__ctSQRd__7ElementQyd_0_Rsd__STRd_0_AaBRd_1_r1_lF","displayName":"View.phaseAnimator(_:content:animation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count7performQrSi_yyctF","displayName":"View.onTapGesture(count:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14layoutPriorityyQrSdF","displayName":"View.layoutPriority(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11environmentyQrqd__SgRld__C11Observation10ObservableRd__lF","displayName":"View.environment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onPreferenceChange_7performQrqd__m_y5ValueQyd__ctAA0E3KeyRd__SQAGRQlF","displayName":"View.onPreferenceChange(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16headerProminenceyQrAA0E0OF","displayName":"View.headerProminence(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8modifieryAA15ModifiedContentVyxqd__Gqd__lF","displayName":"View.modifier(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19allowedDynamicRangeyQrAA5ImageV0eF0VSgF","displayName":"View.allowedDynamicRange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13symbolVariantyQrAA14SymbolVariantsVF","displayName":"View.symbolVariant(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_9alignmentQrqd___AA9AlignmentVtAaBRd__lF","displayName":"View.background(_:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.background(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background20ignoresSafeAreaEdgesQrAA4EdgeO3SetV_tF","displayName":"View.background(ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_20ignoresSafeAreaEdgesQrqd___AA4EdgeO3SetVtAA10ShapeStyleRd__lF","displayName":"View.background(_:ignoresSafeAreaEdges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA5ShapeRd__lF","displayName":"View.background(in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA0I0Rd_0_r0_lF","displayName":"View.background(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background2in9fillStyleQrqd___AA04FillG0VtAA15InsettableShapeRd__lF","displayName":"View.background(in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10background_2in9fillStyleQrqd___qd_0_AA04FillG0VtAA05ShapeG0Rd__AA010InsettableI0Rd_0_r0_lF","displayName":"View.background(_:in:fillStyle:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17contentTransitionyQrAA07ContentE0VF","displayName":"View.contentTransition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12visualEffectyQrqd__AA011EmptyVisualE0V_AA13GeometryProxyVtYbcAA0gE0Rd__lF","displayName":"View.visualEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10saturationyQrSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10saturationyQrSdF","displayName":"View.saturation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edgesQrAA0eF7RegionsV_AA4EdgeO3SetVtF","displayName":"View.ignoresSafeArea(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15ignoresSafeArea_5edges9alignmentQrAA0eF7RegionsV_AA4EdgeO3SetVAA9AlignmentVSgtF","displayName":"View.ignoresSafeArea(_:edges:alignment:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16allowsHitTestingyQrSbF","displayName":"View.allowsHitTesting(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10imageScaleyQrAA5ImageV0E0OF","displayName":"View.imageScale(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4fontyQrAA4FontVSgF","displayName":"View.font(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15monospacedDigitQryF","displayName":"View.monospacedDigit()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10monospacedyQrSbF","displayName":"View.monospaced(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10fontWeightyQrAA4FontV0E0VSgF","displayName":"View.fontWeight(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fontWidthyQrAA4FontV0E0VSgF","displayName":"View.fontWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4boldyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4boldyQrSbF","displayName":"View.bold(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6italicyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6italicyQrSbF","displayName":"View.italic(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10fontDesignyQrAA4FontV0E0OSgF","displayName":"View.fontDesign(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7kerningyQr14CoreFoundation7CGFloatVF","displayName":"View.kerning(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8trackingyQr14CoreFoundation7CGFloatVF","displayName":"View.tracking(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14baselineOffsetyQr14CoreFoundation7CGFloatVF","displayName":"View.baselineOffset(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13colorMultiplyyQrAA5ColorVF","displayName":"View.colorMultiply(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25transformAnchorPreference3key5value0D0Qrqd_0_m_AA0E0V6SourceVyqd___Gy5ValueQyd_0_z_AIyqd__GtctAA0F3KeyRd_0_r0_lF","displayName":"View.transformAnchorPreference(key:value:transform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9clipShape_5styleQrqd___AA9FillStyleVtAA0E0Rd__lF","displayName":"View.clipShape(_:style:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF","displayName":"View.clipped(antialiased:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12cornerRadius_11antialiasedQr14CoreFoundation7CGFloatV_SbtF","displayName":"View.cornerRadius(_:antialiased:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transactionyQryAA11TransactionVzcF","displayName":"View.transaction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transaction5value_Qrqd___yAA11TransactionVzctSQRd__lF","displayName":"View.transaction(value:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animationyQrAA9AnimationVSgF","displayName":"View.animation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11transaction_4bodyQryAA11TransactionVzc_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF","displayName":"View.transaction(_:body:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9animation_4bodyQrAA9AnimationVSg_qd__AA018PlaceholderContentC0VyxGXEtAaBRd__lF","displayName":"View.animation(_:body:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE2idyQrqd__SHRd__lF","displayName":"View.id(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11colorSchemeyQrAA05ColorE0OF","displayName":"View.colorScheme(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20preferredColorSchemeyQrAA0eF0OSgF","displayName":"View.preferredColorScheme(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13onHingeChange9isEnabled_QrSb_yAA06DeviceE7ContextV_AGtctF","displayName":"View.onHingeChange(isEnabled:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_9includingQrqd___AA11GestureMaskVtAA0F0Rd__lF","displayName":"View.gesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9includingQrqd___AA0F4MaskVtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9includingQrqd___AA0E4MaskVtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:including:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_9isEnabledQrqd___SbtAA7GestureRd__lF","displayName":"View.gesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_9isEnabledQrqd___SbtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_9isEnabledQrqd___SbtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gesture_4name9isEnabledQrqd___SSSbtAA7GestureRd__lF","displayName":"View.gesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19highPriorityGesture_4name9isEnabledQrqd___SSSbtAA0F0Rd__lF","displayName":"View.highPriorityGesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19simultaneousGesture_4name9isEnabledQrqd___SSSbtAA0E0Rd__lF","displayName":"View.simultaneousGesture(_:name:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQrSo6CGSizeV_AA9UnitPointVtF","displayName":"View.scaleEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect_6anchorQr14CoreFoundation7CGFloatV_AA9UnitPointVtF","displayName":"View.scaleEffect(_:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11scaleEffect1x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF","displayName":"View.scaleEffect(x:y:anchor:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA12VerticalEdgeO_AA19HorizontalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaInset(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13safeAreaInset4edge9alignment7spacing7contentQrAA14HorizontalEdgeO_AA17VerticalAlignmentV14CoreFoundation7CGFloatVSgqd__yXEtAaBRd__lF","displayName":"View.safeAreaInset(edge:alignment:spacing:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA10EdgeInsetsVF","displayName":"View.safeAreaPadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.safeAreaPadding(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15safeAreaPaddingyQr14CoreFoundation7CGFloatVF","displayName":"View.safeAreaPadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4tintyQrAA5ColorVSgF","displayName":"View.tint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11hueRotationyQrAA5AngleVF","displayName":"View.hueRotation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20textInputBorderShapeyQrAA04TextefG0VF","displayName":"View.textInputBorderShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10transitionyQrAA13AnyTransitionVF","displayName":"View.transition(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValue_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityValue(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityValueyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityValue(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.navigationSplitViewColumnWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE015navigationSplitC11ColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF","displayName":"View.navigationSplitViewColumnWidth(min:ideal:max:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityLinkedGroup2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityLinkedGroup(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityLabeledPair4role2id2inQrAA013AccessibilityeF4RoleO_qd__AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityLabeledPair(role:id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19handGestureShortcut_9isEnabledQrAA04HandeF0V_SbtF","displayName":"View.handGestureShortcut(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVF","displayName":"View.scenePadding(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12scenePadding_5edgesQrAA05SceneE0V_AA4EdgeO3SetVtF","displayName":"View.scenePadding(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9listStyleyQrqd__AA04ListE0Rd__lF","displayName":"View.listStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF","displayName":"View.accessibilityActions(category:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityLabel(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabel7contentQrqd__AA018PlaceholderContentC0VyxGXE_tAaBRd__lF","displayName":"View.accessibilityLabel(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityLabelyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA04EdgeF0VSgF","displayName":"View.listRowInsets(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13listRowInsetsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.listRowInsets(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10dialogIconyQrAA5ImageVSgF","displayName":"View.dialogIcon(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert4item7contentQrAA7BindingVyqd__SgG_AA5AlertVqd__XEts12IdentifiableRd__lF","displayName":"View.alert(item:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented7contentQrAA7BindingVySbG_AA5AlertVyXEtF","displayName":"View.alert(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination3for11destinationQrqd__m_qd_0_qd__ctSHRd__AaBRd_0_r0_lF","displayName":"View.navigationDestination(for:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination11isPresented11destinationQrAA7BindingVySbG_qd__yXEtAaBRd__lF","displayName":"View.navigationDestination(isPresented:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21navigationDestination4item11destinationQrAA7BindingVyqd__SgG_qd_0_qd__ctSHRd__AaBRd_0_r0_lF","displayName":"View.navigationDestination(item:destination:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13textSelectionyQrqd__AA17TextSelectabilityRd__lF","displayName":"View.textSelection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29accessibilityAdjustableActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0I19AdjustmentDirectionOcF","displayName":"View.accessibilityAdjustableAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityTextContentTypeyAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0iefG0VF","displayName":"View.accessibilityTextContentType(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityHeadingyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE5LevelOF","displayName":"View.accessibilityHeading(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsyQrSbSgF","displayName":"View.allowsWindowActivationEvents(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28allowsWindowActivationEventsQryF","displayName":"View.allowsWindowActivationEvents()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7triggerQrAA07SensoryE0V_qd__tSQRd__lF","displayName":"View.sensoryFeedback(_:trigger:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback_7trigger9conditionQrAA07SensoryE0V_qd__Sbqd___qd__tctSQRd__lF","displayName":"View.sensoryFeedback(_:trigger:condition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgqd___qd__tctSQRd__lF","displayName":"View.sensoryFeedback(trigger:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15sensoryFeedback7trigger_Qrqd___AA07SensoryE0VSgyctSQRd__lF","displayName":"View.sensoryFeedback(trigger:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSay22UniformTypeIdentifiers6UTTypeVG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSay22UniformTypeIdentifiers6UTTypeVG_AA0E8Delegate_ptF","displayName":"View.onDrop(of:delegate:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15dropDestination3for9isEnabled6actionQrqd__m_SbySayqd__G_AA11DropSessionVtct16CoreTransferable0M0Rd__lF","displayName":"View.dropDestination(for:isEnabled:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20onDropSessionUpdatedyQryAA0eF0VcF","displayName":"View.onDropSessionUpdated(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17dropConfigurationyQrAA04DropE0VAA0F7SessionVcF","displayName":"View.dropConfiguration(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCGctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of10isTargeted7performQrSaySSG_AA7BindingVySbGSgSbSaySo14NSItemProviderCG_So7CGPointVtctF","displayName":"View.onDrop(of:isTargeted:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrop2of8delegateQrSaySSG_AA0E8Delegate_ptF","displayName":"View.onDrop(of:delegate:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF","displayName":"View.invalidatableContent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13findNavigator11isPresentedQrAA7BindingVySbG_tF","displayName":"View.findNavigator(isPresented:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12findDisabledyQrSbF","displayName":"View.findDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15replaceDisabledyQrSbF","displayName":"View.replaceDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20symbolEffectsRemovedyQrSbF","displayName":"View.symbolEffectsRemoved(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12userActivity_8isActive_QrSS_SbySo06NSUserE0CctF","displayName":"View.userActivity(_:isActive:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12userActivity_7element_QrSS_qd__Sgyqd___So06NSUserE0CtctlF","displayName":"View.userActivity(_:element:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22onContinueUserActivity_7performQrSS_ySo06NSUserG0CctF","displayName":"View.onContinueUserActivity(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onOpenURL7performQry10Foundation0F0Vc_tF","displayName":"View.onOpenURL(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21handlesExternalEvents10preferring8allowingQrShySSG_AGtF","displayName":"View.handlesExternalEvents(preferring:allowing:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityHint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceVF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17accessibilityHintyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd__SyRd__lF","displayName":"View.accessibilityHint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9onReceive_7performQrqd___y6OutputQyd__ct7Combine9PublisherRd__s5NeverO7FailureRtd__lF","displayName":"View.onReceive(_:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9menuStyleyQrqd__AA04MenuE0Rd__lF","displayName":"View.menuStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF","displayName":"View.flipsForRightToLeftLayoutDirection(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15textEditorStyleyQrqd__AA04TexteF0Rd__lF","displayName":"View.textEditorStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11toggleStyleyQrqd__AA06ToggleE0Rd__lF","displayName":"View.toggleStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27textInputAutocapitalizationyQrAA04TexteF0VSgF","displayName":"View.textInputAutocapitalization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8disabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8disabledyQrSbF","displayName":"View.disabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25onInteractiveResizeChangeyQrySbcF","displayName":"View.onInteractiveResizeChange(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE05indexC5StyleyQrqd__AA05IndexcE0Rd__lF","displayName":"View.indexViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC5StyleyQrqd__AA03TabcE0Rd__lF","displayName":"View.tabViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20disclosureGroupStyleyQrqd__AA010DisclosureeF0Rd__lF","displayName":"View.disclosureGroupStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onContinuousHover15coordinateSpace7performQrqd___yAA0F5PhaseOctAA010CoordinateH8ProtocolRd__lF","displayName":"View.onContinuousHover(coordinateSpace:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task4name8priority4file4line_QrSSSg_ScPSSSiyyYaYAcntF","displayName":"View.task(name:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task4name18executorPreference8priority4file4line6actionQrSSSg_Sch_pScPSSSiyyYaYAcntF","displayName":"View.task(name:executorPreference:priority:file:line:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task2id4name8priority4file4line_Qrqd___SSSgScPSSSiyyYaYAcntSQRd__lF","displayName":"View.task(id:name:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4task2id4name18executorPreference8priority4file4line_Qrqd___SSSgSch_pScPSSSiyyYaYAcntSQRd__lF","displayName":"View.task(id:name:executorPreference:priority:file:line:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21springLoadingBehavioryQrAA06SpringeF0VF","displayName":"View.springLoadingBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA4TextVSgtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVAA18LocalizedStringKeyVtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementV10Foundation23LocalizedStringResourceVtF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10searchable4text9placement6promptQrAA7BindingVySSG_AA20SearchFieldPlacementVqd__tSyRd__lF","displayName":"View.searchable(text:placement:prompt:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollTransition_4axis10transitionQrAA06ScrollE13ConfigurationV_AA4AxisOSgqd__AA17EmptyVisualEffectV_AA0hE5PhaseOtYbctAA0lM0Rd__lF","displayName":"View.scrollTransition(_:axis:transition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16scrollTransition10topLeading14bottomTrailing4axis10transitionQrAA06ScrollE13ConfigurationV_AjA4AxisOSgqd__AA17EmptyVisualEffectV_AA0lE5PhaseOtYbctAA0pQ0Rd__lF","displayName":"View.scrollTransition(topLeading:bottomTrailing:axis:transition:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA4TextVSgF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrAA18LocalizedStringKeyVF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQr10Foundation23LocalizedStringResourceVF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20typeSelectEquivalentyQrqd__SyRd__lF","displayName":"View.typeSelectEquivalent(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7onHover7performQrySbc_tF","displayName":"View.onHover(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16listRowSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF","displayName":"View.listRowSeparator(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20listRowSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF","displayName":"View.listRowSeparatorTint(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20listSectionSeparator_5edgesQrAA10VisibilityO_AA12VerticalEdgeO3SetVtF","displayName":"View.listSectionSeparator(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24listSectionSeparatorTint_5edgesQrAA5ColorVSg_AA12VerticalEdgeO3SetVtF","displayName":"View.listSectionSeparatorTint(_:edges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilitySortPriorityyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSdF","displayName":"View.accessibilitySortPriority(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA4EdgeOcF","displayName":"View.accessibilityScrollAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26fileDialogDefaultDirectoryyQr10Foundation3URLVSgF","displayName":"View.fileDialogDefaultDirectory(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileDialogCustomizationIDyQrSSF","displayName":"View.fileDialogCustomizationID(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA4TextVSgF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrAA18LocalizedStringKeyVF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17fileDialogMessageyQrqd__SyRd__lF","displayName":"View.fileDialogMessage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrqd__SyRd__lF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA4TextVSgF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQrAA18LocalizedStringKeyVF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27fileDialogConfirmationLabelyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileDialogConfirmationLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA4TextVSgF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrAA18LocalizedStringKeyVF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQr10Foundation23LocalizedStringResourceVF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25fileExporterFilenameLabelyQrqd__SyRd__lF","displayName":"View.fileExporterFilenameLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20fileDialogURLEnabledyQr10Foundation9PredicateVyAE3URLV_QPGF","displayName":"View.fileDialogURLEnabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34fileDialogImportsUnresolvedAliasesyQrSbF","displayName":"View.fileDialogImportsUnresolvedAliases(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24fileDialogBrowserOptionsyQrAA04FileefG0VF","displayName":"View.fileDialogBrowserOptions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA18LocalizedStringKeyV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrqd___AA7BindingVySbGtSyRd__lF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle_12isSuppressedQrAA4TextV_AA7BindingVySbGtF","displayName":"View.dialogSuppressionToggle(_:isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23dialogSuppressionToggle12isSuppressedQrAA7BindingVySbG_tF","displayName":"View.dialogSuppressionToggle(isSuppressed:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGys6ResultOy10Foundation3URLVs5Error_pGctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletionQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileImporter11isPresented19allowedContentTypes23allowsMultipleSelection12onCompletion0N12CancellationQrAA7BindingVySbG_Say22UniformTypeIdentifiers6UTTypeVGSbys6ResultOySay10Foundation3URLVGs5Error_pGcyyctF","displayName":"View.fileImporter(isPresented:allowedContentTypes:allowsMultipleSelection:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5sheet4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.sheet(item:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5sheet11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF","displayName":"View.sheet(isPresented:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15fullScreenCover4item9onDismiss7contentQrAA7BindingVyqd__SgG_yycSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.fullScreenCover(item:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15fullScreenCover11isPresented9onDismiss7contentQrAA7BindingVySbG_yycSgqd__yctAaBRd__lF","displayName":"View.fullScreenCover(isPresented:onDismiss:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17defaultAppStorageyQrSo14NSUserDefaultsCF","displayName":"View.defaultAppStorage(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE8onSubmit2of_QrAA0E8TriggersV_yyctF","displayName":"View.onSubmit(of:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11submitScopeyQrSbF","displayName":"View.submitScope(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33navigationLinkIndicatorVisibilityyQrAA0G0OF","displayName":"View.navigationLinkIndicatorVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19navigationBarHiddenyQrSbF","displayName":"View.navigationBarHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA4TextVF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitleyQrqd__SyRd__lF","displayName":"View.navigationBarTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA4TextV_AA010NavigationE4ItemV0f7DisplayH0OtF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrAA18LocalizedStringKeyV_AA010NavigationE4ItemV0f7DisplayH0OtF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationBarTitle_11displayModeQrqd___AA010NavigationE4ItemV0f7DisplayH0OtSyRd__lF","displayName":"View.navigationBarTitle(_:displayMode:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29navigationBarBackButtonHiddenyQrSbF","displayName":"View.navigationBarBackButtonHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE36textInputFormattingControlVisibility_3forQrAA0H0O_AA04TextefG9PlacementV3SetVtF","displayName":"View.textInputFormattingControlVisibility(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteraction_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF","displayName":"View.accessibilityRespondsToUserInteraction(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE38accessibilityRespondsToUserInteractionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF","displayName":"View.accessibilityRespondsToUserInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA015PrimitiveButtonE0Rd__lF","displayName":"View.buttonStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7focused_6equalsQrAA10FocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.focused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7focusedyQrAA10FocusStateV7BindingVySb_GF","displayName":"View.focused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11submitLabelyQrAA06SubmitE0VF","displayName":"View.submitLabel(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11refreshable6actionQryyYaYbc_tF","displayName":"View.refreshable(action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16projectionEffectyQrAA19ProjectionTransformVF","displayName":"View.projectionEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE010navigationC5StyleyQrqd__AA010NavigationcE0Rd__lF","displayName":"View.navigationViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu9menuItemsQrqd__yXE_tAaBRd__lF","displayName":"View.contextMenu(menuItems:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu9menuItems7previewQrqd__yXE_qd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.contextMenu(menuItems:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenuyQrAA07ContextE0Vyqd__GSgAaBRd__lF","displayName":"View.contextMenu(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33windowToolbarFullScreenVisibilityyQrAA06WindowefgH0VF","displayName":"View.windowToolbarFullScreenVisibility(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12itemProvideryQrSo06NSItemE0CSgycSgF","displayName":"View.itemProvider(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22paletteSelectionEffectyQrAA07PaletteeF0VF","displayName":"View.paletteSelectionEffect(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11buttonStyleyQrqd__AA06ButtonE0Rd__lF","displayName":"View.buttonStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14textFieldStyleyQrqd__AA04TexteF0Rd__lF","displayName":"View.textFieldStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrqd___AA7BindingVySbGqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actionsQrAA4TextV_AA7BindingVySbGqd__yXEtAaBRd__lF","displayName":"View.alert(_:isPresented:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrqd___AA7BindingVySbGqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented7actions7messageQrAA4TextV_AA7BindingVySbGqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.alert(_:isPresented:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrqd___AA7BindingVySbGqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actionsQrAA4TextV_AA7BindingVySbGqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:isPresented:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrqd___AA7BindingVyqd_1_SgGqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actionsQrAA4TextV_AA7BindingVyqd_0_SgGqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.alert(_:item:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrqd___AA7BindingVySbGqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_11isPresented10presenting7actions7messageQrAA4TextV_AA7BindingVySbGqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:isPresented:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert_4item7actions7messageQrqd___AA7BindingVyqd_2_SgGqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.alert(_:item:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actionsQrAA7BindingVySbG_qd__Sgqd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(isPresented:error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert11isPresented5error7actions7messageQrAA7BindingVySbG_qd__Sgqd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(isPresented:error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEts5ErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEts5ErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actionsQrAA7BindingVyqd__SgG_qd_0_yXEt10Foundation14LocalizedErrorRd__AaBRd_0_r0_lF","displayName":"View.alert(error:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5alert5error7actions7messageQrAA7BindingVyqd__SgG_qd_0_qd__XEqd_1_qd__XEt10Foundation14LocalizedErrorRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.alert(error:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7tabItemyQrqd__yXEAaBRd__lF","displayName":"View.tabItem(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12moveDisabledyQrSbF","displayName":"View.moveDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF","displayName":"View.scrollContentBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27toolbarMinimizationBehavior_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF","displayName":"View.toolbarMinimizationBehavior(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE37toolbarMinimizationSafeAreaAdjustment_3forQrAA07ToolbarefgH0V_AA0J9PlacementVdtF","displayName":"View.toolbarMinimizationSafeAreaAdjustment(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF","displayName":"View.toolbarMinimizationRestoration(_:for:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18presentationSizingyQrqd__AA012PresentationE0Rd__lF","displayName":"View.presentationSizing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9inspector11isPresented7contentQrAA7BindingVySbG_qd__yXEtAaBRd__lF","displayName":"View.inspector(isPresented:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20inspectorColumnWidth3min5ideal3maxQr14CoreFoundation7CGFloatVSg_AjKtF","displayName":"View.inspectorColumnWidth(min:ideal:max:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20inspectorColumnWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.inspectorColumnWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE08progressC5StyleyQrqd__AA08ProgresscE0Rd__lF","displayName":"View.progressViewStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13previewDeviceyQrAA07PreviewE0VSgF","displayName":"View.previewDevice(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13previewLayoutyQr21DeveloperToolsSupport07PreviewE0OF","displayName":"View.previewLayout(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18previewDisplayNameyQrSSSgF","displayName":"View.previewDisplayName(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14previewContextyQrqd__AA07PreviewE0Rd__lF","displayName":"View.previewContext(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27previewInterfaceOrientationyQrAA0eF0VF","displayName":"View.previewInterfaceOrientation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7popover4item16attachmentAnchor9arrowEdge7contentQrAA7BindingVyqd__SgG_AA017PopoverAttachmentG0OAA0I0OSgqd_0_qd__cts12IdentifiableRd__AaBRd_0_r0_lF","displayName":"View.popover(item:attachmentAnchor:arrowEdge:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7popover11isPresented16attachmentAnchor9arrowEdge7contentQrAA7BindingVySbG_AA017PopoverAttachmentH0OAA0J0OSgqd__yctAaBRd__lF","displayName":"View.popover(isPresented:attachmentAnchor:arrowEdge:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityDirectTouch_7optionsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_AA0jeF7OptionsVtF","displayName":"View.accessibilityDirectTouch(_:options:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA04ListeF0VSgF","displayName":"View.listItemTint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12listItemTintyQrAA5ColorVSgF","displayName":"View.listItemTint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12labelsHiddenQryF","displayName":"View.labelsHidden()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA4TextVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrAA18LocalizedStringKeyVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19documentLaunchTitleyQrqd__SyRd__lF","displayName":"View.documentLaunchTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA4TextVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrAA18LocalizedStringKeyVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22documentLaunchSubtitleyQrqd__SyRd__lF","displayName":"View.documentLaunchSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11pickerStyleyQrqd__AA06PickerE0Rd__lF","displayName":"View.pickerStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQrAA04ListeF0VF","displayName":"View.listSectionSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.listSectionSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityHidden_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSb_SbtF","displayName":"View.accessibilityHidden(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityHiddenyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSbF","displayName":"View.accessibilityHidden(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17onPencilDoubleTap7performQryAA0efG12GestureValueVc_tF","displayName":"View.onPencilDoubleTap(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15onPencilSqueeze7performQryAA0eF12GesturePhaseOc_tF","displayName":"View.onPencilSqueeze(perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13SidebarHeader7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarHeader(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13SidebarFooter7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarFooter(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC16SidebarBottomBar7contentQrqd__yXE_tAaBRd__lF","displayName":"View.tabViewSidebarBottomBar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___SbtSyRd__lF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityScrollStatus_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_SbtF","displayName":"View.accessibilityScrollStatus(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_SbtF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVG_SbtF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabels_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__G_SbtSyRd__lF","displayName":"View.accessibilityInputLabels(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVGF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA18LocalizedStringKeyVGF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24accessibilityInputLabelsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayqd__GSyRd__lF","displayName":"View.accessibilityInputLabels(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16searchCompletionyQrSSF","displayName":"View.searchCompletion(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF","displayName":"View.accessibilityRotorEntry(id:in:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17buttonBorderShapeyQrAA06ButtoneF0VF","displayName":"View.buttonBorderShape(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14sceneAccessory7contentQrqd__yXE_tAA05SceneE7ContentRd__lF","displayName":"View.sceneAccessory(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA4TextV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA019AccessibilitySystemE0V_qd__yctAA0gE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA4TextV_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA019AccessibilitySystemE0V_Sayqd__Gs7KeyPathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA4TextV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA019AccessibilitySystemE0V_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrAA18LocalizedStringKeyV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQr10Foundation23LocalizedStringResourceV_qd__yctAA013AccessibilityE7ContentRd__lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entriesQrqd___qd_0_yctSyRd__AA013AccessibilityE7ContentRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrAA18LocalizedStringKeyV_Sayqd__Gs0K4PathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__SSGts12IdentifiableRd__lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries10entryLabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_SSGtSyRd__s12IdentifiableRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrAA18LocalizedStringKeyV_Sayqd__Gs0L4PathCyqd__qd_0_GALyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQr10Foundation23LocalizedStringResourceV_Sayqd__Gs7KeyPathCyqd__qd_0_GAMyqd__SSGtSHRd_0_r0_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_7entries7entryID0G5LabelQrqd___Sayqd_0_Gs7KeyPathCyqd_0_qd_1_GAJyqd_0_SSGtSyRd__SHRd_1_r1_lF","displayName":"View.accessibilityRotor(_:entries:entryID:entryLabel:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrAA18LocalizedStringKeyV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQr10Foundation23LocalizedStringResourceV_SaySnySS5IndexVGGtF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18accessibilityRotor_10textRangesQrqd___SaySnySS5IndexVGGtSyRd__lF","displayName":"View.accessibilityRotor(_:textRanges:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9formStyleyQrqd__AA04FormE0Rd__lF","displayName":"View.formStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7contentQrAA14HorizontalEdgeO_Sbqd__yXEtAaBRd__lF","displayName":"View.swipeActions(edge:allowsFullSwipe:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12swipeActions4edge15allowsFullSwipe7content21onPresentationChangedQrAA14HorizontalEdgeO_Sbqd__yXEySbctAaBRd__lF","displayName":"View.swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21swipeActionsContainerQryF","displayName":"View.swipeActionsContainer()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA18LocalizedStringKeyV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQr10Foundation23LocalizedStringResourceV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrqd___Sbqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actionsQrAA4TextV_Sbqd__yXEtAaBRd__lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA18LocalizedStringKeyV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQr10Foundation23LocalizedStringResourceV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrqd___Sbqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27dismissalConfirmationDialog_13shouldPresent7actions7messageQrAA4TextV_Sbqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.dismissalConfirmationDialog(_:shouldPresent:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14deleteDisabledyQrSbF","displayName":"View.deleteDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityIdentifier_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSS_SbtF","displayName":"View.accessibilityIdentifier(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityIdentifieryAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSSF","displayName":"View.accessibilityIdentifier(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14listRowSpacingyQr14CoreFoundation7CGFloatVSgF","displayName":"View.listRowSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVyycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration7perform0D15PressingChangedQrSd_yycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance10inputKinds7perform0D15PressingChangedQrSd_14CoreFoundation7CGFloatVAA0g5InputM0VyycySbcSgtF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:inputKinds:perform:onPressingChanged:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration15maximumDistance8pressing7performQrSd_14CoreFoundation7CGFloatVySbcSgyyctF","displayName":"View.onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18onLongPressGesture15minimumDuration8pressing7performQrSd_ySbcSgyyctF","displayName":"View.onLongPressGesture(minimumDuration:pressing:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEtSyRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEtAaBRd__lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_0_yXEqd_1_yXEtSyRd__AaBRd_0_AaBRd_1_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd__yXEqd_0_yXEtAaBRd__AaBRd_0_r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrqd___AA7BindingVySbGAA0I0Oqd_1_Sgqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actionsQrAA4TextV_AA7BindingVySbGAA0I0Oqd_0_Sgqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA18LocalizedStringKeyV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrqd___AA7BindingVyqd_1_SgGAA0H0Oqd_0_qd_1_XEtSyRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actionsQrAA4TextV_AA7BindingVyqd_0_SgGAA0H0Oqd__qd_0_XEtAaBRd__r0_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrqd___AA7BindingVySbGAA0I0Oqd_2_Sgqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_11isPresented15titleVisibility10presenting7actions7messageQrAA4TextV_AA7BindingVySbGAA0I0Oqd_1_Sgqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:isPresented:titleVisibility:presenting:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA18LocalizedStringKeyV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQr10Foundation23LocalizedStringResourceV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrqd___AA7BindingVyqd_2_SgGAA0H0Oqd_0_qd_2_XEqd_1_qd_2_XEtSyRd__AaBRd_0_AaBRd_1_r2_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18confirmationDialog_4item15titleVisibility7actions7messageQrAA4TextV_AA7BindingVyqd_1_SgGAA0H0Oqd__qd_1_XEqd_0_qd_1_XEtAaBRd__AaBRd_0_r1_lF","displayName":"View.confirmationDialog(_:item:titleVisibility:actions:message:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15gridCellColumnsyQrSiF","displayName":"View.gridCellColumns(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14gridCellAnchoryQrAA9UnitPointVF","displayName":"View.gridCellAnchor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19gridColumnAlignmentyQrAA010HorizontalF0VF","displayName":"View.gridColumnAlignment(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19gridCellUnsizedAxesyQrAA4AxisO3SetVF","displayName":"View.gridCellUnsizedAxes(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAaBRd__lF","displayName":"View.contentToolbar(for:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14contentToolbar3for0D0QrAA07ContentE9PlacementV_qd__yXEtAA0eG0Rd__lF","displayName":"View.contentToolbar(for:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAaBRd__lF","displayName":"View.toolbar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar7contentQrqd__yXE_tAA14ToolbarContentRd__lF","displayName":"View.toolbar(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7toolbar2id7contentQrSS_qd__yXEtAA26CustomizableToolbarContentRd__lF","displayName":"View.toolbar(id:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA4TextVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__SyRd__lF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15navigationTitleyQrqd__yXEAaBRd__lF","displayName":"View.navigationTitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIconyQrAA5ImageVF","displayName":"View.assistiveAccessNavigationIcon(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29assistiveAccessNavigationIcon11systemImageQrSS_tF","displayName":"View.assistiveAccessNavigationIcon(systemImage:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29navigationBarTitleDisplayModeyQrAA010NavigationE4ItemV0fgH0OF","displayName":"View.navigationBarTitleDisplayMode(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA4TextVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrAA18LocalizedStringKeyVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQr10Foundation23LocalizedStringResourceVF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18navigationSubtitleyQrqd__SyRd__lF","displayName":"View.navigationSubtitle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE27accessibilityRepresentation14representationQrqd__yXE_tAaBRd__lF","displayName":"View.accessibilityRepresentation(representation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21accessibilityChildren8childrenQrqd__yXE_tAaBRd__lF","displayName":"View.accessibilityChildren(children:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress_6actionQrAA0E10EquivalentV_AA0eF0V6ResultOyctF","displayName":"View.onKeyPress(_:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress_6phases6actionQrAA0E10EquivalentV_AA0eF0V6PhasesVAJ6ResultOAJctF","displayName":"View.onKeyPress(_:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress4keys6phases6actionQrShyAA0E10EquivalentVG_AA0eF0V6PhasesVAL6ResultOALctF","displayName":"View.onKeyPress(keys:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress10characters6phases6actionQr10Foundation12CharacterSetV_AA0eF0V6PhasesVAL6ResultOALctF","displayName":"View.onKeyPress(characters:phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10onKeyPress6phases6actionQrAA0eF0V6PhasesV_AH6ResultOAHctF","displayName":"View.onKeyPress(phases:action:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6hiddenQryF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6hiddenQryF","displayName":"View.hidden()"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE34toolbarVerticalCompressionBehavioryQrAA07ToolbarefG0VF","displayName":"View.toolbarVerticalCompressionBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityChartDescriptoryQrqd__AA07AXChartF13RepresentableRd__lF","displayName":"View.accessibilityChartDescriptor(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA4TextVSgSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_AA015LocalizedStringL0VSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_AA4TextVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AA4TextVSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_ALSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_AMSo08AXCustomF10ImportanceVtF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_qd__So08AXCustomF10ImportanceVtSyRd__lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGqd___qd_0_So08AXCustomF10ImportanceVtSyRd__SyRd_0_r0_lF","displayName":"View.accessibilityCustomContent(_:_:importance:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21textSelectionAffinityyQrAA04TexteF0OF","displayName":"View.textSelectionAffinity(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13menuIndicatoryQrAA10VisibilityOF","displayName":"View.menuIndicator(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10tableStyleyQrqd__AA05TableE0Rd__lF","displayName":"View.tableStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10gaugeStyleyQrqd__AA05GaugeE0Rd__lF","displayName":"View.gaugeStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18tableColumnHeadersyQrAA10VisibilityOF","displayName":"View.tableColumnHeaders(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrSiF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrSiF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrAA4TextVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrAA18LocalizedStringKeyVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQr10Foundation23LocalizedStringResourceVSgF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE5badgeyQrqd__SgSyRd__lF","displayName":"View.badge(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17controlGroupStyleyQrqd__AA07ControleF0Rd__lF","displayName":"View.controlGroupStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiersQrAA13KeyEquivalentV_AA14EventModifiersVtF","displayName":"View.keyboardShortcut(_:modifiers:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcutyQrAA08KeyboardE0VF","displayName":"View.keyboardShortcut(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE16keyboardShortcut_9modifiers12localizationQrAA13KeyEquivalentV_AA14EventModifiersVAA08KeyboardE0V12LocalizationVtF","displayName":"View.keyboardShortcut(_:modifiers:localization:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityDefaultFocusyQrAA013AccessibilityF5StateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.accessibilityDefaultFocus(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityFocused_6equalsQrAA23AccessibilityFocusStateV7BindingVyqd___G_qd__tSHRd__lF","displayName":"View.accessibilityFocused(_:equals:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityFocusedyQrAA23AccessibilityFocusStateV7BindingVySb_GF","displayName":"View.accessibilityFocused(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13groupBoxStyleyQrqd__AA05GroupeF0Rd__lF","displayName":"View.groupBoxStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE14sectionActions7contentQrqd__yXE_tAaBRd__lF","displayName":"View.sectionActions(content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18listSectionMarginsyQrAA4EdgeO3SetV_14CoreFoundation7CGFloatVSgtF","displayName":"View.listSectionMargins(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19presentationDetentsyQrShyAA18PresentationDetentVGF","displayName":"View.presentationDetents(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19presentationDetents_9selectionQrShyAA18PresentationDetentVG_AA7BindingVyAGGtF","displayName":"View.presentationDetents(_:selection:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25presentationDragIndicatoryQrAA10VisibilityOF","displayName":"View.presentationDragIndicator(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE33presentationBackgroundInteractionyQrAA012PresentationeF0VF","displayName":"View.presentationBackgroundInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptationyQrAA012PresentationF0VF","displayName":"View.presentationCompactAdaptation(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE29presentationCompactAdaptation10horizontal8verticalQrAA012PresentationF0V_AHtF","displayName":"View.presentationCompactAdaptation(horizontal:vertical:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE24presentationCornerRadiusyQr14CoreFoundation7CGFloatVSgF","displayName":"View.presentationCornerRadius(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE30presentationContentInteractionyQrAA012PresentationeF0VF","displayName":"View.presentationContentInteraction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE21presentationPlacementyQrAA012PresentationE0VF","displayName":"View.presentationPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20buttonRepeatBehavioryQrAA06ButtoneF0VF","displayName":"View.buttonRepeatBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE11contextMenu16forSelectionType4menu13primaryActionQrqd__m_qd_0_Shyqd__GcyAHcSgtSHRd__AaBRd_0_r0_lF","displayName":"View.contextMenu(forSelectionType:menu:primaryAction:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE7gestureyQrqd__AA32UIGestureRecognizerRepresentableRd__lF","displayName":"View.gesture(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletionQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyAMs5Error_pGctF","displayName":"View.fileMover(isPresented:file:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletionQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AO7ElementRtd__lF","displayName":"View.fileMover(isPresented:files:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented0D012onCompletion0H12CancellationQrAA7BindingVySbG_10Foundation3URLVSgys6ResultOyANs5Error_pGcyyctF","displayName":"View.fileMover(isPresented:file:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9fileMover11isPresented5files12onCompletion0I12CancellationQrAA7BindingVySbG_qd__ys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AP7ElementRtd__lF","displayName":"View.fileMover(isPresented:files:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE03tabC13CustomizationyQrAA7BindingVyAA03TabcE0VGSgF","displayName":"View.tabViewCustomization(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA12FileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA12FileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentType:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletionQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSSSgys6ResultOy10Foundation3URLVs5Error_pGctAA21ReferenceFileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents11contentType12onCompletionQrAA7BindingVySbG_qd__07UniformJ11Identifiers6UTTypeVys6ResultOySay10Foundation3URLVGs5Error_pGctSlRd__AA21ReferenceFileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentType:onCompletion:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented4item12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyct16CoreTransferable0Z0Rd__lF","displayName":"View.fileExporter(isPresented:item:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented5items12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__16CoreTransferable0X0Rd_0_7ElementQyd__Rsd_0_r0_lF","displayName":"View.fileExporter(isPresented:items:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA12FileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document12contentTypes15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__SgSay22UniformTypeIdentifiers6UTTypeVGSSSgys6ResultOy10Foundation3URLVs5Error_pGcyyctAA21ReferenceFileDocumentRd__lF","displayName":"View.fileExporter(isPresented:document:contentTypes:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA12FileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyyctSlRd__AA21ReferenceFileDocument7ElementRpd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented8document11contentType15defaultFilename12onCompletion0M12CancellationQrAA7BindingVySbG_qd__Sg07UniformJ11Identifiers6UTTypeVSgSSSgys6ResultOy10Foundation3URLVs5Error_pGcyycSgtAA16WritableDocumentRd__AX6Writer_11DestinationRTd__lF","displayName":"View.fileExporter(isPresented:document:contentType:defaultFilename:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12fileExporter11isPresented9documents12contentTypes12onCompletion0K12CancellationQrAA7BindingVySbG_qd__Say22UniformTypeIdentifiers6UTTypeVGys6ResultOySay10Foundation3URLVGs5Error_pGcyycSgtSlRd__AA16WritableDocument7ElementRpd__AUA__6Writer11DestinationRTd__lF","displayName":"View.fileExporter(isPresented:documents:contentTypes:onCompletion:onCancellation:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityAddTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF","displayName":"View.accessibilityAddTraits(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE25accessibilityRemoveTraitsyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0iF0VF","displayName":"View.accessibilityRemoveTraits(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE26interactiveDismissDisabledyQrSbF","displayName":"View.interactiveDismissDisabled(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityElement8childrenQrAA26AccessibilityChildBehaviorV_tF","displayName":"View.accessibilityElement(children:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19labeledContentStyleyQrqd__AA07LabeledeF0Rd__lF","displayName":"View.labeledContentStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE12onTapGesture5count15coordinateSpace10inputKinds7performQrSi_qd__AA0f5InputK0VySo7CGPointVctAA010CoordinateI8ProtocolRd__lF","displayName":"View.onTapGesture(count:coordinateSpace:inputKinds:perform:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22presentationBackgroundyQrqd__AA10ShapeStyleRd__lF","displayName":"View.presentationBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22presentationBackground9alignment7contentQrAA9AlignmentV_qd__yXEtAaBRd__lF","displayName":"View.presentationBackground(alignment:content:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22labelReservedIconWidthyQr14CoreFoundation7CGFloatVF","displayName":"View.labelReservedIconWidth(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23labelIconToTitleSpacingyQr14CoreFoundation7CGFloatVF","displayName":"View.labelIconToTitleSpacing(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15badgeProminenceyQrAA05BadgeE0VF","displayName":"View.badgeProminence(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23accessibilityZoomActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGyAA0ie7GestureF0VcF","displayName":"View.accessibilityZoomAction(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointV_SbtF","displayName":"View.accessibilityActivationPoint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPoint_9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_SbtF","displayName":"View.accessibilityActivationPoint(_:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF","displayName":"View.accessibilityDragPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVSbtF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11description9isEnabledAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__SbtSyRd__lF","displayName":"View.accessibilityDropPoint(_:description:isEnabled:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSo7CGPointVF","displayName":"View.accessibilityActivationPoint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE28accessibilityActivationPointyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0VF","displayName":"View.accessibilityActivationPoint(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDragPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF","displayName":"View.accessibilityDragPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA4TextVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_AA18LocalizedStringKeyVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_10Foundation23LocalizedStringResourceVtF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22accessibilityDropPoint_11descriptionAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA04UnitF0V_qd__tSyRd__lF","displayName":"View.accessibilityDropPoint(_:description:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE31defaultAdaptableTabBarPlacementyQrAA0efgH0VF","displayName":"View.defaultAdaptableTabBarPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22defaultTabBarPlacementyQrAA09AdaptableefG0VF","displayName":"View.defaultTabBarPlacement(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__7Combine010ObservableE0Rd__lF","displayName":"View.focusedObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13focusedObjectyQrqd__Sg7Combine010ObservableE0Rd__lF","displayName":"View.focusedObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__7Combine010ObservableF0Rd__lF","displayName":"View.focusedSceneObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE18focusedSceneObjectyQrqd__Sg7Combine010ObservableF0Rd__lF","displayName":"View.focusedSceneObject(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityActionyAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA0hE4KindV_yyctF","displayName":"View.accessibilityAction(_:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA4TextV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction6action5labelQryyc_qd__yXEtAaBRd__lF","displayName":"View.accessibilityAction(action:label:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE20accessibilityActionsyQrqd__yXEAaBRd__lF","displayName":"View.accessibilityActions(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGAA18LocalizedStringKeyV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVG10Foundation23LocalizedStringResourceV_yyctF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE19accessibilityAction5named_AA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGqd___yyctSyRd__lF","displayName":"View.accessibilityAction(named:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrAA18LocalizedStringKeyVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQr10Foundation23LocalizedStringResourceVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrAA4TextVF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE4helpyQrqd__SyRd__lF","displayName":"View.help(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE17listRowBackgroundyQrqd__SgAaBRd__lF","displayName":"View.listRowBackground(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE10labelStyleyQrqd__AA05LabelE0Rd__lF","displayName":"View.labelStyle(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDragyQrSo14NSItemProviderCycF","displayName":"View.onDrag(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE6onDrag_7previewQrSo14NSItemProviderCyc_qd__yXEtAaBRd__lF","displayName":"View.onDrag(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable15containerItemID0E9NamespaceQrqd___AA0H0V0G0VSgtSHRd__s8SendableRd__lF","displayName":"View.draggable(containerItemID:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_4item18containerNamespaceQrqd__m_qd__SgyXAAA0G0V2IDVSgt16CoreTransferable0J0Rd__s12IdentifiableRd__s8SendableAJsAOPRpd__lF","displayName":"View.draggable(_:item:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_18containerNamespace_Qrqd__m_AA0F0V2IDVSgqd__Sgyct16CoreTransferable0I0Rd__s12IdentifiableRd__s8SendableAHsANPRpd__lF","displayName":"View.draggable(_:containerNamespace:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE22dragContainerSelection_18containerNamespaceQrSayqd__GyXA_AA0H0V2IDVSgtSHRd__s8SendableRd__lF","displayName":"View.dragContainerSelection(_:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_2id4item18containerNamespaceQrqd__m_s7KeyPathCyqd__qd_0_Gqd__SgyXAAA0H0V2IDVSgt16CoreTransferable0M0Rd__SHRd_0_s8SendableRd_0_r0_lF","displayName":"View.draggable(_:id:item:containerNamespace:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_2id18containerNamespace_Qrqd__m_s7KeyPathCyqd__qd_0_GAA0G0V2IDVSgqd__Sgyct16CoreTransferable0L0Rd__SHRd_0_s8SendableRd_0_r0_lF","displayName":"View.draggable(_:id:containerNamespace:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_qd__ctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF","displayName":"View.dragContainer(for:itemID:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_SayAIs12IdentifiablePQyd__Gct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF","displayName":"View.dragContainer(for:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for2in_Qrqd__m_AA9NamespaceV2IDVSgqd_0_AIs12IdentifiablePQyd__ct16CoreTransferable0L0Rd__sALRd__7ElementQyd_0_Rsd__SlRd_0_s8SendableANRQr0_lF","displayName":"View.dragContainer(for:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE13dragContainer3for6itemID2in_Qrqd_0_m_s7KeyPathCyqd_0_qd__GAA9NamespaceV0H0VSgqd_1_Sayqd__GctSHRd__s8SendableRd__16CoreTransferable0O0Rd_0_7ElementQyd_1_Rsd_0_SlRd_1_r1_lF","displayName":"View.dragContainer(for:itemID:in:_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggableyQrqd__yXA16CoreTransferable0F0Rd__lF","displayName":"View.draggable(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE9draggable_7previewQrqd_0_yXA_qd__yXEtAaBRd__16CoreTransferable0G0Rd_0_r0_lF","displayName":"View.draggable(_:preview:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE23toolbarVerticalBehavioryQrAA07ToolbareF0VF","displayName":"View.toolbarVerticalBehavior(_:)"}},{"kind":"memberOf","source":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF::SYNTHESIZED::s:9SwiftDemo5BadgeV","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewPAAE15datePickerStyleyQrqd__AA04DateeF0Rd__lF","displayName":"View.datePickerStyle(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo5BadgeV","target":"s:7SwiftUI4ViewP","targetFallback":"SwiftUICore.View"},{"kind":"conformsTo","source":"s:9SwiftDemo5BadgeV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5titleSSvp","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5countSivp","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc","target":"s:9SwiftDemo5BadgeV"},{"kind":"memberOf","source":"s:9SwiftDemo5BadgeV4bodyQrvp","target":"s:9SwiftDemo5BadgeV","sourceOrigin":{"identifier":"s:7SwiftUI4ViewP4body4BodyQzvp","displayName":"View.body"}},{"kind":"requirementOf","source":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","target":"s:9SwiftDemo7GreeterP"},{"kind":"conformsTo","source":"s:9SwiftDemo0B0C","target":"s:9SwiftDemo7GreeterP"},{"kind":"memberOf","source":"s:9SwiftDemo0B0CACycfc","target":"s:9SwiftDemo0B0C"},{"kind":"memberOf","source":"s:9SwiftDemo0B0C5greet4nameS2S_tF","target":"s:9SwiftDemo0B0C","sourceOrigin":{"identifier":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","displayName":"Greeter.greet(name:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1xSdvp","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1ySdvp","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV1x1yACSd_Sdtcfc","target":"s:9SwiftDemo5PointV"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo6FlavorO","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO7vanillayA2CmF","target":"s:9SwiftDemo6FlavorO"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO9chocolateyA2CmF","target":"s:9SwiftDemo6FlavorO"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:9SwiftDemo0B0C5greet4name5timesS2S_SitF","target":"s:9SwiftDemo0B0C"},{"kind":"memberOf","source":"s:9SwiftDemo0B0C7versionSSvpZ","target":"s:9SwiftDemo0B0C"},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo5PointV","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"memberOf","source":"s:9SwiftDemo5PointV11descriptionSSvp","target":"s:9SwiftDemo5PointV","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"memberOf","source":"s:9SwiftDemo5PointV6lengthSdvp","target":"s:9SwiftDemo5PointV"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo6FlavorO","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"memberOf","source":"s:9SwiftDemo6FlavorO11descriptionSSvp","target":"s:9SwiftDemo6FlavorO","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo7PolygonC5StyleO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO5solidyA2EmF","target":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO6dashedyA2EmF","target":"s:9SwiftDemo7PolygonC5StyleO"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc","target":"s:9SwiftDemo7PolygonC5StyleO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp","target":"s:9SwiftDemo7PolygonC7MetricsV"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc","target":"s:9SwiftDemo7PolygonC7MetricsV"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5styleAC5StyleOvp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:11Observation10ObservableP","targetFallback":"Observation.Observable"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC7celsiusSdvp","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC5labelSSvp","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatCACycfc","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC4warm2byySd_tF","target":"s:9SwiftDemo10ThermostatC"},{"kind":"memberOf","source":"s:9SwiftDemo10ThermostatC9warmLater2byySd_tF","target":"s:9SwiftDemo10ThermostatC"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:s9EscapableP","targetFallback":"Swift.Escapable"},{"kind":"conformsTo","source":"s:9SwiftDemo10ThermostatC","target":"s:s8CopyableP","targetFallback":"Swift.Copyable"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP4nameSSvp","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP11punctuationSSvp","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP5greetyS2SF","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo8GreetingP5resetyyF","target":"s:9SwiftDemo8GreetingP"},{"kind":"requirementOf","source":"s:9SwiftDemo6ScorerP5scoreyS2iKF","target":"s:9SwiftDemo6ScorerP"},{"kind":"conformsTo","source":"s:9SwiftDemo12RankedScorerP","target":"s:9SwiftDemo6ScorerP"},{"kind":"requirementOf","source":"s:9SwiftDemo12RankedScorerP4rankSiSgvp","target":"s:9SwiftDemo12RankedScorerP"},{"kind":"memberOf","source":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","target":"s:9SwiftDemo8GreetingP"},{"kind":"memberOf","source":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingPAAE5shoutyS2SF","displayName":"Greeting.shout(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo14FormalGreetingC","target":"s:9SwiftDemo8GreetingP"},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC4nameSSvp","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP4nameSSvp","displayName":"Greeting.name"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC11punctuationSSvp","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP11punctuationSSvp","displayName":"Greeting.punctuation"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc","target":"s:9SwiftDemo14FormalGreetingC"},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC5greetyS2SF","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP5greetyS2SF","displayName":"Greeting.greet(_:)"}},{"kind":"memberOf","source":"s:9SwiftDemo14FormalGreetingC5resetyyF","target":"s:9SwiftDemo14FormalGreetingC","sourceOrigin":{"identifier":"s:9SwiftDemo8GreetingP5resetyyF","displayName":"Greeting.reset()"}},{"kind":"conformsTo","source":"s:9SwiftDemo14DoublingScorerV","target":"s:9SwiftDemo6ScorerP"},{"kind":"memberOf","source":"s:9SwiftDemo14DoublingScorerVACycfc","target":"s:9SwiftDemo14DoublingScorerV"},{"kind":"memberOf","source":"s:9SwiftDemo14DoublingScorerV5scoreyS2iF","target":"s:9SwiftDemo14DoublingScorerV","sourceOrigin":{"identifier":"s:9SwiftDemo6ScorerP5scoreyS2iKF","displayName":"Scorer.score(_:)"}},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderCACycfc","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo14GreetingHolderC5greetySSSgSSF","target":"s:9SwiftDemo14GreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp","target":"s:9SwiftDemo18WeakGreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo18WeakGreetingHolderCACycfc","target":"s:9SwiftDemo18WeakGreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF","target":"s:9SwiftDemo18WeakGreetingHolderC"},{"kind":"memberOf","source":"s:9SwiftDemo16GreetingRegistryCACycfc","target":"s:9SwiftDemo16GreetingRegistryC"},{"kind":"memberOf","source":"s:9SwiftDemo16GreetingRegistryC5countSivp","target":"s:9SwiftDemo16GreetingRegistryC"},{"kind":"memberOf","source":"s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF","target":"s:9SwiftDemo16GreetingRegistryC"},{"kind":"memberOf","source":"s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF","target":"s:9SwiftDemo16GreetingRegistryC"},{"kind":"memberOf","source":"s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF","target":"s:9SwiftDemo16GreetingRegistryC"},{"kind":"conformsTo","source":"s:9SwiftDemo5ShapeP","target":"s:9SwiftDemo7GreeterP"},{"kind":"requirementOf","source":"s:9SwiftDemo5ShapeP4areaSdvp","target":"s:9SwiftDemo5ShapeP"},{"kind":"requirementOf","source":"s:9SwiftDemo5ShapeP5sidesSivpZ","target":"s:9SwiftDemo5ShapeP"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4nameSSvp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC11vertexCountSivp","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC6sharedACvpZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4nameACSgSS_tcfc","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale2byySd_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale2byySi_tF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC4makeACyFZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonC8describeySSACSgFZ","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo7PolygonCyAA5PointVSicip","target":"s:9SwiftDemo7PolygonC"},{"kind":"conformsTo","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo5ShapeP"},{"kind":"conformsTo","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo7GreeterP"},{"kind":"inheritsFrom","source":"s:9SwiftDemo6SquareC","target":"s:9SwiftDemo7PolygonC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4sideSdvp","target":"s:9SwiftDemo6SquareC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4sideACSd_tcfc","target":"s:9SwiftDemo6SquareC"},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC4areaSdvp","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo5ShapeP4areaSdvp","displayName":"Shape.area"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5sidesSivpZ","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo5ShapeP5sidesSivpZ","displayName":"Shape.sides"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5greet4nameS2S_tF","target":"s:9SwiftDemo6SquareC","sourceOrigin":{"identifier":"s:9SwiftDemo7GreeterP5greet4nameS2S_tF","displayName":"Greeter.greet(name:)"}},{"kind":"memberOf","source":"s:9SwiftDemo6SquareC5scale2byySd_tF","target":"s:9SwiftDemo6SquareC"},{"kind":"overrides","source":"s:9SwiftDemo6SquareC5scale2byySd_tF","target":"s:9SwiftDemo7PolygonC5scale2byySd_tF"},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp","displayName":"RawRepresentable.hashValue"}},{"kind":"memberOf","source":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SYsSHRzSH8RawValueSYRpzrlE4hash4intoys6HasherVz_tF","displayName":"RawRepresentable.hash(into:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE08makeFromf10AttachmentD0yxSgAA0cfD0VFZ","displayName":"RawRepresentable.makeFromRawAttachmentValue(_:)"}},{"kind":"memberOf","source":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY9CoreVideoAA30CVAttachmentValueRepresentable03RawD0RpzrlE013rawAttachmentD14RepresentationAA0cfD0Vvp","displayName":"RawRepresentable.rawAttachmentValueRepresentation"}},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo13PrecipitationO","target":"s:SY","targetFallback":"Swift.RawRepresentable"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4rainyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4snowyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO4noneyA2CmF","target":"s:9SwiftDemo13PrecipitationO"},{"kind":"memberOf","source":"s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc","target":"s:9SwiftDemo13PrecipitationO","sourceOrigin":{"identifier":"s:SY8rawValuexSg03RawB0Qz_tcfc","displayName":"RawRepresentable.init(rawValue:)"}},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO","target":"s:9SwiftDemo10ShapeErrorO","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo10ShapeErrorO","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO11invalidSideyACSdcACmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO12tooManySidesyACSi_SitcACmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo10ShapeErrorO7unknownyA2CmF","target":"s:9SwiftDemo10ShapeErrorO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO6lengthyACSdcACmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4areayACSd_SdtcACmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4noneyA2CmF","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp","target":"s:9SwiftDemo11MeasurementO4UnitV"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc","target":"s:9SwiftDemo11MeasurementO4UnitV"},{"kind":"memberOf","source":"s:9SwiftDemo11MeasurementO6isNoneSbvp","target":"s:9SwiftDemo11MeasurementO"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5innerAA5PointVvp","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5outerAA5PointVvp","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV6expand2byySd_tF","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:9SwiftDemo4RingV1poiyA2C_ACtFZ","target":"s:9SwiftDemo4RingV"},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pqd_0_YKXEqd_0_YKs5ErrorRd_0_Ri_d__r0_lF","displayName":"Actor.withSerialExecutor(_:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE18withSerialExecutoryqd__qd__Scf_pYaqd_0_YKYCXEYaqd_0_YKs5ErrorRd_0_Ri_d__r0_lF","displayName":"Actor.withSerialExecutor(_:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF","displayName":"Actor.preconditionIsolated(_:file:line:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE14assertIsolated_4file4lineySSyXK_s12StaticStringVSutF","displayName":"Actor.assertIsolated(_:file:line:)"}},{"kind":"memberOf","source":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF::SYNTHESIZED::s:9SwiftDemo7CounterC","target":"s:9SwiftDemo7CounterC","sourceOrigin":{"identifier":"s:ScA12_ConcurrencyE14assumeIsolated_4file4lineqd__qd__xYiKXE_s12StaticStringVSutKs8SendableRd__lF","displayName":"Actor.assumeIsolated(_:file:line:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:ScA","targetFallback":"_Concurrency.Actor"},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo7CounterC","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC5valueSivp","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC4stepSivp","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterCACycfc","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC9incrementSiyF","target":"s:9SwiftDemo7CounterC"},{"kind":"memberOf","source":"s:9SwiftDemo7CounterC5labelSSyF","target":"s:9SwiftDemo7CounterC"},{"kind":"conformsTo","source":"s:9SwiftDemo6CanvasC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo6CanvasCACycfc","target":"s:9SwiftDemo6CanvasC"},{"kind":"memberOf","source":"s:9SwiftDemo6CanvasC4drawyyAA5Shape_pF","target":"s:9SwiftDemo6CanvasC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderCACycfc","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC9transformyxxAA5ShapeRzlF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC4eachyyySiXEF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC6updateyyAA5PointVzF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC10modernOnlyyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC11legacyFetchyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:9SwiftDemo6LoaderC8oldFetchyyF","target":"s:9SwiftDemo6LoaderC"},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV","target":"s:9SwiftDemo14CountdownErrorV","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo14CountdownErrorV","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF","displayName":"AsyncSequence.compactMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF","displayName":"AsyncSequence.dropFirst(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF","displayName":"AsyncSequence.drop(while:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF","displayName":"AsyncSequence.filter(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF","displayName":"AsyncSequence.map(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF","displayName":"AsyncSequence.prefix(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF","displayName":"AsyncSequence.prefix(while:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF","displayName":"AsyncSequence.reduce(_:_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF","displayName":"AsyncSequence.reduce(into:_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF","displayName":"AsyncSequence.contains(where:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF","displayName":"AsyncSequence.allSatisfy(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF","displayName":"AsyncSequence.contains(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF","displayName":"AsyncSequence.first(where:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF","displayName":"AsyncSequence.min(by:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF","displayName":"AsyncSequence.max(by:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF","displayName":"AsyncSequence.min()"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF","displayName":"AsyncSequence.max()"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF","displayName":"AsyncSequence.compactMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF","displayName":"AsyncSequence.map(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo9CountdownV","target":"s:Sci","targetFallback":"_Concurrency.AsyncSequence"},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV7Elementa","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci7ElementQa","displayName":"AsyncSequence.Element"}},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV5startSivp","target":"s:9SwiftDemo9CountdownV"},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV4fromACSi_tcfc","target":"s:9SwiftDemo9CountdownV"},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV5labelSSvp","target":"s:9SwiftDemo9CountdownV"},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV13AsyncIteratorV","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci13AsyncIteratorQa","displayName":"AsyncSequence.AsyncIterator"}},{"kind":"memberOf","source":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV","target":"s:9SwiftDemo9CountdownV13AsyncIteratorV","sourceOrigin":{"identifier":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF","displayName":"AsyncIteratorProtocol.next(isolation:)"}},{"kind":"memberOf","source":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV","target":"s:9SwiftDemo9CountdownV13AsyncIteratorV","sourceOrigin":{"identifier":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF","displayName":"AsyncIteratorProtocol.next()"}},{"kind":"conformsTo","source":"s:9SwiftDemo9CountdownV13AsyncIteratorV","target":"s:ScI","targetFallback":"_Concurrency.AsyncIteratorProtocol","sourceOrigin":{"identifier":"s:Sci13AsyncIteratorQa","displayName":"AsyncSequence.AsyncIterator"}},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF","target":"s:9SwiftDemo9CountdownV13AsyncIteratorV","sourceOrigin":{"identifier":"s:ScI4next7ElementQzSgyYaKF","displayName":"AsyncIteratorProtocol.next()"}},{"kind":"memberOf","source":"s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF","target":"s:9SwiftDemo9CountdownV","sourceOrigin":{"identifier":"s:Sci17makeAsyncIterator0bC0QzyF","displayName":"AsyncSequence.makeAsyncIterator()"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF","displayName":"AsyncSequence.compactMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF","displayName":"AsyncSequence.dropFirst(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF","displayName":"AsyncSequence.drop(while:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF","displayName":"AsyncSequence.filter(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF","displayName":"AsyncSequence.map(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF","displayName":"AsyncSequence.prefix(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF","displayName":"AsyncSequence.prefix(while:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF","displayName":"AsyncSequence.reduce(_:_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF","displayName":"AsyncSequence.reduce(into:_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF","displayName":"AsyncSequence.contains(where:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF","displayName":"AsyncSequence.allSatisfy(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF","displayName":"AsyncSequence.contains(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF","displayName":"AsyncSequence.first(where:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF","displayName":"AsyncSequence.min(by:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF","displayName":"AsyncSequence.max(by:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF","displayName":"AsyncSequence.min()"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF","displayName":"AsyncSequence.max()"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF","displayName":"AsyncSequence.compactMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF","displayName":"AsyncSequence.flatMap(_:)"}},{"kind":"memberOf","source":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF","displayName":"AsyncSequence.map(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo10WordStreamC","target":"s:Sci","targetFallback":"_Concurrency.AsyncSequence"},{"kind":"memberOf","source":"s:9SwiftDemo10WordStreamCyACSScfc","target":"s:9SwiftDemo10WordStreamC"},{"kind":"memberOf","source":"s:9SwiftDemo10WordStreamC8IteratorV","target":"s:9SwiftDemo10WordStreamC"},{"kind":"memberOf","source":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV","target":"s:9SwiftDemo10WordStreamC8IteratorV","sourceOrigin":{"identifier":"s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF","displayName":"AsyncIteratorProtocol.next(isolation:)"}},{"kind":"memberOf","source":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV","target":"s:9SwiftDemo10WordStreamC8IteratorV","sourceOrigin":{"identifier":"s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF","displayName":"AsyncIteratorProtocol.next()"}},{"kind":"conformsTo","source":"s:9SwiftDemo10WordStreamC8IteratorV","target":"s:ScI","targetFallback":"_Concurrency.AsyncIteratorProtocol"},{"kind":"memberOf","source":"s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF","target":"s:9SwiftDemo10WordStreamC8IteratorV","sourceOrigin":{"identifier":"s:ScI4next7ElementQzSgyYaKF","displayName":"AsyncIteratorProtocol.next()"}},{"kind":"memberOf","source":"s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF","target":"s:9SwiftDemo10WordStreamC","sourceOrigin":{"identifier":"s:Sci17makeAsyncIterator0bC0QzyF","displayName":"AsyncSequence.makeAsyncIterator()"}},{"kind":"memberOf","source":"s:9SwiftDemo11ThermometerCACycfc","target":"s:9SwiftDemo11ThermometerC"},{"kind":"memberOf","source":"s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp","target":"s:9SwiftDemo11ThermometerC"},{"kind":"memberOf","source":"s:9SwiftDemo11ThermometerC6recordyySdF","target":"s:9SwiftDemo11ThermometerC"},{"kind":"memberOf","source":"s:9SwiftDemo11ThermometerC6finishyyF","target":"s:9SwiftDemo11ThermometerC"},{"kind":"memberOf","source":"s:9SwiftDemo9StreamLogC12terminationsSivpZ","target":"s:9SwiftDemo9StreamLogC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC9liveCountSivpZ","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC2idSivp","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC2idACSi_tcfc","target":"s:9SwiftDemo7TrackerC"},{"kind":"memberOf","source":"s:9SwiftDemo7TrackerC4sameACyF","target":"s:9SwiftDemo7TrackerC"},{"kind":"conformsTo","source":"s:9SwiftDemo7PaletteC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC7strokesSivp","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteCACycfc","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC6strokeSiyF","target":"s:9SwiftDemo7PaletteC"},{"kind":"memberOf","source":"s:9SwiftDemo7PaletteC11strokeLaterSiyYaF","target":"s:9SwiftDemo7PaletteC"},{"kind":"conformsTo","source":"s:9SwiftDemo8NotifierC","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo8NotifierC","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierCACycfc","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC5countSivp","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC9subscribeyyySSYbcF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC7publishyySSF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC12publishLateryySSF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo8NotifierC5clearyyF","target":"s:9SwiftDemo8NotifierC"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO6numberyACSdcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO3sumyA2C_ACtcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO6negateyA2CcACmF","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7FormulaO5valueSdvp","target":"s:9SwiftDemo7FormulaO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO7trackeryAcA7TrackerCcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5pointyAcA5PointVcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO6flavoryAcA6FlavorOcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5maybeyACSiSgcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo7PayloadO5namesyACSaySSGcACmF","target":"s:9SwiftDemo7PayloadO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO3runyACyyccACmF","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO4idleyA2CmF","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV","target":"s:9SwiftDemo3JobO"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV2idSivp","target":"s:9SwiftDemo3JobO6TicketV"},{"kind":"memberOf","source":"s:9SwiftDemo3JobO6TicketV2idAESi_tcfc","target":"s:9SwiftDemo3JobO6TicketV"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC5valueSivp","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchCACycfc","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC4echoyS2iFZ","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:9SwiftDemo5BenchC4echoyS2iF","target":"s:9SwiftDemo5BenchC"},{"kind":"memberOf","source":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV","target":"s:9SwiftDemo12ParseFailureV","sourceOrigin":{"identifier":"s:s5ErrorP10FoundationE20localizedDescriptionSSvp","displayName":"Error.localizedDescription"}},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s5ErrorP","targetFallback":"Swift.Error"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s8SendableP","targetFallback":"Swift.Sendable"},{"kind":"conformsTo","source":"s:9SwiftDemo12ParseFailureV","target":"s:s16SendableMetatypeP","targetFallback":"Swift.SendableMetatype"},{"kind":"memberOf","source":"s:9SwiftDemo12ParseFailureV4textSSvp","target":"s:9SwiftDemo12ParseFailureV"},{"kind":"memberOf","source":"s:9SwiftDemo12ParseFailureV11descriptionSSvp","target":"s:9SwiftDemo12ParseFailureV","sourceOrigin":{"identifier":"s:s23CustomStringConvertibleP11descriptionSSvp","displayName":"CustomStringConvertible.description"}},{"kind":"memberOf","source":"s:9SwiftDemo9CancelLogC13cancellationsSivpZ","target":"s:9SwiftDemo9CancelLogC"},{"kind":"memberOf","source":"s:9SwiftDemo5ShelfCACycfc","target":"s:9SwiftDemo5ShelfC"},{"kind":"memberOf","source":"s:9SwiftDemo5ShelfCySiSgSScip","target":"s:9SwiftDemo5ShelfC"},{"kind":"memberOf","source":"s:9SwiftDemo5ShelfCySSSi_Sitcip","target":"s:9SwiftDemo5ShelfC"},{"kind":"memberOf","source":"s:9SwiftDemo4GridV5cellsSaySiGvp","target":"s:9SwiftDemo4GridV"},{"kind":"memberOf","source":"s:9SwiftDemo4GridV4sizeACSi_tcfc","target":"s:9SwiftDemo4GridV"},{"kind":"memberOf","source":"s:9SwiftDemo4GridVyS2icip","target":"s:9SwiftDemo4GridV"},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7Vector2V","target":"s:9SwiftDemo7Vector2V","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo7Vector2V","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1xSdvp","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1ySdvp","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1sopyA2CFZ","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ","target":"s:9SwiftDemo7Vector2V"},{"kind":"memberOf","source":"s:SLsE3zzzoiySNyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsE3zzzoiySNyxGx_xtFZ","displayName":"Comparable....(_:_:)"}},{"kind":"memberOf","source":"s:SLsRi_zRi0_zrlE1goiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsRi_zRi0_zrlE1goiySbx_xtFZ","displayName":"Comparable.>(_:_:)"}},{"kind":"memberOf","source":"s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ","displayName":"Comparable.<=(_:_:)"}},{"kind":"memberOf","source":"s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ","displayName":"Comparable.>=(_:_:)"}},{"kind":"memberOf","source":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ","displayName":"Equatable.!=(_:_:)"}},{"kind":"memberOf","source":"s:SLsE3zzloiySnyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsE3zzloiySnyxGx_xtFZ","displayName":"Comparable...<(_:_:)"}},{"kind":"memberOf","source":"s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ","displayName":"Comparable...<(_:)"}},{"kind":"memberOf","source":"s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ","displayName":"Comparable....(_:)"}},{"kind":"memberOf","source":"s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ","displayName":"Comparable....(_:)"}},{"kind":"conformsTo","source":"s:9SwiftDemo7VersionV","target":"s:SL","targetFallback":"Swift.Comparable"},{"kind":"conformsTo","source":"s:9SwiftDemo7VersionV","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"s:9SwiftDemo7VersionV","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"memberOf","source":"s:9SwiftDemo7VersionV5majorSivp","target":"s:9SwiftDemo7VersionV"},{"kind":"memberOf","source":"s:9SwiftDemo7VersionV5minorSivp","target":"s:9SwiftDemo7VersionV"},{"kind":"memberOf","source":"s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc","target":"s:9SwiftDemo7VersionV"},{"kind":"memberOf","source":"s:9SwiftDemo7VersionV1loiySbAC_ACtFZ","target":"s:9SwiftDemo7VersionV","sourceOrigin":{"identifier":"s:SL1loiySbx_xtFZ","displayName":"Comparable.<(_:_:)"}},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"c:objc(pl)NSObject","targetFallback":"ObjectiveC.NSObjectProtocol"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s7CVarArgP","targetFallback":"Swift.CVarArg"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)Note","target":"s:s28CustomDebugStringConvertibleP","targetFallback":"Swift.CustomDebugStringConvertible"},{"kind":"inheritsFrom","source":"c:@M@SwiftDemo@objc(cs)Note","target":"c:objc(cs)NSObject","targetFallback":"ObjectiveC.NSObject"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4textSSvp","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4textACSS_tcfc","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC4tagsShySSGvp","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC6taggedyACSSF","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"s:9SwiftDemo4NoteC5blankACyFZ","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"memberOf","source":"c:@M@SwiftDemo@objc(cs)Note(py)revision","target":"c:@M@SwiftDemo@objc(cs)Note"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)NSCoding","targetFallback":"Foundation.NSCoding"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAppearance","targetFallback":"UIKit.UIAppearance"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAppearanceContainer","targetFallback":"UIKit.UIAppearanceContainer"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIDynamicItem","targetFallback":"UIKit.UIDynamicItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UITraitEnvironment","targetFallback":"UIKit.UITraitEnvironment"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UICoordinateSpace","targetFallback":"UIUtilities.UICoordinateSpace"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusItem","targetFallback":"UIKit.UIFocusItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusEnvironment","targetFallback":"UIKit.UIFocusEnvironment"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIFocusItemContainer","targetFallback":"UIKit.UIFocusItemContainer"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CALayerDelegate","targetFallback":"QuartzCore.CALayerDelegate"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIResponderStandardEditActions","targetFallback":"UIKit.UIResponderStandardEditActions"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)NSObject","targetFallback":"ObjectiveC.NSObjectProtocol"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:SQ","targetFallback":"Swift.Equatable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:SH","targetFallback":"Swift.Hashable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s7CVarArgP","targetFallback":"Swift.CVarArg"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s23CustomStringConvertibleP","targetFallback":"Swift.CustomStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:s28CustomDebugStringConvertibleP","targetFallback":"Swift.CustomDebugStringConvertible"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIActivityItemsConfigurationProviding","targetFallback":"UIKit.UIActivityItemsConfigurationProviding"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIPasteConfigurationSupporting","targetFallback":"UIKit.UIPasteConfigurationSupporting"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIUserActivityRestoring","targetFallback":"UIKit.UIUserActivityRestoring"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"s:5UIKit23UITraitChangeObservableP","targetFallback":"UIKit.UITraitChangeObservable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIPopoverPresentationControllerSourceItem","targetFallback":"UIKit.UIPopoverPresentationControllerSourceItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UILargeContentViewerItem","targetFallback":"UIKit.UILargeContentViewerItem"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)UIAccessibilityIdentification","targetFallback":"UIKit.UIAccessibilityIdentification"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CMBodyIdentifiable","targetFallback":"CoreMotion.CMBodyIdentifiable"},{"kind":"conformsTo","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(pl)CLBodyIdentifiable","targetFallback":"CoreLocation.CLBodyIdentifiable"},{"kind":"inheritsFrom","source":"c:@M@SwiftDemo@objc(cs)CounterView","target":"c:objc(cs)UIView","targetFallback":"UIKit.UIView"},{"kind":"memberOf","source":"s:9SwiftDemo11CounterViewC5countSivp","target":"c:@M@SwiftDemo@objc(cs)CounterView"},{"kind":"memberOf","source":"s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF","target":"c:@M@SwiftDemo@objc(cs)CounterView"}]} \ No newline at end of file diff --git a/metadata-generator/src/Swift/CapabilityClassifier.cpp b/metadata-generator/src/Swift/CapabilityClassifier.cpp index d682532f..9e1ac534 100644 --- a/metadata-generator/src/Swift/CapabilityClassifier.cpp +++ b/metadata-generator/src/Swift/CapabilityClassifier.cpp @@ -156,6 +156,13 @@ const char* frameworkOfCStruct(const std::string& name) { return info ? info->framework : nullptr; } +static bool isArrayProtocolUSR(const std::string& usr) { + // Sequence, Collection, BidirectionalCollection, RandomAccessCollection, + // MutableCollection, RangeReplaceableCollection. + return usr == "s:ST" || usr == "s:Sl" || usr == "s:SK" || usr == "s:Sk" || + usr == "s:SM" || usr == "s:Sm"; +} + bool hasAssociatedValues(const Module& module, const Symbol& symbol) { if (symbol.kind != SymbolKind::Enum) { return false; @@ -257,6 +264,7 @@ class Classifier { } rejectUnbridgedPayloads(); rejectUnadoptableProtocols(); + classifyAsyncSequences(); for (const auto& entry : _module.symbols) { if (!isNominalType(entry.second.kind)) { _result.bySymbol[entry.first] = classifyOther(entry.second); @@ -347,7 +355,18 @@ class Classifier { if (llvm::StringRef(symbol.declarationText).contains("~Escapable")) { return make(Tier::Unsupported, "nonescapable"); } - return make(Tier::SwiftGenerated); + Capability generated = make(Tier::SwiftGenerated); + if (symbol.kind == SymbolKind::Struct || symbol.kind == SymbolKind::Class) { + auto conforms = [&](const char* usr) { + return std::find(symbol.conformances.begin(), symbol.conformances.end(), + usr) != symbol.conformances.end(); + }; + generated.comparable = conforms(KnownTypes::kComparable); + generated.equatable = generated.comparable || + conforms(KnownTypes::kEquatable) || + conforms(KnownTypes::kHashable); + } + return generated; } // A protocol JS objects can implement: every requirement is an instance @@ -590,11 +609,16 @@ class Classifier { } } + std::string operatorName; if (symbol.kind == SymbolKind::Operator) { - return make(Tier::Unsupported, "operator"); + operatorName = jsOperatorName(symbol); + if (operatorName.empty() || !owner) { + return make(Tier::Unsupported, "operator"); + } } - if (symbol.kind == SymbolKind::InstanceSubscript || - symbol.kind == SymbolKind::TypeSubscript) { + if ((symbol.kind == SymbolKind::InstanceSubscript || + symbol.kind == SymbolKind::TypeSubscript) && + symbol.parameters.empty()) { return make(Tier::Unsupported, "subscript"); } if (symbol.kind == SymbolKind::EnumCase) { @@ -712,6 +736,17 @@ class Classifier { capability.jsName = symbol.kind == SymbolKind::Initializer ? "constructor" : symbol.baseName; + if (!operatorName.empty()) { + capability.jsName = operatorName; + // `lhs OP rhs` and `OP operand` on the owner become its methods. + if (!capability.parameters.empty() && + capability.parameters[0].symbolId == owner->preciseId && + !capability.parameters[0].optional && + !capability.parameters[0].isInout) { + capability.operatorInstance = true; + capability.parameters.erase(capability.parameters.begin()); + } + } if (owner && owner->kind == SymbolKind::Protocol) { capability.isRequirement = symbol.isProtocolRequirement; // Assigning through a value of a protocol that is not class-bound @@ -753,6 +788,112 @@ class Classifier { return false; } + // The element of each bridged class or struct conforming to AsyncSequence: + // its `Element` typealias, or what its iterator's `next()` returns. + void classifyAsyncSequences() { + for (auto& entry : _result.bySymbol) { + const Symbol* symbol = _module.find(entry.first); + Capability& capability = entry.second; + if (!symbol || capability.tier != Tier::SwiftGenerated || + (symbol->kind != SymbolKind::Struct && + symbol->kind != SymbolKind::Class) || + std::find(symbol->conformances.begin(), symbol->conformances.end(), + KnownTypes::kAsyncSequence) == symbol->conformances.end()) { + continue; + } + const TypeRef* element = memberType(*symbol, "Element"); + if (!element) { + const TypeRef* iterator = memberType(*symbol, "AsyncIterator"); + const Symbol* iteratorType = nullptr; + if (iterator) { + for (const auto& fragment : iterator->fragments) { + if (!fragment.preciseIdentifier.empty()) { + iteratorType = _module.find(fragment.preciseIdentifier); + } + } + } + for (const auto& id : iteratorType ? iteratorType->memberIds + : std::vector()) { + // Its own next(), not the protocol's default implementation. + const Symbol* next = _module.find(id); + if (next && next->name == "next()" && next->returnType && + !next->isSynthesized) { + element = &*next->returnType; + } + } + } + if (!element) { + continue; + } + _substitutions = substitutionsOf(*symbol); + std::vector reasons; + BridgedType bridged = + bridge(*element, genericNamesInScope(_module, *symbol), reasons); + // An iterator's `next()` returns the element as an optional. + if (!memberType(*symbol, "Element")) { + bridged.optional = false; + if (bridged.node.kind == TypeNode::Kind::Optional && + !bridged.node.children.empty()) { + bridged.node = bridged.node.children[0]; + } + } + if (reasons.empty() && !bridged.optional && + bridged.bridge != Bridge::Void && bridged.bridge != Bridge::Closure && + bridged.bridge != Bridge::AsyncSequence) { + capability.asyncElement = std::move(bridged); + } + } + } + + // The type a member typealias of `type` named `name` (or, for + // `AsyncIterator`, the nested type or method declaring it) stands for. + const TypeRef* memberType(const Symbol& type, const std::string& name) const { + for (const auto& id : type.memberIds) { + const Symbol* member = _module.find(id); + if (!member) { + continue; + } + if (member->kind == SymbolKind::TypeAlias && member->name == name && + member->aliasedType) { + return &*member->aliasedType; + } + if (name == "AsyncIterator" && member->name == "makeAsyncIterator()" && + member->returnType) { + return &*member->returnType; + } + } + return nullptr; + } + + // JS method names for operators JS can call by name; "" for the rest + // (compound assignment, bitwise, custom operators, and `!=`, which + // `equals` covers). + static std::string jsOperatorName(const Symbol& symbol) { + llvm::StringRef op = llvm::StringRef(symbol.name).split('(').first; + bool prefix = symbol.parameters.size() == 1 && + std::find(symbol.modifiers.begin(), symbol.modifiers.end(), + "postfix") == symbol.modifiers.end(); + if (prefix) { + return op == "-" ? "negated" : op == "!" ? "not" : ""; + } + if (symbol.parameters.size() != 2) { + return ""; + } + static const std::pair kNames[] = { + {"+", "plus"}, {"-", "minus"}, + {"*", "times"}, {"/", "dividedBy"}, + {"%", "remainder"}, {"==", "equals"}, + {"<", "lessThan"}, {"<=", "lessThanOrEqualTo"}, + {">", "greaterThan"}, {">=", "greaterThanOrEqualTo"}, + }; + for (const auto& name : kNames) { + if (op == name.first) { + return name.second; + } + } + return ""; + } + BridgedType bridgeOwner(const Symbol& owner) const { BridgedType bridged; if (const Capability* capability = _result.find(owner.preciseId); @@ -946,6 +1087,14 @@ class Classifier { bridged.bridge = Bridge::Error; return ""; } + // `any Sequence` and the other collection protocols arrays + // conform to: an array in, a copy out. + if (inner && inner->kind == TypeNode::Kind::Nominal && + isArrayProtocolUSR(inner->usr()) && + inner->components.back().arguments.size() == 1) { + bridged.bridge = Bridge::Array; + return bridgeElement(inner->components.back().arguments[0], bridged); + } const Symbol* protocol = inner && inner->kind == TypeNode::Kind::Nominal ? _module.find(inner->usr()) : nullptr; @@ -1034,6 +1183,16 @@ class Classifier { bridged.elements.push_back(std::move(failure)); return ""; } + // Combine publishers as async sequences of their output. + if ((usr == KnownTypes::kAnyPublisher || + usr == KnownTypes::kPassthroughSubject || + usr == KnownTypes::kCurrentValueSubject) && + node.components.size() == 1 && + node.components[0].arguments.size() == 2) { + bridged.bridge = Bridge::AsyncSequence; + bridged.publisher = true; + return bridgeElement(node.components[0].arguments[0], bridged, false); + } if (usr == KnownTypes::kSet && node.components.size() == 1 && node.components[0].arguments.size() == 1) { bridged.bridge = Bridge::Set; @@ -1194,7 +1353,7 @@ class Classifier { symbol->kind == SymbolKind::TypeProperty || symbol->kind == SymbolKind::Variable || symbol->kind == SymbolKind::EnumCase; - bool isStatic = symbol->isStatic || + bool isStatic = (symbol->isStatic && !capability.operatorInstance) || symbol->kind == SymbolKind::EnumCase || symbol->kind == SymbolKind::Initializer; std::string signature = std::to_string(capability.parameters.size()); diff --git a/metadata-generator/src/Swift/CapabilityClassifier.h b/metadata-generator/src/Swift/CapabilityClassifier.h index a7c4bb93..23756365 100644 --- a/metadata-generator/src/Swift/CapabilityClassifier.h +++ b/metadata-generator/src/Swift/CapabilityClassifier.h @@ -121,6 +121,8 @@ struct BridgedType { // Closure: its result (empty for Void), and whether it throws. std::vector results; bool throwing = false; + // AsyncSequence: a Combine publisher, iterated through its `values`. + bool publisher = false; }; struct Capability { @@ -159,6 +161,17 @@ struct Capability { // for `objcName`, its Objective-C runtime name. bool objcBacked = false; std::string objcName; + // An operator whose left operand is its owner: an instance method of that + // operand (`a.plus(b)`); its parameters omit the operand. + bool operatorInstance = false; + // A bridged class or struct that is Equatable (also through Hashable or + // Comparable) or Comparable: JS gets `equals(other)` and + // `compare(other)`. + bool equatable = false; + bool comparable = false; + // A bridged class or struct conforming to AsyncSequence: its element, + // which its JS class iterates with `for await` (Symbol.asyncIterator). + std::optional asyncElement; // Bridges for SwiftGenerated callables: parameters in order, then the // result (or the property value type). diff --git a/metadata-generator/src/Swift/ProbeEmitter.cpp b/metadata-generator/src/Swift/ProbeEmitter.cpp index c93d473a..da1e2366 100644 --- a/metadata-generator/src/Swift/ProbeEmitter.cpp +++ b/metadata-generator/src/Swift/ProbeEmitter.cpp @@ -126,7 +126,8 @@ ProbeSource emitProbes(const Module& module, (opaque ? std::string() : ": " + invocation.resultType) + " = " + invocationExpression(invocation, receiver, arguments)); if (invocation.isSettable) { - out.line(" " + assignmentStatement(invocation, receiver, "newValue")); + out.line(" " + assignmentStatement(invocation, receiver, "newValue", + arguments)); } out.line("}"); out.end(); diff --git a/metadata-generator/src/Swift/SwiftSource.cpp b/metadata-generator/src/Swift/SwiftSource.cpp index 7c95d87d..96b0fa9b 100644 --- a/metadata-generator/src/Swift/SwiftSource.cpp +++ b/metadata-generator/src/Swift/SwiftSource.cpp @@ -192,18 +192,25 @@ const char* frameworkOfObjCClass(llvm::StringRef name) { return best; } -void collectObjCClasses(const BridgedType& type, std::set& out, - std::set& structs) { +// The Objective-C classes `type` names, and the frameworks its C structs and +// Combine publishers need. +void collectImports(const BridgedType& type, std::set& classes, + std::set& frameworks) { if (type.bridge == Bridge::ObjCObject && type.objcClass.find('.') == std::string::npos) { - out.insert(type.objcClass); + classes.insert(type.objcClass); } if (type.bridge == Bridge::CStruct) { - structs.insert(type.objcClass); + if (const char* framework = frameworkOfCStruct(type.objcClass)) { + frameworks.insert(framework); + } + } + if (type.publisher) { + frameworks.insert("Combine"); } for (const auto* list : {&type.elements, &type.results}) { for (const auto& element : *list) { - collectObjCClasses(element, out, structs); + collectImports(element, classes, frameworks); } } } @@ -214,7 +221,7 @@ std::string swiftImports(const Module& module, const Classification& classification) { std::set overlays; std::set classes; - std::set structs; + std::set frameworks; for (const auto& entry : module.symbols) { const Capability* capability = classification.find(entry.first); if (!capability || capability->tier != Tier::SwiftGenerated) { @@ -224,11 +231,11 @@ std::string swiftImports(const Module& module, overlays.insert(entry.second.declaringModule); } for (const auto& parameter : capability->parameters) { - collectObjCClasses(parameter, classes, structs); + collectImports(parameter, classes, frameworks); } - collectObjCClasses(capability->result, classes, structs); + collectImports(capability->result, classes, frameworks); } - std::set frameworks; + frameworks.erase("Foundation"); for (const auto& entry : module.symbols) { const Capability* capability = classification.find(entry.first); if (capability && capability->tier == Tier::SwiftGenerated && @@ -239,12 +246,6 @@ std::string swiftImports(const Module& module, frameworks.insert("UIKit"); } } - for (const auto& name : structs) { - const char* framework = frameworkOfCStruct(name); - if (framework && llvm::StringRef(framework) != "Foundation") { - frameworks.insert(framework); - } - } for (const auto& name : classes) { const char* framework = frameworkOfObjCClass(name); if (framework && llvm::StringRef(framework) != "Foundation" && @@ -279,14 +280,17 @@ Invocation describeInvocation(const Module& module, const Symbol& symbol, invocation.isMainActor = capability.isMainActor && !capability.isAsync; invocation.isSettable = capability.isSettable; - for (size_t i = 0; i < symbol.parameters.size(); i++) { + // An instance operator's receiver is its first parameter. + size_t skipped = capability.operatorInstance ? 1 : 0; + for (size_t i = skipped; i < symbol.parameters.size(); i++) { invocation.labels.push_back(symbol.parameters[i].label); - std::string type = i < capability.parameters.size() - ? typeText(capability.parameters[i], module) + size_t k = i - skipped; + std::string type = k < capability.parameters.size() + ? typeText(capability.parameters[k], module) : ""; bool isInout = - i < capability.parameters.size() && capability.parameters[i].isInout; - if (i < capability.parameters.size() && capability.parameters[i].escaping) { + k < capability.parameters.size() && capability.parameters[k].isInout; + if (k < capability.parameters.size() && capability.parameters[k].escaping) { type = "@escaping " + type; } invocation.parameterTypes.push_back(isInout ? "inout " + type : type); @@ -329,6 +333,20 @@ Invocation describeInvocation(const Module& module, const Symbol& symbol, invocation.form = Invocation::Form::EnumCase; invocation.resultType = invocation.owner; break; + case SymbolKind::InstanceSubscript: + invocation.form = Invocation::Form::InstanceSubscript; + invocation.needsReceiver = true; + invocation.receiverIsInout = valueOwner && symbol.isSettable; + break; + case SymbolKind::TypeSubscript: + invocation.form = Invocation::Form::StaticSubscript; + break; + case SymbolKind::Operator: + invocation.form = symbol.parameters.size() == 1 + ? Invocation::Form::PrefixOperator + : Invocation::Form::InfixOperator; + invocation.needsReceiver = capability.operatorInstance; + break; default: break; } @@ -340,9 +358,10 @@ Invocation describeInvocation(const Module& module, const Symbol& symbol, return invocation; } -std::string invocationExpression(const Invocation& invocation, - const std::string& receiver, - const std::vector& arguments) { +namespace { + +std::string argumentListOf(const Invocation& invocation, + const std::vector& arguments) { std::string argumentList; for (size_t i = 0; i < arguments.size(); i++) { if (i > 0) { @@ -357,7 +376,15 @@ std::string invocationExpression(const Invocation& invocation, arguments[i]; argumentList += label.empty() ? argument : label + ": " + argument; } + return argumentList; +} +} // namespace + +std::string invocationExpression(const Invocation& invocation, + const std::string& receiver, + const std::vector& arguments) { + std::string argumentList = argumentListOf(invocation, arguments); std::string expression; std::string member = swiftIdentifier(invocation.member); switch (invocation.form) { @@ -382,6 +409,24 @@ std::string invocationExpression(const Invocation& invocation, expression = invocation.owner + "." + member + (arguments.empty() ? "" : "(" + argumentList + ")"); break; + case Invocation::Form::InstanceSubscript: + expression = receiver + "[" + argumentList + "]"; + break; + case Invocation::Form::StaticSubscript: + expression = invocation.owner + "[" + argumentList + "]"; + break; + case Invocation::Form::InfixOperator: + case Invocation::Form::PrefixOperator: { + std::vector operands = arguments; + if (invocation.needsReceiver) { + operands.insert(operands.begin(), receiver); + } + expression = invocation.form == Invocation::Form::PrefixOperator + ? invocation.member + "(" + operands.at(0) + ")" + : "(" + operands.at(0) + ") " + invocation.member + + " (" + operands.at(1) + ")"; + break; + } } std::string effects = std::string(invocation.isThrowing ? "try " : "") + (invocation.isAsync ? "await " : ""); @@ -390,10 +435,16 @@ std::string invocationExpression(const Invocation& invocation, std::string assignmentStatement(const Invocation& invocation, const std::string& receiver, - const std::string& value) { - std::string target = invocation.form == Invocation::Form::InstanceProperty - ? receiver - : invocation.owner; + const std::string& value, + const std::vector& arguments) { + bool instance = invocation.form == Invocation::Form::InstanceProperty || + invocation.form == Invocation::Form::InstanceSubscript; + std::string target = instance ? receiver : invocation.owner; + if (invocation.form == Invocation::Form::InstanceSubscript || + invocation.form == Invocation::Form::StaticSubscript) { + return target + "[" + argumentListOf(invocation, arguments) + + "] = " + value; + } return target + "." + swiftIdentifier(invocation.member) + " = " + value; } diff --git a/metadata-generator/src/Swift/SwiftSource.h b/metadata-generator/src/Swift/SwiftSource.h index f04ebc99..826bbcff 100644 --- a/metadata-generator/src/Swift/SwiftSource.h +++ b/metadata-generator/src/Swift/SwiftSource.h @@ -33,14 +33,18 @@ std::string swiftIdentifier(const std::string& name); // vouches for the thunk's call. struct Invocation { enum class Form { - Construct, // Owner(args) - InstanceMethod, // receiver.name(args) - StaticMethod, // Owner.name(args) - Function, // Module.name(args) - InstanceProperty, // receiver.name - StaticProperty, // Owner.name - Variable, // Module.name - EnumCase, // Owner.name + Construct, // Owner(args) + InstanceMethod, // receiver.name(args) + StaticMethod, // Owner.name(args) + Function, // Module.name(args) + InstanceProperty, // receiver.name + StaticProperty, // Owner.name + Variable, // Module.name + EnumCase, // Owner.name + InstanceSubscript, // receiver[args] + StaticSubscript, // Owner[args] + InfixOperator, // lhs OP rhs (lhs is the receiver when needsReceiver) + PrefixOperator, // OP operand (the receiver when needsReceiver) }; Form form = Form::Function; @@ -81,8 +85,10 @@ std::string invocationExpression(const Invocation& invocation, const std::vector& arguments); // The statement that assigns `value` to a settable property or variable. +// `arguments` are a subscript's indices. std::string assignmentStatement(const Invocation& invocation, const std::string& receiver, - const std::string& value); + const std::string& value, + const std::vector& arguments = {}); } // namespace Swift diff --git a/metadata-generator/src/Swift/SwiftSurface.cpp b/metadata-generator/src/Swift/SwiftSurface.cpp index 044643fa..acf804d0 100644 --- a/metadata-generator/src/Swift/SwiftSurface.cpp +++ b/metadata-generator/src/Swift/SwiftSurface.cpp @@ -37,11 +37,93 @@ SwiftSurface::MemberKind memberKind(SymbolKind kind) { return SwiftSurface::kVariable; case SymbolKind::EnumCase: return SwiftSurface::kEnumCase; + case SymbolKind::Operator: + return SwiftSurface::kStaticMethod; + // Subscripts are methods: `subscript(...)` and `setSubscript(..., value)`. + case SymbolKind::InstanceSubscript: + return SwiftSurface::kInstanceMethod; + case SymbolKind::TypeSubscript: + return SwiftSurface::kStaticMethod; default: return SwiftSurface::kFunction; } } +// `equals(other)` and, for a Comparable type, `compare(other)`, unless the +// type declares members of those names (`==` declared explicitly is already +// `equals`). +void addComparisons(SwiftSurface& surface, const SwiftSurface::Type& type, + const Capability& capability) { + for (auto comparison : + {SwiftSurface::Member::kEquals, SwiftSurface::Member::kCompare}) { + const char* name = + comparison == SwiftSurface::Member::kEquals ? "equals" : "compare"; + bool taken = std::any_of(surface.members.begin(), surface.members.end(), + [&](const SwiftSurface::Member& member) { + return member.owner == type.index && + member.capability->jsName == name; + }); + if (taken || (comparison == SwiftSurface::Member::kCompare && + !capability.comparable)) { + continue; + } + const Symbol& owner = *type.symbol; + Symbol symbol; + symbol.preciseId = owner.preciseId; + symbol.kind = SymbolKind::InstanceMethod; + symbol.name = std::string(name) + "(_:)"; + symbol.baseName = name; + symbol.pathComponents = owner.pathComponents; + symbol.pathComponents.push_back(symbol.name); + symbol.parentId = owner.preciseId; + symbol.module = owner.module; + Parameter other; + other.internalName = "other"; + symbol.parameters.push_back(other); + symbol.docComment = + comparison == SwiftSurface::Member::kEquals + ? "Whether the values are equal (Swift's `==`)." + : "-1, 0 or 1 as this value sorts before, with or after `other` " + "(Swift's `<`): `list.sort((a, b) => a.compare(b))`."; + surface.syntheticSymbols.push_back(std::move(symbol)); + + Capability compare; + compare.tier = Tier::SwiftGenerated; + compare.jsName = name; + BridgedType self; + self.bridge = type.kind == SwiftSurface::kStruct ? Bridge::StructBox + : Bridge::ClassHandle; + self.symbolId = owner.preciseId; + self.node.kind = TypeNode::Kind::Nominal; + self.node.components.push_back( + TypeNode::Component{owner.name, owner.preciseId, {}}); + compare.parameters.push_back(self); + if (comparison == SwiftSurface::Member::kEquals) { + compare.result.bridge = Bridge::Bool; + } else { + compare.result.bridge = Bridge::Integer; + compare.result.node.kind = TypeNode::Kind::Nominal; + compare.result.node.components.push_back( + TypeNode::Component{"Int", KnownTypes::kInt, {}}); + } + surface.syntheticCapabilities.push_back(std::move(compare)); + + SwiftSurface::Member member; + member.symbol = &surface.syntheticSymbols.back(); + member.capability = &surface.syntheticCapabilities.back(); + member.owner = type.index; + member.module = type.module; + member.kind = SwiftSurface::kInstanceMethod; + member.flags = 0; + member.result = member.capability->result; + member.signature = + signatureCode(surface, member.capability->parameters[0]) + ">" + + signatureCode(surface, member.result); + member.comparison = comparison; + surface.members.push_back(std::move(member)); + } +} + } // namespace bool isSwiftUIView(const Symbol& symbol) { @@ -244,10 +326,14 @@ SwiftSurface describeSurface(const Module& module, member.module = member.owner >= 0 ? surface.types[member.owner].module : symbol.module.empty() ? module.name : symbol.module; - member.kind = memberKind(symbol.kind); + member.kind = capability->operatorInstance ? SwiftSurface::kInstanceMethod + : memberKind(symbol.kind); + bool subscript = symbol.kind == SymbolKind::InstanceSubscript || + symbol.kind == SymbolKind::TypeSubscript; member.flags = (symbol.isThrowing ? SwiftSurface::kThrows : 0) | - (capability->isSettable && member.kind != SwiftSurface::kEnumCase + (capability->isSettable && member.kind != SwiftSurface::kEnumCase && + !subscript ? SwiftSurface::kSettable : 0) | (capability->ambiguousOverload ? SwiftSurface::kAmbiguous : 0) | @@ -262,6 +348,96 @@ SwiftSurface describeSurface(const Module& module, signatureCode(surface, capability->parameters[i]); } member.signature += ">" + signatureCode(surface, member.result); + if (subscript && capability->isSettable && !capability->isAsync) { + Symbol setter = symbol; + setter.name = "setSubscript("; + for (size_t i = 0; i < symbol.parameters.size(); i++) { + setter.name += "_:"; + } + setter.name += "_:)"; + setter.baseName = "setSubscript"; + Parameter value; + value.internalName = "value"; + value.type = *symbol.valueType; + setter.parameters.push_back(value); + setter.valueType.reset(); + setter.returnType.reset(); + surface.syntheticSymbols.push_back(std::move(setter)); + + Capability assign = *capability; + assign.jsName = "setSubscript"; + assign.isSettable = false; + assign.parameters.push_back(capability->result); + assign.result = BridgedType(); + assign.result.bridge = Bridge::Void; + surface.syntheticCapabilities.push_back(std::move(assign)); + + SwiftSurface::Member assigner = member; + assigner.symbol = &surface.syntheticSymbols.back(); + assigner.capability = &surface.syntheticCapabilities.back(); + assigner.result = assigner.capability->result; + assigner.assignsSubscript = &symbol; + assigner.signature.clear(); + for (size_t i = 0; i < assigner.capability->parameters.size(); i++) { + assigner.signature += + (i > 0 ? "," : "") + + signatureCode(surface, assigner.capability->parameters[i]); + } + assigner.signature += ">v"; + surface.members.push_back(std::move(member)); + surface.members.push_back(std::move(assigner)); + continue; + } + surface.members.push_back(std::move(member)); + } + + for (const auto& type : surface.types) { + const Capability* capability = classification.find(type.symbol->preciseId); + if (capability && capability->equatable && + (type.kind == SwiftSurface::kStruct || + type.kind == SwiftSurface::kClass)) { + addComparisons(surface, type, *capability); + } + } + + for (const auto& type : surface.types) { + const Capability* capability = classification.find(type.symbol->preciseId); + if (!capability || !capability->asyncElement || + (type.kind != SwiftSurface::kStruct && + type.kind != SwiftSurface::kClass)) { + continue; + } + const Symbol& sequence = *type.symbol; + Symbol symbol; + symbol.preciseId = sequence.preciseId; + symbol.kind = SymbolKind::InstanceMethod; + symbol.name = "makeAsyncIterator()"; + symbol.baseName = kAsyncIteratorKey; + symbol.pathComponents = sequence.pathComponents; + symbol.pathComponents.push_back(symbol.name); + symbol.parentId = sequence.preciseId; + symbol.module = sequence.module; + symbol.docComment = + "Iterates the sequence: `for await (const x of value)`."; + surface.syntheticSymbols.push_back(std::move(symbol)); + + Capability iterate; + iterate.tier = Tier::SwiftGenerated; + iterate.jsName = kAsyncIteratorKey; + iterate.result.bridge = Bridge::AsyncSequence; + iterate.result.elements.push_back(*capability->asyncElement); + surface.syntheticCapabilities.push_back(std::move(iterate)); + + SwiftSurface::Member member; + member.symbol = &surface.syntheticSymbols.back(); + member.capability = &surface.syntheticCapabilities.back(); + member.owner = type.index; + member.module = type.module; + member.kind = SwiftSurface::kInstanceMethod; + member.flags = 0; + member.result = member.capability->result; + member.signature = ">" + signatureCode(surface, member.result); + member.iteratesSelf = true; surface.members.push_back(std::move(member)); } diff --git a/metadata-generator/src/Swift/SwiftSurface.h b/metadata-generator/src/Swift/SwiftSurface.h index 6137a7b6..18510ec5 100644 --- a/metadata-generator/src/Swift/SwiftSurface.h +++ b/metadata-generator/src/Swift/SwiftSurface.h @@ -14,6 +14,9 @@ namespace Swift { // thunks (ThunkEmitter) and the TypeScript declarations // (SwiftDefinitionWriter), so the two cannot disagree. Kinds, flags and // signature codes are those of NativeScript/runtime/SwiftInterop.h. +// The JS name the runtime installs under Symbol.asyncIterator. +constexpr const char* kAsyncIteratorKey = "@@asyncIterator"; + struct SwiftSurface { enum TypeKind { kClass = 0, @@ -75,6 +78,15 @@ struct SwiftSurface { // `hostingController()`, added to SwiftUI views: a UIHostingController // showing the view. bool hostsView = false; + // `setSubscript(..., value)`, added for a settable subscript: assigns + // that subscript (its symbol here). + const Symbol* assignsSubscript = nullptr; + // `[Symbol.asyncIterator]()`, added to an AsyncSequence type: iterates + // the value itself. + bool iteratesSelf = false; + // `equals(other)` or `compare(other)`, added to an Equatable or + // Comparable type: `==`, or -1, 0 or 1 from `<`. + enum Comparison { kNone, kEquals, kCompare } comparison = kNone; }; // A tagged enum's cases in registration order, which is the case index diff --git a/metadata-generator/src/Swift/SwiftTypes.cpp b/metadata-generator/src/Swift/SwiftTypes.cpp index 1f9aea60..0fd844cb 100644 --- a/metadata-generator/src/Swift/SwiftTypes.cpp +++ b/metadata-generator/src/Swift/SwiftTypes.cpp @@ -669,9 +669,14 @@ TypeNode substitute( const TypeNode& node, const std::vector>& substitutions) { if (node.kind == TypeNode::Kind::GenericParameter && - node.components.size() == 1) { + !node.components.empty()) { + // `T`, or a member path such as `C.Element`. + std::string path = node.components[0].name; + for (size_t i = 1; i < node.components.size(); i++) { + path += "." + node.components[i].name; + } for (const auto& substitution : substitutions) { - if (substitution.first == node.components[0].name) { + if (substitution.first == path) { TypeNode result = substitution.second; result.attributes.insert(result.attributes.end(), node.attributes.begin(), @@ -849,9 +854,11 @@ struct ParameterUse { // In an argument outside closures, so the arguments JS passes tell its // instantiations apart. bool inArgument = false; - // As a metatype (`T.Type`) or through an associated type (`T.Element`), - // which no stand-in substitutes. + // As a metatype (`T.Type`) or through an associated type other than a + // collection's `T.Element`, which no stand-in substitutes. bool unsupported = false; + // Through `T.Element`, which an array stand-in substitutes. + bool element = false; // As an argument of a generic type in an argument (`Box`): the type's // USR and the argument's position. std::vector> families; @@ -861,8 +868,11 @@ void collectUse(const TypeNode& node, const std::string& name, bool argument, bool inClosure, bool inMetatype, ParameterUse& use) { if (node.kind == TypeNode::Kind::GenericParameter && !node.components.empty() && node.components[0].name == name) { - if (node.components.size() > 1 || inMetatype) { + if (inMetatype || node.components.size() > 2 || + (node.components.size() == 2 && node.components[1].name != "Element")) { use.unsupported = true; + } else if (node.components.size() == 2) { + use.element = true; } else if (argument && !inClosure) { use.inArgument = true; } @@ -1075,6 +1085,16 @@ std::optional opaqueConstraint(const Module& module, // A declaration's spelling of a stand-in: a nominal, or a protocol's // existential. TypeRef typeRefOf(const TypeNode& node) { + if (node.kind == TypeNode::Kind::Array) { + TypeRef element = typeRefOf(node.children[0]); + TypeRef ref; + ref.spelling = spelling(node); + ref.fragments.push_back(Fragment{"text", "[", ""}); + ref.fragments.insert(ref.fragments.end(), element.fragments.begin(), + element.fragments.end()); + ref.fragments.push_back(Fragment{"text", "]", ""}); + return ref; + } TypeRef ref; ref.spelling = spelling(node); const TypeNode* nominal = &node; @@ -1095,6 +1115,96 @@ TypeRef typeRefOf(const TypeNode& node) { return ref; } +// Standard library collection protocols an array conforms to. +bool isArrayProtocol(llvm::StringRef name) { + name = name.substr(name.rfind('.') + 1); + return name == "Sequence" || name == "Collection" || + name == "BidirectionalCollection" || + name == "RandomAccessCollection" || name == "MutableCollection" || + name == "RangeReplaceableCollection"; +} + +TypeNode arrayOf(const TypeNode& element) { + TypeNode array; + array.kind = TypeNode::Kind::Array; + array.children.push_back(element); + return array; +} + +// Arrays standing in for `parameter` when it is constrained to a collection +// protocol: `[X]` for `parameter.Element == X`, otherwise arrays of the +// element's own stand-ins. `applies` is false for other parameters. +std::vector collectionStandIns( + const Module& module, const std::string& parameter, + const std::vector& constraints, bool& applies) { + applies = false; + std::string element = parameter + ".Element"; + std::vector onElement; + const GenericConstraint* same = nullptr; + bool other = false; + for (const auto& constraint : constraints) { + if (constraint.lhs == parameter) { + if (constraint.kind == "conformance" && + isStandardLibraryUSR(constraint.rhsPrecise) && + isArrayProtocol(constraint.rhs)) { + applies = true; + } else { + other = true; + } + } else if (constraint.lhs == element) { + if (constraint.kind == "sameType") { + same = &constraint; + } else { + GenericConstraint renamed = constraint; + renamed.lhs = "Element"; + onElement.push_back(renamed); + } + } else if (llvm::StringRef(constraint.lhs).startswith(parameter + ".")) { + other = true; + } + } + if (!applies || other) { + return {}; + } + std::vector elements; + if (same) { + if (same->rhsPrecise.empty() || + same->rhs.find_first_of(".<[ ") != std::string::npos) { + return {}; + } + elements.push_back(nominalNode(same->rhs, same->rhsPrecise)); + } else { + elements = standIns(module, "Element", onElement); + } + std::vector result; + for (const auto& node : elements) { + result.push_back(arrayOf(node)); + } + return result; +} + +// Arrays standing in for `some Sequence` (or another collection +// protocol): `[X]`, or arrays of the default stand-ins without an argument. +std::optional> opaqueCollection(const Module& module, + const TypeNode& node) { + if (node.children.size() != 1 || + node.children[0].kind != TypeNode::Kind::Nominal || + !isStandardLibraryUSR(node.children[0].usr()) || + !isArrayProtocol(node.children[0].components.back().name)) { + return std::nullopt; + } + const auto& arguments = node.children[0].components.back().arguments; + std::vector result; + if (arguments.size() == 1 && isConcrete(arguments[0])) { + result.push_back(arrayOf(arguments[0])); + } else if (arguments.empty()) { + for (const auto& element : standIns(module, "Element", {})) { + result.push_back(arrayOf(element)); + } + } + return result; +} + bool isGenericFunctionKind(SymbolKind kind) { return kind == SymbolKind::Function || kind == SymbolKind::InstanceMethod || kind == SymbolKind::TypeMethod || kind == SymbolKind::Initializer; @@ -1174,8 +1284,11 @@ void instantiateGenericFunctions(Module& module) { continue; } std::vector candidates; - if (const auto constraint = opaqueConstraint(module, node); - constraint && source.parameters[i].modifier.empty()) { + if (!source.parameters[i].modifier.empty()) { + // inout and ownership modifiers keep the opaque type. + } else if (auto arrays = opaqueCollection(module, node)) { + candidates = std::move(*arrays); + } else if (const auto constraint = opaqueConstraint(module, node)) { candidates = standIns(module, constraint->lhs, {*constraint}); } if (candidates.empty()) { @@ -1205,12 +1318,18 @@ void instantiateGenericFunctions(Module& module) { use.families[0].second); fromFamilies |= !candidates.empty(); } - if (candidates.empty() && + bool collection = false; + if (candidates.empty()) { + candidates = collectionStandIns(module, parameter.name, + source.genericConstraints, collection); + } + if (candidates.empty() && !collection && !llvm::StringRef(parameter.name).contains(' ')) { candidates = standIns(module, parameter.name, source.genericConstraints); } if (use.unsupported || candidates.empty() || + (use.element && !collection) || (candidates.size() > 1 && !use.inArgument)) { combinations = 0; break; @@ -1239,6 +1358,10 @@ void instantiateGenericFunctions(Module& module) { // A `some P` parameter's entry only marks the copy an // instantiation: its type is rewritten instead. copy.substitutions.emplace_back(targets[i].first, argument); + if (argument.kind == TypeNode::Kind::Array && targets[i].second < 0) { + copy.substitutions.emplace_back(targets[i].first + ".Element", + argument.children[0]); + } if (targets[i].second >= 0) { copy.parameters[targets[i].second].type = typeRefOf(argument); } diff --git a/metadata-generator/src/Swift/SwiftTypes.h b/metadata-generator/src/Swift/SwiftTypes.h index 52cd9f78..ee6fdc2f 100644 --- a/metadata-generator/src/Swift/SwiftTypes.h +++ b/metadata-generator/src/Swift/SwiftTypes.h @@ -85,6 +85,12 @@ constexpr const char* kData = "s:10Foundation4DataV"; constexpr const char* kDate = "s:10Foundation4DateV"; constexpr const char* kError = "s:s5ErrorP"; constexpr const char* kResult = "s:s6ResultO"; +constexpr const char* kEquatable = "s:SQ"; +constexpr const char* kHashable = "s:SH"; +constexpr const char* kComparable = "s:SL"; +constexpr const char* kAnyPublisher = "s:7Combine12AnyPublisherV"; +constexpr const char* kPassthroughSubject = "s:7Combine18PassthroughSubjectC"; +constexpr const char* kCurrentValueSubject = "s:7Combine19CurrentValueSubjectC"; } // namespace KnownTypes } // namespace Swift diff --git a/metadata-generator/src/Swift/ThunkEmitter.cpp b/metadata-generator/src/Swift/ThunkEmitter.cpp index 2c1ec8c4..0c07edff 100644 --- a/metadata-generator/src/Swift/ThunkEmitter.cpp +++ b/metadata-generator/src/Swift/ThunkEmitter.cpp @@ -388,10 +388,20 @@ class Emitter { return "__nsReportProtocol" + std::to_string(typeIndexOf(type.symbolId)) + "(" + reporter + ", " + value + ")"; - case Bridge::AsyncSequence: - return reporter + ".returnAsyncSequence(__NSAsyncIterator(" + value + - ") { r, element in " + - returnValue(type.elements.at(0), "r", "element") + " })"; + case Bridge::AsyncSequence: { + std::string report = ") { r, element in " + + returnValue(type.elements.at(0), "r", "element") + + " })"; + if (!type.publisher) { + return reporter + ".returnAsyncSequence(__NSAsyncIterator(" + value + + report; + } + // A publisher's `values` needs iOS 15; earlier systems get null. + return "if #available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *) " + "{ " + + reporter + ".returnAsyncSequence(__NSAsyncIterator(" + value + + ".values" + report + " } else { " + reporter + ".returnNull() }"; + } case Bridge::EnumCase: return reporter + ".returnString(__nsEnumName" + std::to_string(typeIndexOf(type.symbolId)) + "(" + value + "))"; @@ -406,9 +416,13 @@ class Emitter { case Bridge::Data: return reporter + ".returnBytes(" + value + ")"; case Bridge::Array: - case Bridge::Set: - return reporter + ".returnArray(" + value + ") { element in " + + case Bridge::Set: { + // `any Sequence` is copied out as an array. + bool sequence = unwrappedNode(type).kind == TypeNode::Kind::Existential; + return reporter + ".returnArray(" + + (sequence ? "Array(" + value + ")" : value) + ") { element in " + returnElement(type.elements.at(0), reporter) + " }"; + } case Bridge::Error: return reporter + ".returnErrorValue(" + value + ")"; case Bridge::Result: { @@ -565,7 +579,7 @@ class Emitter { code += " let captured = __NSUnchecked((" + list + "))\n"; unpack = " let (" + list + ") = captured.value\n"; } - code += " Task {\n" + unpack; + code += " let task = Task {\n" + unpack; if (throwing) { code += " do {\n let " + binding + annotation(resultType) + " = " + expression + "\n" + @@ -575,7 +589,7 @@ class Emitter { code += " let " + binding + annotation(resultType) + " = " + expression + "\n" + returnResult(result, " ", "completion"); } - return code + " }\n"; + return code + " }\n completion.onCancel { task.cancel() }\n"; } std::string emitMember(const SwiftSurface::Member& member) { @@ -590,6 +604,15 @@ class Emitter { if (member.hostsView) { return emitHosting(member); } + if (member.assignsSubscript) { + return emitSubscriptAssignment(member); + } + if (member.iteratesSelf) { + return emitIteration(member); + } + if (member.comparison != SwiftSurface::Member::kNone) { + return emitComparison(member); + } if (member.kind == SwiftSurface::kEnumCase) { // Cases are values (names, or objects JS builds); nothing to call. addRegistration(member, "nil", "nil"); @@ -687,6 +710,86 @@ class Emitter { return code; } + // `equals(other)` (`==`) or `compare(other)` (-1, 0, 1 from `<`). + std::string emitComparison(const SwiftSurface::Member& member) { + const Symbol& owner = *_module.find(member.symbol->parentId); + int index = _thunkCount++; + std::string code = "// " + owner.preciseId + " (" + + member.capability->jsName + ")\n" + thunkHeader(index); + std::string availability = availabilityCondition(_module, owner); + if (!availability.empty()) { + code += " guard #available(" + availability + + ") else { return rt.throwMessage(" + + quoted(owner.name + " is not available") + ") }\n"; + } + std::string receiver = bindReceiver(owner, code); + code += readArgument(member.capability->parameters[0], 1, "other", + "argument 1"); + code += member.comparison == SwiftSurface::Member::kEquals + ? " rt.returnBool(" + receiver + " == other)\n" + : " rt.returnInt64(" + receiver + " < other ? -1 : (other < " + + receiver + " ? 1 : 0))\n"; + code += "}\n\n"; + addRegistration(member, "__nsThunk" + std::to_string(index), "nil"); + return code; + } + + // `[Symbol.asyncIterator]()`: an async iterator over the receiver. + std::string emitIteration(const SwiftSurface::Member& member) { + const Symbol& sequence = *_module.find(member.symbol->parentId); + int index = _thunkCount++; + std::string code = + "// " + sequence.preciseId + " (async iterator)\n" + thunkHeader(index); + std::string availability = availabilityCondition(_module, sequence); + if (!availability.empty()) { + code += " guard #available(" + availability + + ") else { return rt.throwMessage(" + + quoted(sequence.name + " is not available") + ") }\n"; + } + std::string receiver = bindReceiver(sequence, code); + code += " " + returnValue(member.result, "rt", receiver) + "\n}\n\n"; + addRegistration(member, "__nsThunk" + std::to_string(index), "nil"); + return code; + } + + // `setSubscript(..., value)`: assigns the subscript at the indices. + std::string emitSubscriptAssignment(const SwiftSurface::Member& member) { + const Symbol& subscript = *member.assignsSubscript; + const Capability& capability = *_classification.find(subscript.preciseId); + Invocation invocation = describeInvocation(_module, subscript, capability); + const Symbol* owner = + subscript.parentId.empty() ? nullptr : _module.find(subscript.parentId); + int index = _thunkCount++; + std::string code = + "// " + subscript.preciseId + " (setter)\n" + thunkHeader(index); + code += availabilityGuard(invocation, subscript); + std::string receiver; + int firstArgument = 0; + if (invocation.needsReceiver) { + receiver = bindReceiver(*owner, code); + firstArgument = 1; + } + std::vector indices; + for (size_t i = 0; i < capability.parameters.size(); i++) { + std::string name = "a" + std::to_string(i); + code += readArgument(capability.parameters[i], + firstArgument + static_cast(i), name, + "argument " + std::to_string(i + 1)); + indices.push_back(name); + } + code += readArgument( + capability.result, + firstArgument + static_cast(capability.parameters.size()), + "newValue", "value"); + std::string body = + " " + assignmentStatement(invocation, receiver, "newValue", indices) + + "\n rt.returnVoid()\n"; + code += invocation.isMainActor ? onMainActor(subscript, body) : body; + code += "}\n\n"; + addRegistration(member, "__nsThunk" + std::to_string(index), "nil"); + return code; + } + // `view.hostingController()`: the boxed view in a UIHostingController, // created on the main actor. std::string emitHosting(const SwiftSurface::Member& member) { @@ -984,6 +1087,18 @@ private struct __NSCompletion: @unchecked Sendable, __NSReporter { let api: UnsafeRawPointer let token: UnsafeMutableRawPointer + // `cancel` runs when JS aborts the call (its AbortSignal); the runtime + // drops it once the call settles. + func onCancel(_ cancel: @escaping @Sendable () -> Void) { + let box = Unmanaged.passRetained(__NSCancellation(cancel)).toOpaque() + slot(56, (@convention(c) (UnsafeMutableRawPointer, UnsafeMutableRawPointer, + @convention(c) (UnsafeMutableRawPointer) -> Void, + @convention(c) (UnsafeMutableRawPointer) -> Void) -> Void).self)( + token, box, + { Unmanaged<__NSCancellation>.fromOpaque($0).takeUnretainedValue().cancel() }, + { Unmanaged<__NSCancellation>.fromOpaque($0).release() }) + } + private func slot(_ index: Int, _: Function.Type) -> Function { api.load(fromByteOffset: index * 8, as: Function.self) } @@ -1116,6 +1231,29 @@ private final class __NSCallback: @unchecked Sendable { } } +private final class __NSCancellation { + let cancel: @Sendable () -> Void + init(_ cancel: @escaping @Sendable () -> Void) { self.cancel = cancel } +} + +// The adapter of JS object argument `i`: the one already made for that JS +// object and protocol, so Swift sees one identity, or a new one the runtime +// keeps for as long as the JS object lives. +private func __nsAdapter(_ slots: __NSSlots, _ i: Int, + _ make: (__NSJSObject) -> A) -> A { + let handle = slots.callback(i) + let existing = slots.api.load(fromByteOffset: 54 * 8, + as: (@convention(c) (UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?).self)(handle) + if let existing, let adapter = Unmanaged.fromOpaque(existing).takeUnretainedValue() as? A { + return adapter + } + let adapter = make(__NSJSObject(api: slots.api, handle: handle)) + slots.api.load(fromByteOffset: 55 * 8, + as: (@convention(c) (UnsafeMutableRawPointer, UnsafeMutableRawPointer) -> Void).self)( + handle, Unmanaged.passRetained(adapter).toOpaque()) + return adapter +} + // A JS object implementing a protocol; adapters call its members. Calls from // other threads run on the isolate's thread and wait for it. private final class __NSJSObject: @unchecked Sendable { @@ -1441,9 +1579,9 @@ private func __nsRelease(_ object: UnsafeMutableRawPointer) { out += attribute + "private func __nsProtocol" + index + "(_ slots: __NSSlots, _ i: Int) -> (" + existential + ")? {\n" - " if slots.tag(i) == 12 {\n return " + + " if slots.tag(i) == 12 {\n return __nsAdapter(slots, i) { " + adapter + - "(__NSJSObject(api: slots.api, handle: slots.callback(i)))\n }\n" + "($0) }\n }\n" " let object = slots.object(i)\n" " if let box = object as? __NSAnyBox { return box.anyValue as? " + existential + " }\n return object as? " + existential + "\n}\n\n"; diff --git a/metadata-generator/src/Swift/ThunkEmitter.h b/metadata-generator/src/Swift/ThunkEmitter.h index d69d0c25..bd4754d2 100644 --- a/metadata-generator/src/Swift/ThunkEmitter.h +++ b/metadata-generator/src/Swift/ThunkEmitter.h @@ -9,7 +9,7 @@ namespace Swift { // ABI version the emitted thunks implement; must match NS_SWIFT_ABI_VERSION // in NativeScript/runtime/SwiftInterop.h, which documents the contract. -constexpr int kThunkABIVersion = 13; +constexpr int kThunkABIVersion = 15; struct ThunkSource { std::string source; diff --git a/metadata-generator/src/TypeScript/SwiftDefinitionWriter.cpp b/metadata-generator/src/TypeScript/SwiftDefinitionWriter.cpp index 26ad546a..890cce24 100644 --- a/metadata-generator/src/TypeScript/SwiftDefinitionWriter.cpp +++ b/metadata-generator/src/TypeScript/SwiftDefinitionWriter.cpp @@ -56,6 +56,9 @@ bool isIdentifier(const std::string& name) { } std::string propertyKey(const std::string& name) { + if (name == kAsyncIteratorKey) { + return "[Symbol.asyncIterator]"; + } return isIdentifier(name) ? name : "\"" + name + "\""; } @@ -679,14 +682,21 @@ class Writer { parts.push_back("value: " + receiver); } const auto& parameters = member.capability->parameters; + // An instance operator's receiver is its first parameter. + size_t skipped = member.capability->operatorInstance ? 1 : 0; for (size_t i = 0; i < parameters.size(); i++) { - const Parameter* parameter = i < member.symbol->parameters.size() - ? &member.symbol->parameters[i] - : nullptr; + const Parameter* parameter = + i + skipped < member.symbol->parameters.size() + ? &member.symbol->parameters[i + skipped] + : nullptr; std::string name = parameter ? parameterName(*parameter, i) : "arg" + std::to_string(i); parts.push_back(name + ": " + inputType(parameters[i])); } + if (member.flags & SwiftSurface::kAsync) { + // Aborting rejects the Promise and cancels the Swift task. + parts.push_back("signal?: AbortSignal"); + } return llvm::join(parts, ", "); } diff --git a/metadata-generator/tests/swift/ClassifierTests.cpp b/metadata-generator/tests/swift/ClassifierTests.cpp index 97a8673e..aa59d7ca 100644 --- a/metadata-generator/tests/swift/ClassifierTests.cpp +++ b/metadata-generator/tests/swift/ClassifierTests.cpp @@ -112,8 +112,8 @@ TEST(ClassifyRejections) { EXPECT_TIER("halve(_:)", Tier::SwiftGenerated); EXPECT_TIER("Loader.lookup(table:key:)", Tier::SwiftGenerated); EXPECT_TIER("Canvas.draw(_:)", Tier::Unsupported, "existential"); - EXPECT_TIER("Ring.+(_:_:)", Tier::Unsupported, "operator"); - EXPECT_TIER("Polygon.subscript(_:)", Tier::Unsupported, "subscript"); + EXPECT_TIER("Ring.+(_:_:)", Tier::SwiftGenerated); + EXPECT_TIER("Polygon.subscript(_:)", Tier::SwiftGenerated); EXPECT_TIER("String.shouted", Tier::Unsupported, "external-type-extension"); EXPECT_TIER("Measurement.isNone", Tier::SwiftGenerated); EXPECT_TIER("Job.idle", Tier::Unsupported, "owner-not-bridged"); diff --git a/metadata-generator/tests/swift/SymbolGraphLoaderTests.cpp b/metadata-generator/tests/swift/SymbolGraphLoaderTests.cpp index b2d00a28..1210e46a 100644 --- a/metadata-generator/tests/swift/SymbolGraphLoaderTests.cpp +++ b/metadata-generator/tests/swift/SymbolGraphLoaderTests.cpp @@ -98,6 +98,8 @@ TEST(TopLevelDeclarationsInSourceOrder) { "topRank(_:)", "greetInBackground(_:)", "GreetingHolder", + "WeakGreetingHolder", + "GreetingRegistry", "starterWallet(for:)", "sum(of:)", "flip(_:)", @@ -128,6 +130,11 @@ TEST(TopLevelDeclarationsInSourceOrder) { "countDown(from:failingAt:)", "letters(of:)", "pages(_:)", + "Countdown", + "WordStream", + "Thermometer", + "StreamLog", + "ticker()", "checkedSide(_:)", "echoInt8(_:)", "echoUInt64(_:)", @@ -206,6 +213,16 @@ TEST(TopLevelDeclarationsInSourceOrder) { "shoutAll(_:)", "describeValue(_:)", "greetOnce(_:_:)", + "CancelLog", + "waitForCancel(_:)", + "Shelf", + "Grid", + "Vector2", + "Version", + "sumAll(_:)", + "longestWord(_:)", + "joinAll(_:)", + "evens(below:)", "describe(_:)", "makeLabel(_:)", "tags(_:)", @@ -620,7 +637,12 @@ TEST(GenericFunctionInstantiations) { CHECK(standIns("greetOnce(_:_:)") == List({"some Greeting=any Greeting"})); CHECK(standIns("tagOf(_:)") == List({"some UIView=UIView"})); CHECK(standIns("decodeJSON(_:from:)").empty()); - CHECK(standIns("firstElement(_:)").empty()); + // Collection protocols: arrays of the element's stand-ins. + CHECK(standIns("firstElement(_:)") == + List({"C=[Bool],C.Element=Bool", "C=[Double],C.Element=Double", + "C=[String],C.Element=String"})); + CHECK(standIns("longestWord(_:)") == List({"C=[String],C.Element=String"})); + CHECK(standIns("sumAll(_:)") == List({"some Sequence=[Int]"})); // 3 x 3 combinations. CHECK(standIns("joined(_:_:)").empty()); } diff --git a/metadata-generator/tests/swift/ThunkEmitterTests.cpp b/metadata-generator/tests/swift/ThunkEmitterTests.cpp index 554906e8..e0661c7e 100644 --- a/metadata-generator/tests/swift/ThunkEmitterTests.cpp +++ b/metadata-generator/tests/swift/ThunkEmitterTests.cpp @@ -47,7 +47,7 @@ TEST(ThunkRegistration) { "ns_swift_register_SwiftDemoKit"})); CHECK_EQ(thunks().fingerprint.size(), size_t(16)); CHECK(thunks().thunkCount > 0); - CHECK(registers("registerModule(registrar, 13, \"SwiftDemo\", \"" + + CHECK(registers("registerModule(registrar, 15, \"SwiftDemo\", \"" + thunks().fingerprint + "\", __nsRelease)")); // Cases of a tagged enum register their associated values' codes. CHECK(registers("\"tooManySides\", \"tooManySides(count:limit:)\", \"i64,i64>t")); diff --git a/metadata-generator/tests/swift/snapshots/SwiftDemo.coverage.json b/metadata-generator/tests/swift/snapshots/SwiftDemo.coverage.json index 0a40e847..f27baa41 100644 --- a/metadata-generator/tests/swift/snapshots/SwiftDemo.coverage.json +++ b/metadata-generator/tests/swift/snapshots/SwiftDemo.coverage.json @@ -2,24 +2,24 @@ "module": "SwiftDemo", "totals": { "declarations": { - "total": 1221, + "total": 1339, "objc-direct": 3, - "swift-generated": 321, - "swift-specialized": 371, - "type-only": 5, - "unsupported": 521, + "swift-generated": 381, + "swift-specialized": 401, + "type-only": 6, + "unsupported": 548, "not-applicable": 0 }, "callable": { - "total": 1171, + "total": 1275, "objc-direct": 1, - "swift-generated": 280, - "swift-specialized": 368, + "swift-generated": 327, + "swift-specialized": 398, "type-only": 2, - "unsupported": 520, + "unsupported": 547, "not-applicable": 0 }, - "effectiveCallable": 281, + "effectiveCallable": 328, "compilerVerified": false, "compiledThunks": null, "runtimeTested": null @@ -35,9 +35,9 @@ "not-applicable": 0 }, "class": { - "total": 18, + "total": 25, "objc-direct": 2, - "swift-generated": 15, + "swift-generated": 22, "swift-specialized": 1, "type-only": 0, "unsupported": 0, @@ -62,57 +62,57 @@ "not-applicable": 0 }, "function": { - "total": 107, + "total": 113, "objc-direct": 0, - "swift-generated": 104, - "swift-specialized": 3, + "swift-generated": 111, + "swift-specialized": 2, "type-only": 0, "unsupported": 0, "not-applicable": 0 }, "initializer": { - "total": 33, + "total": 42, "objc-direct": 0, - "swift-generated": 31, + "swift-generated": 40, "swift-specialized": 2, "type-only": 0, "unsupported": 0, "not-applicable": 0 }, "instanceMethod": { - "total": 914, + "total": 974, "objc-direct": 0, - "swift-generated": 53, - "swift-specialized": 357, + "swift-generated": 63, + "swift-specialized": 385, "type-only": 0, - "unsupported": 504, + "unsupported": 526, "not-applicable": 0 }, "instanceProperty": { - "total": 65, + "total": 75, "objc-direct": 1, - "swift-generated": 55, + "swift-generated": 65, "swift-specialized": 3, "type-only": 1, "unsupported": 5, "not-applicable": 0 }, "instanceSubscript": { - "total": 1, + "total": 4, "objc-direct": 0, - "swift-generated": 0, + "swift-generated": 4, "swift-specialized": 0, "type-only": 0, - "unsupported": 1, + "unsupported": 0, "not-applicable": 0 }, "operator": { - "total": 5, + "total": 19, "objc-direct": 0, - "swift-generated": 0, - "swift-specialized": 0, + "swift-generated": 5, + "swift-specialized": 3, "type-only": 0, - "unsupported": 5, + "unsupported": 11, "not-applicable": 0 }, "protocol": { @@ -125,20 +125,20 @@ "not-applicable": 0 }, "struct": { - "total": 13, + "total": 19, "objc-direct": 0, - "swift-generated": 12, + "swift-generated": 18, "swift-specialized": 1, "type-only": 0, "unsupported": 0, "not-applicable": 0 }, "typeAlias": { - "total": 2, + "total": 3, "objc-direct": 0, "swift-generated": 0, "swift-specialized": 0, - "type-only": 2, + "type-only": 3, "unsupported": 0, "not-applicable": 0 }, @@ -152,9 +152,9 @@ "not-applicable": 0 }, "typeProperty": { - "total": 8, + "total": 10, "objc-direct": 0, - "swift-generated": 6, + "swift-generated": 8, "swift-specialized": 1, "type-only": 1, "unsupported": 0, @@ -171,17 +171,16 @@ } }, "reasons": { - "closure": 8, + "closure": 24, "enum-associated-values": 1, - "existential": 4, + "existential": 6, "external-type-extension": 2, - "generic": 364, + "generic": 402, "opaque-type": 413, - "operator": 5, + "operator": 11, "owner-not-bridged": 12, - "subscript": 1, "unavailable": 5, - "unbridged-type": 536, + "unbridged-type": 546, "variadic-parameter": 8 }, "symbols": [ @@ -8867,6 +8866,44 @@ "jsName": "constructor", "location": "file://Sources/SwiftDemo/Observing.swift:11" }, + { + "id": "s:9SwiftDemo10WordStreamC", + "path": "WordStream", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:72" + }, + { + "id": "s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF", + "path": "WordStream.makeAsyncIterator()", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "makeAsyncIterator", + "location": "file://Sources/SwiftDemo/Streams.swift:80" + }, + { + "id": "s:9SwiftDemo10WordStreamC8IteratorV", + "path": "WordStream.Iterator", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:76" + }, + { + "id": "s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF", + "path": "WordStream.Iterator.next()", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "next", + "location": "file://Sources/SwiftDemo/Streams.swift:78" + }, + { + "id": "s:9SwiftDemo10WordStreamCyACSScfc", + "path": "WordStream.init(_:)", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Streams.swift:74" + }, { "id": "s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF", "path": "allFlavors()", @@ -9084,6 +9121,45 @@ "jsName": "length", "location": "file://Sources/SwiftDemo/Shapes.swift:62" }, + { + "id": "s:9SwiftDemo11ThermometerC", + "path": "Thermometer", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:84" + }, + { + "id": "s:9SwiftDemo11ThermometerC6finishyyF", + "path": "Thermometer.finish()", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "finish", + "location": "file://Sources/SwiftDemo/Streams.swift:89" + }, + { + "id": "s:9SwiftDemo11ThermometerC6recordyySdF", + "path": "Thermometer.record(_:)", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "record", + "location": "file://Sources/SwiftDemo/Streams.swift:88" + }, + { + "id": "s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp", + "path": "Thermometer.readings", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "readings", + "location": "file://Sources/SwiftDemo/Streams.swift:87" + }, + { + "id": "s:9SwiftDemo11ThermometerCACycfc", + "path": "Thermometer.init()", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Streams.swift:86" + }, { "id": "s:9SwiftDemo11checkedSideyS2dKF", "path": "checkedSide(_:)", @@ -9116,6 +9192,21 @@ "jsName": "knownScores", "location": "file://Sources/SwiftDemo/Values.swift:218" }, + { + "id": "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF", + "path": "longestWord(_:)", + "kind": "function", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:309" + }, + { + "id": "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF@<[s:SS]>", + "path": "longestWord(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "longestWord", + "location": "file://Sources/SwiftDemo/Values.swift:309" + }, { "id": "s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF", "path": "parseNumber(_:)", @@ -9174,10 +9265,31 @@ "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF", "path": "firstElement(_:)", "kind": "function", - "tier": "swift-specialized", - "reasons": [ - "generic" - ], + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:212" + }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:SS]>", + "path": "firstElement(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "firstElement", + "location": "file://Sources/SwiftDemo/Values.swift:212" + }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sb]>", + "path": "firstElement(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "firstElement", + "location": "file://Sources/SwiftDemo/Values.swift:212" + }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sd]>", + "path": "firstElement(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "firstElement", "location": "file://Sources/SwiftDemo/Values.swift:212" }, { @@ -9329,12 +9441,20 @@ "jsName": "starterWallet", "location": "file://Sources/SwiftDemo/Purse.swift:5" }, + { + "id": "s:9SwiftDemo13waitForCancelySbSdYaF", + "path": "waitForCancel(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "waitForCancel", + "location": "file://Sources/SwiftDemo/Values.swift:261" + }, { "id": "s:9SwiftDemo14CountdownErrorV", "path": "CountdownError", "kind": "struct", "tier": "swift-generated", - "location": "file://Sources/SwiftDemo/Streams.swift:14" + "location": "file://Sources/SwiftDemo/Streams.swift:15" }, { "id": "s:9SwiftDemo14DoublingScorerV", @@ -9437,6 +9557,53 @@ "jsName": "constructor", "location": "file://Sources/SwiftDemo/Protocols.swift:63" }, + { + "id": "s:9SwiftDemo16GreetingRegistryC", + "path": "GreetingRegistry", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Protocols.swift:75" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF", + "path": "GreetingRegistry.add(_:)", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "add", + "location": "file://Sources/SwiftDemo/Protocols.swift:79" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC5countSivp", + "path": "GreetingRegistry.count", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "count", + "location": "file://Sources/SwiftDemo/Protocols.swift:78" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF", + "path": "GreetingRegistry.remove(_:)", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "remove", + "location": "file://Sources/SwiftDemo/Protocols.swift:80" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF", + "path": "GreetingRegistry.contains(_:)", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "contains", + "location": "file://Sources/SwiftDemo/Protocols.swift:81" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryCACycfc", + "path": "GreetingRegistry.init()", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Protocols.swift:77" + }, { "id": "s:9SwiftDemo16makeDefaultPointAA0E0VyF", "path": "makeDefaultPoint()", @@ -9461,6 +9628,37 @@ "jsName": "greetInBackground", "location": "file://Sources/SwiftDemo/Protocols.swift:56" }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC", + "path": "WeakGreetingHolder", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Protocols.swift:68" + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF", + "path": "WeakGreetingHolder.greet(_:)", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "greet", + "location": "file://Sources/SwiftDemo/Protocols.swift:71" + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp", + "path": "WeakGreetingHolder.greeting", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "greeting", + "location": "file://Sources/SwiftDemo/Protocols.swift:69" + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderCACycfc", + "path": "WeakGreetingHolder.init()", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Protocols.swift:70" + }, { "id": "s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF", "path": "computeInBackground(_:)", @@ -9531,6 +9729,37 @@ "jsName": "sum", "location": "file://Sources/SwiftDemo/Purse.swift:11" }, + { + "id": "s:9SwiftDemo4GridV", + "path": "Grid", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:281" + }, + { + "id": "s:9SwiftDemo4GridV4sizeACSi_tcfc", + "path": "Grid.init(size:)", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Values.swift:283" + }, + { + "id": "s:9SwiftDemo4GridV5cellsSaySiGvp", + "path": "Grid.cells", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "cells", + "location": "file://Sources/SwiftDemo/Values.swift:282" + }, + { + "id": "s:9SwiftDemo4GridVyS2icip", + "path": "Grid.subscript(_:)", + "kind": "instanceSubscript", + "tier": "swift-generated", + "jsName": "subscript", + "location": "file://Sources/SwiftDemo/Values.swift:284" + }, { "id": "s:9SwiftDemo4NoteC4tagsShySSGvp", "path": "Note.tags", @@ -9590,10 +9819,8 @@ "id": "s:9SwiftDemo4RingV1poiyA2C_ACtFZ", "path": "Ring.+(_:_:)", "kind": "operator", - "tier": "unsupported", - "reasons": [ - "operator" - ], + "tier": "swift-generated", + "jsName": "plus", "location": "file://Sources/SwiftDemo/Shapes.swift:91" }, { @@ -9890,6 +10117,37 @@ ], "location": "file://Sources/SwiftDemo/Shapes.swift:5" }, + { + "id": "s:9SwiftDemo5ShelfC", + "path": "Shelf", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:272" + }, + { + "id": "s:9SwiftDemo5ShelfCACycfc", + "path": "Shelf.init()", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Values.swift:274" + }, + { + "id": "s:9SwiftDemo5ShelfCySSSi_Sitcip", + "path": "Shelf.subscript(_:_:)", + "kind": "instanceSubscript", + "tier": "swift-generated", + "jsName": "subscript", + "location": "file://Sources/SwiftDemo/Values.swift:279" + }, + { + "id": "s:9SwiftDemo5ShelfCySiSgSScip", + "path": "Shelf.subscript(_:)", + "kind": "instanceSubscript", + "tier": "swift-generated", + "jsName": "subscript", + "location": "file://Sources/SwiftDemo/Values.swift:275" + }, { "id": "s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF", "path": "boxed(_:)", @@ -9906,6 +10164,14 @@ "jsName": "clear", "location": "file://Sources/SwiftDemo/Values.swift:172" }, + { + "id": "s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF", + "path": "evens(below:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "evens", + "location": "file://Sources/SwiftDemo/Values.swift:313" + }, { "id": "s:9SwiftDemo5halveyySizKF", "path": "halve(_:)", @@ -9944,7 +10210,7 @@ "kind": "function", "tier": "swift-generated", "jsName": "pages", - "location": "file://Sources/SwiftDemo/Streams.swift:42" + "location": "file://Sources/SwiftDemo/Streams.swift:43" }, { "id": "s:9SwiftDemo5shoutySSSgACF", @@ -10327,6 +10593,29 @@ "jsName": "settle", "location": "file://Sources/SwiftDemo/Purse.swift:32" }, + { + "id": "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF", + "path": "sumAll(_:)", + "kind": "function", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:308" + }, + { + "id": "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF@<[s:Si]>", + "path": "sumAll(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "sumAll", + "location": "file://Sources/SwiftDemo/Values.swift:308" + }, + { + "id": "s:9SwiftDemo6tickerScSySiGyF", + "path": "ticker()", + "kind": "function", + "tier": "swift-generated", + "jsName": "ticker", + "location": "file://Sources/SwiftDemo/Streams.swift:96" + }, { "id": "s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF", "path": "unwrap(_:)", @@ -10684,10 +10973,8 @@ "id": "s:9SwiftDemo7PolygonCyAA5PointVSicip", "path": "Polygon.subscript(_:)", "kind": "instanceSubscript", - "tier": "unsupported", - "reasons": [ - "subscript" - ], + "tier": "swift-generated", + "jsName": "subscript", "location": "file://Sources/SwiftDemo/Shapes.swift:30" }, { @@ -10729,6 +11016,100 @@ "jsName": "liveCount", "location": "file://Sources/SwiftDemo/Values.swift:17" }, + { + "id": "s:9SwiftDemo7Vector2V", + "path": "Vector2", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:292" + }, + { + "id": "s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ", + "path": "Vector2.*(_:_:)", + "kind": "operator", + "tier": "swift-generated", + "jsName": "times", + "location": "file://Sources/SwiftDemo/Values.swift:298" + }, + { + "id": "s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ", + "path": "Vector2.+(_:_:)", + "kind": "operator", + "tier": "swift-generated", + "jsName": "plus", + "location": "file://Sources/SwiftDemo/Values.swift:296" + }, + { + "id": "s:9SwiftDemo7Vector2V1sopyA2CFZ", + "path": "Vector2.-(_:)", + "kind": "operator", + "tier": "swift-generated", + "jsName": "negated", + "location": "file://Sources/SwiftDemo/Values.swift:297" + }, + { + "id": "s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc", + "path": "Vector2.init(x:y:)", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Values.swift:295" + }, + { + "id": "s:9SwiftDemo7Vector2V1xSdvp", + "path": "Vector2.x", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "x", + "location": "file://Sources/SwiftDemo/Values.swift:293" + }, + { + "id": "s:9SwiftDemo7Vector2V1ySdvp", + "path": "Vector2.y", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "y", + "location": "file://Sources/SwiftDemo/Values.swift:294" + }, + { + "id": "s:9SwiftDemo7VersionV", + "path": "Version", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Values.swift:300" + }, + { + "id": "s:9SwiftDemo7VersionV1loiySbAC_ACtFZ", + "path": "Version.<(_:_:)", + "kind": "operator", + "tier": "swift-generated", + "jsName": "lessThan", + "location": "file://Sources/SwiftDemo/Values.swift:304" + }, + { + "id": "s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc", + "path": "Version.init(major:minor:)", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Values.swift:303" + }, + { + "id": "s:9SwiftDemo7VersionV5majorSivp", + "path": "Version.major", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "major", + "location": "file://Sources/SwiftDemo/Values.swift:301" + }, + { + "id": "s:9SwiftDemo7VersionV5minorSivp", + "path": "Version.minor", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "minor", + "location": "file://Sources/SwiftDemo/Values.swift:302" + }, { "id": "s:9SwiftDemo7compactySaySiGSaySiSgGF", "path": "compact(_:)", @@ -10743,7 +11124,7 @@ "kind": "function", "tier": "swift-generated", "jsName": "countUp", - "location": "file://Sources/SwiftDemo/Streams.swift:5" + "location": "file://Sources/SwiftDemo/Streams.swift:6" }, { "id": "s:9SwiftDemo7echoIntyS2iF", @@ -10792,6 +11173,14 @@ "jsName": "fitting", "location": "file://Sources/SwiftDemo/Views.swift:59" }, + { + "id": "s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF", + "path": "joinAll(_:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "joinAll", + "location": "file://Sources/SwiftDemo/Values.swift:312" + }, { "id": "s:9SwiftDemo7largestyxSgSayxGSLRzlF", "path": "largest(_:)", @@ -10829,7 +11218,7 @@ "kind": "function", "tier": "swift-generated", "jsName": "letters", - "location": "file://Sources/SwiftDemo/Streams.swift:33" + "location": "file://Sources/SwiftDemo/Streams.swift:34" }, { "id": "s:9SwiftDemo7measure_2byAA11MeasurementOSd_SdSgtF", @@ -11154,12 +11543,106 @@ "location": "file://Sources/SwiftDemo/Values.swift:63" }, { - "id": "s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF", - "path": "countDown(from:failingAt:)", - "kind": "function", + "id": "s:9SwiftDemo9CancelLogC", + "path": "CancelLog", + "kind": "class", "tier": "swift-generated", - "jsName": "countDown", - "location": "file://Sources/SwiftDemo/Streams.swift:16" + "location": "file://Sources/SwiftDemo/Values.swift:258" + }, + { + "id": "s:9SwiftDemo9CancelLogC13cancellationsSivpZ", + "path": "CancelLog.cancellations", + "kind": "typeProperty", + "tier": "swift-generated", + "jsName": "cancellations", + "location": "file://Sources/SwiftDemo/Values.swift:259" + }, + { + "id": "s:9SwiftDemo9CountdownV", + "path": "Countdown", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:54" + }, + { + "id": "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "path": "Countdown.AsyncIterator", + "kind": "struct", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:60" + }, + { + "id": "s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF", + "path": "Countdown.AsyncIterator.next()", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "next", + "location": "file://Sources/SwiftDemo/Streams.swift:62" + }, + { + "id": "s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF", + "path": "Countdown.makeAsyncIterator()", + "kind": "instanceMethod", + "tier": "swift-generated", + "jsName": "makeAsyncIterator", + "location": "file://Sources/SwiftDemo/Streams.swift:68" + }, + { + "id": "s:9SwiftDemo9CountdownV4fromACSi_tcfc", + "path": "Countdown.init(from:)", + "kind": "initializer", + "tier": "swift-generated", + "jsName": "constructor", + "location": "file://Sources/SwiftDemo/Streams.swift:57" + }, + { + "id": "s:9SwiftDemo9CountdownV5labelSSvp", + "path": "Countdown.label", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "label", + "location": "file://Sources/SwiftDemo/Streams.swift:58" + }, + { + "id": "s:9SwiftDemo9CountdownV5startSivp", + "path": "Countdown.start", + "kind": "instanceProperty", + "tier": "swift-generated", + "jsName": "start", + "location": "file://Sources/SwiftDemo/Streams.swift:56" + }, + { + "id": "s:9SwiftDemo9CountdownV7Elementa", + "path": "Countdown.Element", + "kind": "typeAlias", + "tier": "type-only", + "reasons": [ + "type-alias" + ], + "location": "file://Sources/SwiftDemo/Streams.swift:55" + }, + { + "id": "s:9SwiftDemo9StreamLogC", + "path": "StreamLog", + "kind": "class", + "tier": "swift-generated", + "location": "file://Sources/SwiftDemo/Streams.swift:93" + }, + { + "id": "s:9SwiftDemo9StreamLogC12terminationsSivpZ", + "path": "StreamLog.terminations", + "kind": "typeProperty", + "tier": "swift-generated", + "jsName": "terminations", + "location": "file://Sources/SwiftDemo/Streams.swift:94" + }, + { + "id": "s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF", + "path": "countDown(from:failingAt:)", + "kind": "function", + "tier": "swift-generated", + "jsName": "countDown", + "location": "file://Sources/SwiftDemo/Streams.swift:17" }, { "id": "s:9SwiftDemo9countdown4from_ySi_ySi_SbtXEtF", @@ -11240,6 +11723,78 @@ "jsName": "transform", "location": "file://Sources/SwiftDemo/Values.swift:187" }, + { + "id": "s:SLsE3zzloiySnyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version...<(_:_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version...<(_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version....(_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SLsE3zzzoiySNyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version....(_:_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version....(_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SLsRi_zRi0_zrlE1goiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version.>(_:_:)", + "kind": "operator", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version.>=(_:_:)", + "kind": "operator", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version.<=(_:_:)", + "kind": "operator", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, { "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:12SwiftDemoKit4CoinO", "path": "Coin.!=(_:_:)", @@ -11276,6 +11831,24 @@ "operator" ] }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7Vector2V", + "path": "Vector2.!=(_:_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "path": "Version.!=(_:_:)", + "kind": "operator", + "tier": "unsupported", + "reasons": [ + "operator" + ] + }, { "id": "s:SS9SwiftDemoE7shoutedSSvp", "path": "String.shouted", @@ -11448,6 +12021,470 @@ "unbridged-type:Swift.StaticString" ] }, + { + "id": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV", + "path": "WordStream.Iterator.next()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV", + "path": "Countdown.AsyncIterator.next()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV", + "path": "WordStream.Iterator.next(isolation:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "existential", + "generic" + ] + }, + { + "id": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV", + "path": "Countdown.AsyncIterator.next(isolation:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "existential", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.allSatisfy(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.allSatisfy(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.compactMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.compactMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.compactMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.compactMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.map(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.map(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.map(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.map(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.max(by:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.max(by:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.min(by:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.min(by:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.drop(while:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncDropWhileSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.drop(while:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncDropWhileSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.first(where:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.first(where:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.filter(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncFilterSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.filter(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncFilterSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.prefix(while:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncPrefixWhileSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.prefix(while:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure", + "unbridged-type:_Concurrency.AsyncPrefixWhileSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.prefix(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "unbridged-type:_Concurrency.AsyncPrefixSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.prefix(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "unbridged-type:_Concurrency.AsyncPrefixSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.reduce(into:_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.reduce(into:_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.reduce(_:_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.reduce(_:_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.flatMap(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.contains(where:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure" + ] + }, + { + "id": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.contains(where:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "closure" + ] + }, + { + "id": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.dropFirst(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "unbridged-type:_Concurrency.AsyncDropFirstSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.dropFirst(_:)", + "kind": "instanceMethod", + "tier": "unsupported", + "reasons": [ + "unbridged-type:_Concurrency.AsyncDropFirstSequence" + ] + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.max()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.max()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.min()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.min()", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "path": "WordStream.contains(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, + { + "id": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "path": "Countdown.contains(_:)", + "kind": "instanceMethod", + "tier": "swift-specialized", + "reasons": [ + "generic" + ] + }, { "id": "s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO", "path": "ShapeError.localizedDescription", diff --git a/metadata-generator/tests/swift/snapshots/SwiftDemo.ir.json b/metadata-generator/tests/swift/snapshots/SwiftDemo.ir.json index 9045a7cb..4b2a4c0a 100644 --- a/metadata-generator/tests/swift/snapshots/SwiftDemo.ir.json +++ b/metadata-generator/tests/swift/snapshots/SwiftDemo.ir.json @@ -35,6 +35,8 @@ "s:9SwiftDemo7topRankySSAA12RankedScorer_pKF", "s:9SwiftDemo17greetInBackgroundySSAA8Greeting_pYaF", "s:9SwiftDemo14GreetingHolderC", + "s:9SwiftDemo18WeakGreetingHolderC", + "s:9SwiftDemo16GreetingRegistryC", "s:9SwiftDemo13starterWallet3for0aB3Kit0D0CSS_tF", "s:9SwiftDemo3sum2of0aB3Kit5MoneyVSayAFG_tF", "s:9SwiftDemo4flipy0aB3Kit4CoinOAEF", @@ -71,6 +73,11 @@ "s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF", "s:9SwiftDemo7letters2ofQrSS_tF", "s:9SwiftDemo5pagesyScSySaySSGGSiF", + "s:9SwiftDemo9CountdownV", + "s:9SwiftDemo10WordStreamC", + "s:9SwiftDemo11ThermometerC", + "s:9SwiftDemo9StreamLogC", + "s:9SwiftDemo6tickerScSySiGyF", "s:9SwiftDemo11checkedSideyS2dKF", "s:9SwiftDemo8echoInt8ys0D0VADF", "s:9SwiftDemo10echoUInt64ys0D0VADF", @@ -136,6 +143,9 @@ "s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF@", "s:9SwiftDemo10decodeJSON_4fromxSgxm_SStSeRzlF", "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF", + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sd]>", + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:SS]>", + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sb]>", "s:9SwiftDemo6joinedySSx_q_tr0_lF", "s:9SwiftDemo7compactySaySiGSaySiSgGF", "s:9SwiftDemo5holesySaySSSgGSiF", @@ -162,6 +172,18 @@ "s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@", "s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF", "s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF@", + "s:9SwiftDemo9CancelLogC", + "s:9SwiftDemo13waitForCancelySbSdYaF", + "s:9SwiftDemo5ShelfC", + "s:9SwiftDemo4GridV", + "s:9SwiftDemo7Vector2V", + "s:9SwiftDemo7VersionV", + "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF", + "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF@<[s:Si]>", + "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF", + "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF@<[s:SS]>", + "s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF", + "s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF", "s:9SwiftDemo8describeySSSo6UIViewCF", "s:9SwiftDemo9makeLabelySo7UILabelCSSF", "s:9SwiftDemo4tagsySaySiGSaySo6UIViewCGF", @@ -234,11 +256,14 @@ "s:5UIKit23UITraitChangeObservableP": "UIKit.UITraitChangeObservable", "s:7SwiftUI4ViewP": "SwiftUICore.View", "s:SH": "Swift.Hashable", + "s:SL": "Swift.Comparable", "s:SQ": "Swift.Equatable", "s:SS": "Swift.String", "s:SY": "Swift.RawRepresentable", "s:Sa": "Swift.Array", "s:ScA": "_Concurrency.Actor", + "s:ScI": "_Concurrency.AsyncIteratorProtocol", + "s:Sci": "_Concurrency.AsyncSequence", "s:s16SendableMetatypeP": "Swift.SendableMetatype", "s:s23CustomStringConvertibleP": "Swift.CustomStringConvertible", "s:s28CustomDebugStringConvertibleP": "Swift.CustomDebugStringConvertible", @@ -66722,6 +66747,133 @@ "graph": "SwiftDemo.symbols.json", "parent": "s:9SwiftDemo10ThermostatC" }, + { + "id": "s:9SwiftDemo10WordStreamC", + "kind": "class", + "path": "WordStream", + "name": "WordStream", + "access": "public", + "declaration": "final class WordStream", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Streams.swift:71:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo10WordStreamCyACSScfc", + "s:9SwiftDemo10WordStreamC8IteratorV", + "s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF", + "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC" + ], + "conformances": [ + "s:Sci" + ] + }, + { + "id": "s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF", + "kind": "instanceMethod", + "path": "WordStream.makeAsyncIterator()", + "name": "makeAsyncIterator()", + "access": "public", + "declaration": "func makeAsyncIterator() -> Iterator", + "returns": { + "spelling": "WordStream.Iterator", + "references": [ + "s:9SwiftDemo10WordStreamC", + "s:9SwiftDemo10WordStreamC8IteratorV" + ] + }, + "location": "file://Sources/SwiftDemo/Streams.swift:79:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci17makeAsyncIterator0bC0QzyF" + }, + { + "id": "s:9SwiftDemo10WordStreamC8IteratorV", + "kind": "struct", + "path": "WordStream.Iterator", + "name": "Iterator", + "access": "public", + "declaration": "struct Iterator", + "location": "file://Sources/SwiftDemo/Streams.swift:75:18", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "members": [ + "s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF", + "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV", + "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV" + ], + "conformances": [ + "s:ScI" + ] + }, + { + "id": "s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF", + "kind": "instanceMethod", + "path": "WordStream.Iterator.next()", + "name": "next()", + "access": "public", + "declaration": "mutating func next() async throws -> String?", + "modifiers": [ + "mutating" + ], + "returns": { + "spelling": "String?", + "references": [ + "s:SS" + ] + }, + "async": true, + "throws": true, + "location": "file://Sources/SwiftDemo/Streams.swift:77:29", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC8IteratorV", + "sourceOrigin": "s:ScI4next7ElementQzSgyYaKF" + }, + { + "id": "s:9SwiftDemo10WordStreamCyACSScfc", + "kind": "initializer", + "path": "WordStream.init(_:)", + "name": "init(_:)", + "access": "public", + "declaration": "init(_ text: String)", + "parameters": [ + { + "internalName": "text", + "type": { + "spelling": "String", + "references": [ + "s:SS" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Streams.swift:73:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC" + }, { "id": "s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF", "kind": "function", @@ -67444,6 +67596,89 @@ "graph": "SwiftDemo.symbols.json", "parent": "s:9SwiftDemo11MeasurementO" }, + { + "id": "s:9SwiftDemo11ThermometerC", + "kind": "class", + "path": "Thermometer", + "name": "Thermometer", + "access": "public", + "declaration": "final class Thermometer", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Streams.swift:83:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo11ThermometerCACycfc", + "s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp", + "s:9SwiftDemo11ThermometerC6recordyySdF", + "s:9SwiftDemo11ThermometerC6finishyyF" + ] + }, + { + "id": "s:9SwiftDemo11ThermometerC6finishyyF", + "kind": "instanceMethod", + "path": "Thermometer.finish()", + "name": "finish()", + "access": "public", + "declaration": "func finish()", + "location": "file://Sources/SwiftDemo/Streams.swift:88:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo11ThermometerC" + }, + { + "id": "s:9SwiftDemo11ThermometerC6recordyySdF", + "kind": "instanceMethod", + "path": "Thermometer.record(_:)", + "name": "record(_:)", + "access": "public", + "declaration": "func record(_ value: Double)", + "parameters": [ + { + "internalName": "value", + "type": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Streams.swift:87:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo11ThermometerC" + }, + { + "id": "s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp", + "kind": "instanceProperty", + "path": "Thermometer.readings", + "name": "readings", + "access": "public", + "declaration": "var readings: AnyPublisher { get }", + "valueType": { + "spelling": "AnyPublisher", + "references": [ + "s:7Combine12AnyPublisherV", + "s:Sd", + "s:s5NeverO" + ] + }, + "settable": false, + "location": "file://Sources/SwiftDemo/Streams.swift:86:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo11ThermometerC" + }, + { + "id": "s:9SwiftDemo11ThermometerCACycfc", + "kind": "initializer", + "path": "Thermometer.init()", + "name": "init()", + "access": "public", + "declaration": "init()", + "location": "file://Sources/SwiftDemo/Streams.swift:85:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo11ThermometerC" + }, { "id": "s:9SwiftDemo11checkedSideyS2dKF", "kind": "function", @@ -67568,6 +67803,81 @@ "location": "file://Sources/SwiftDemo/Values.swift:217:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF", + "kind": "function", + "path": "longestWord(_:)", + "name": "longestWord(_:)", + "access": "public", + "declaration": "func longestWord(_ words: C) -> Int where C : Collection, C.Element == String", + "parameters": [ + { + "internalName": "words", + "type": { + "spelling": "C", + "references": [ + "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF1CL_xmfp" + ] + } + } + ], + "returns": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "genericParameters": [ + { + "name": "C", + "depth": 0, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "C", + "rhs": "Collection", + "rhsPrecise": "s:Sl" + }, + { + "kind": "sameType", + "lhs": "C.Element", + "rhs": "String", + "rhsPrecise": "s:SS" + } + ], + "location": "file://Sources/SwiftDemo/Values.swift:308:12", + "graph": "SwiftDemo.symbols.json" + }, + { + "id": "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF@<[s:SS]>", + "kind": "function", + "path": "longestWord(_:)", + "name": "longestWord(_:)", + "access": "public", + "declaration": "func longestWord(_ words: C) -> Int where C : Collection, C.Element == String", + "parameters": [ + { + "internalName": "words", + "type": { + "spelling": "C", + "references": [ + "s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF1CL_xmfp" + ] + } + } + ], + "returns": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:308:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF", "kind": "function", @@ -67772,6 +68082,87 @@ "location": "file://Sources/SwiftDemo/Values.swift:211:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:SS]>", + "kind": "function", + "path": "firstElement(_:)", + "name": "firstElement(_:)", + "access": "public", + "declaration": "func firstElement(_ values: C) -> C.Element? where C : Collection", + "parameters": [ + { + "internalName": "values", + "type": { + "spelling": "C", + "references": [ + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp" + ] + } + } + ], + "returns": { + "spelling": "C.Element?", + "references": [ + "s:ST7ElementQa" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:211:12", + "graph": "SwiftDemo.symbols.json" + }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sb]>", + "kind": "function", + "path": "firstElement(_:)", + "name": "firstElement(_:)", + "access": "public", + "declaration": "func firstElement(_ values: C) -> C.Element? where C : Collection", + "parameters": [ + { + "internalName": "values", + "type": { + "spelling": "C", + "references": [ + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp" + ] + } + } + ], + "returns": { + "spelling": "C.Element?", + "references": [ + "s:ST7ElementQa" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:211:12", + "graph": "SwiftDemo.symbols.json" + }, + { + "id": "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sd]>", + "kind": "function", + "path": "firstElement(_:)", + "name": "firstElement(_:)", + "access": "public", + "declaration": "func firstElement(_ values: C) -> C.Element? where C : Collection", + "parameters": [ + { + "internalName": "values", + "type": { + "spelling": "C", + "references": [ + "s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF1CL_xmfp" + ] + } + } + ], + "returns": { + "spelling": "C.Element?", + "references": [ + "s:ST7ElementQa" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:211:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo12firstSubview2ofSo6UIViewCSgAE_tF", "kind": "function", @@ -68228,6 +68619,34 @@ "location": "file://Sources/SwiftDemo/Purse.swift:4:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo13waitForCancelySbSdYaF", + "kind": "function", + "path": "waitForCancel(_:)", + "name": "waitForCancel(_:)", + "access": "public", + "declaration": "func waitForCancel(_ seconds: Double) async -> Bool", + "parameters": [ + { + "internalName": "seconds", + "type": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "location": "file://Sources/SwiftDemo/Values.swift:260:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo14CountdownErrorV", "kind": "struct", @@ -68235,7 +68654,7 @@ "name": "CountdownError", "access": "public", "declaration": "struct CountdownError", - "location": "file://Sources/SwiftDemo/Streams.swift:13:14", + "location": "file://Sources/SwiftDemo/Streams.swift:14:14", "graph": "SwiftDemo.symbols.json", "members": [ "s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV" @@ -68505,6 +68924,127 @@ "graph": "SwiftDemo.symbols.json", "parent": "s:9SwiftDemo14GreetingHolderC" }, + { + "id": "s:9SwiftDemo16GreetingRegistryC", + "kind": "class", + "path": "GreetingRegistry", + "name": "GreetingRegistry", + "access": "public", + "declaration": "final class GreetingRegistry", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Protocols.swift:74:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo16GreetingRegistryCACycfc", + "s:9SwiftDemo16GreetingRegistryC5countSivp", + "s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF", + "s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF", + "s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF" + ] + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF", + "kind": "instanceMethod", + "path": "GreetingRegistry.add(_:)", + "name": "add(_:)", + "access": "public", + "declaration": "func add(_ greeting: any Greeting)", + "parameters": [ + { + "internalName": "greeting", + "type": { + "spelling": "any Greeting", + "references": [ + "s:9SwiftDemo8GreetingP" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Protocols.swift:78:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo16GreetingRegistryC" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC5countSivp", + "kind": "instanceProperty", + "path": "GreetingRegistry.count", + "name": "count", + "access": "public", + "declaration": "var count: Int { get }", + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": false, + "location": "file://Sources/SwiftDemo/Protocols.swift:77:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo16GreetingRegistryC" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF", + "kind": "instanceMethod", + "path": "GreetingRegistry.remove(_:)", + "name": "remove(_:)", + "access": "public", + "declaration": "func remove(_ greeting: any Greeting)", + "parameters": [ + { + "internalName": "greeting", + "type": { + "spelling": "any Greeting", + "references": [ + "s:9SwiftDemo8GreetingP" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Protocols.swift:79:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo16GreetingRegistryC" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF", + "kind": "instanceMethod", + "path": "GreetingRegistry.contains(_:)", + "name": "contains(_:)", + "access": "public", + "declaration": "func contains(_ greeting: any Greeting) -> Bool", + "parameters": [ + { + "internalName": "greeting", + "type": { + "spelling": "any Greeting", + "references": [ + "s:9SwiftDemo8GreetingP" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "location": "file://Sources/SwiftDemo/Protocols.swift:80:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo16GreetingRegistryC" + }, + { + "id": "s:9SwiftDemo16GreetingRegistryCACycfc", + "kind": "initializer", + "path": "GreetingRegistry.init()", + "name": "init()", + "access": "public", + "declaration": "init()", + "location": "file://Sources/SwiftDemo/Protocols.swift:76:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo16GreetingRegistryC" + }, { "id": "s:9SwiftDemo16makeDefaultPointAA0E0VyF", "kind": "function", @@ -68578,6 +69118,84 @@ "location": "file://Sources/SwiftDemo/Protocols.swift:55:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC", + "kind": "class", + "path": "WeakGreetingHolder", + "name": "WeakGreetingHolder", + "access": "public", + "declaration": "final class WeakGreetingHolder", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Protocols.swift:67:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp", + "s:9SwiftDemo18WeakGreetingHolderCACycfc", + "s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF" + ] + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF", + "kind": "instanceMethod", + "path": "WeakGreetingHolder.greet(_:)", + "name": "greet(_:)", + "access": "public", + "declaration": "func greet(_ other: String) -> String?", + "parameters": [ + { + "internalName": "other", + "type": { + "spelling": "String", + "references": [ + "s:SS" + ] + } + } + ], + "returns": { + "spelling": "String?", + "references": [ + "s:SS" + ] + }, + "location": "file://Sources/SwiftDemo/Protocols.swift:70:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo18WeakGreetingHolderC" + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp", + "kind": "instanceProperty", + "path": "WeakGreetingHolder.greeting", + "name": "greeting", + "access": "public", + "declaration": "weak var greeting: (any Greeting)?", + "modifiers": [ + "weak" + ], + "valueType": { + "spelling": "(any Greeting)?", + "references": [ + "s:9SwiftDemo8GreetingP" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Protocols.swift:68:20", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo18WeakGreetingHolderC" + }, + { + "id": "s:9SwiftDemo18WeakGreetingHolderCACycfc", + "kind": "initializer", + "path": "WeakGreetingHolder.init()", + "name": "init()", + "access": "public", + "declaration": "init()", + "location": "file://Sources/SwiftDemo/Protocols.swift:69:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo18WeakGreetingHolderC" + }, { "id": "s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF", "kind": "function", @@ -68741,6 +69359,97 @@ "location": "file://Sources/SwiftDemo/Purse.swift:10:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo4GridV", + "kind": "struct", + "path": "Grid", + "name": "Grid", + "access": "public", + "declaration": "struct Grid", + "location": "file://Sources/SwiftDemo/Values.swift:280:14", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo4GridV5cellsSaySiGvp", + "s:9SwiftDemo4GridV4sizeACSi_tcfc", + "s:9SwiftDemo4GridVyS2icip" + ] + }, + { + "id": "s:9SwiftDemo4GridV4sizeACSi_tcfc", + "kind": "initializer", + "path": "Grid.init(size:)", + "name": "init(size:)", + "access": "public", + "declaration": "init(size: Int)", + "parameters": [ + { + "label": "size", + "internalName": "size", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Values.swift:282:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo4GridV" + }, + { + "id": "s:9SwiftDemo4GridV5cellsSaySiGvp", + "kind": "instanceProperty", + "path": "Grid.cells", + "name": "cells", + "access": "public", + "declaration": "var cells: [Int]", + "valueType": { + "spelling": "[Int]", + "references": [ + "s:Si" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:281:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo4GridV" + }, + { + "id": "s:9SwiftDemo4GridVyS2icip", + "kind": "instanceSubscript", + "path": "Grid.subscript(_:)", + "name": "subscript(_:)", + "access": "public", + "declaration": "subscript(index: Int) -> Int { get set }", + "parameters": [ + { + "internalName": "index", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:283:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo4GridV" + }, { "id": "s:9SwiftDemo4NoteC4tagsShySSGvp", "kind": "instanceProperty", @@ -70648,6 +71357,114 @@ "graph": "SwiftDemo.symbols.json", "parent": "s:9SwiftDemo5ShapeP" }, + { + "id": "s:9SwiftDemo5ShelfC", + "kind": "class", + "path": "Shelf", + "name": "Shelf", + "access": "public", + "declaration": "final class Shelf", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Values.swift:271:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo5ShelfCACycfc", + "s:9SwiftDemo5ShelfCySiSgSScip", + "s:9SwiftDemo5ShelfCySSSi_Sitcip" + ] + }, + { + "id": "s:9SwiftDemo5ShelfCACycfc", + "kind": "initializer", + "path": "Shelf.init()", + "name": "init()", + "access": "public", + "declaration": "init()", + "location": "file://Sources/SwiftDemo/Values.swift:273:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo5ShelfC" + }, + { + "id": "s:9SwiftDemo5ShelfCySSSi_Sitcip", + "kind": "instanceSubscript", + "path": "Shelf.subscript(_:_:)", + "name": "subscript(_:_:)", + "access": "public", + "declaration": "subscript(row: Int, column: Int) -> String { get }", + "parameters": [ + { + "internalName": "row", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + }, + { + "internalName": "column", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "String", + "references": [ + "s:SS" + ] + }, + "valueType": { + "spelling": "String", + "references": [ + "s:SS" + ] + }, + "settable": false, + "location": "file://Sources/SwiftDemo/Values.swift:278:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo5ShelfC" + }, + { + "id": "s:9SwiftDemo5ShelfCySiSgSScip", + "kind": "instanceSubscript", + "path": "Shelf.subscript(_:)", + "name": "subscript(_:)", + "access": "public", + "declaration": "subscript(name: String) -> Int? { get set }", + "parameters": [ + { + "internalName": "name", + "type": { + "spelling": "String", + "references": [ + "s:SS" + ] + } + } + ], + "returns": { + "spelling": "Int?", + "references": [ + "s:Si" + ] + }, + "valueType": { + "spelling": "Int?", + "references": [ + "s:Si" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:274:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo5ShelfC" + }, { "id": "s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF", "kind": "function", @@ -70698,6 +71515,35 @@ "location": "file://Sources/SwiftDemo/Values.swift:171:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF", + "kind": "function", + "path": "evens(below:)", + "name": "evens(below:)", + "access": "public", + "declaration": "func evens(below limit: Int) -> any Sequence", + "parameters": [ + { + "label": "below", + "internalName": "limit", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "any Sequence", + "references": [ + "s:ST", + "s:Si" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:312:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo5halveyySizKF", "kind": "function", @@ -70837,7 +71683,7 @@ "s:SS" ] }, - "location": "file://Sources/SwiftDemo/Streams.swift:41:12", + "location": "file://Sources/SwiftDemo/Streams.swift:42:12", "graph": "SwiftDemo.symbols.json" }, { @@ -72100,6 +72946,92 @@ "location": "file://Sources/SwiftDemo/Purse.swift:31:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF", + "kind": "function", + "path": "sumAll(_:)", + "name": "sumAll(_:)", + "access": "public", + "declaration": "func sumAll(_ values: some Sequence) -> Int", + "parameters": [ + { + "internalName": "values", + "type": { + "spelling": "some Sequence", + "references": [ + "s:ST", + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "some Sequence", + "rhs": "Sequence", + "rhsPrecise": "s:ST" + }, + { + "kind": "sameType", + "lhs": "(some Sequence).Element", + "rhs": "Int", + "rhsPrecise": "s:Si" + } + ], + "location": "file://Sources/SwiftDemo/Values.swift:307:12", + "graph": "SwiftDemo.symbols.json" + }, + { + "id": "s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF@<[s:Si]>", + "kind": "function", + "path": "sumAll(_:)", + "name": "sumAll(_:)", + "access": "public", + "declaration": "func sumAll(_ values: some Sequence) -> Int", + "parameters": [ + { + "internalName": "values", + "type": { + "spelling": "[Int]", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:307:12", + "graph": "SwiftDemo.symbols.json" + }, + { + "id": "s:9SwiftDemo6tickerScSySiGyF", + "kind": "function", + "path": "ticker()", + "name": "ticker()", + "access": "public", + "declaration": "func ticker() -> AsyncStream", + "returns": { + "spelling": "AsyncStream", + "references": [ + "s:ScS", + "s:Si" + ] + }, + "location": "file://Sources/SwiftDemo/Streams.swift:95:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF", "kind": "function", @@ -73221,6 +74153,354 @@ "graph": "SwiftDemo.symbols.json", "parent": "s:9SwiftDemo7TrackerC" }, + { + "id": "s:9SwiftDemo7Vector2V", + "kind": "struct", + "path": "Vector2", + "name": "Vector2", + "access": "public", + "declaration": "struct Vector2", + "location": "file://Sources/SwiftDemo/Values.swift:291:14", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo7Vector2V1xSdvp", + "s:9SwiftDemo7Vector2V1ySdvp", + "s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc", + "s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ", + "s:9SwiftDemo7Vector2V1sopyA2CFZ", + "s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ", + "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7Vector2V" + ], + "conformances": [ + "s:SQ" + ] + }, + { + "id": "s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ", + "kind": "operator", + "path": "Vector2.*(_:_:)", + "name": "*(_:_:)", + "access": "public", + "declaration": "static func * (scale: Double, vector: Vector2) -> Vector2", + "modifiers": [ + "static" + ], + "static": true, + "parameters": [ + { + "internalName": "scale", + "type": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + } + }, + { + "internalName": "vector", + "type": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + } + } + ], + "returns": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:297:23", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ", + "kind": "operator", + "path": "Vector2.+(_:_:)", + "name": "+(_:_:)", + "access": "public", + "declaration": "static func + (lhs: Vector2, rhs: Vector2) -> Vector2", + "modifiers": [ + "static" + ], + "static": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + } + }, + { + "internalName": "rhs", + "type": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + } + } + ], + "returns": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:295:23", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7Vector2V1sopyA2CFZ", + "kind": "operator", + "path": "Vector2.-(_:)", + "name": "-(_:)", + "access": "public", + "declaration": "static func - (vector: Vector2) -> Vector2", + "modifiers": [ + "static" + ], + "static": true, + "parameters": [ + { + "internalName": "vector", + "type": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + } + } + ], + "returns": { + "spelling": "Vector2", + "references": [ + "s:9SwiftDemo7Vector2V" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:296:30", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc", + "kind": "initializer", + "path": "Vector2.init(x:y:)", + "name": "init(x:y:)", + "access": "public", + "declaration": "init(x: Double, y: Double)", + "parameters": [ + { + "label": "x", + "internalName": "x", + "type": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + } + }, + { + "label": "y", + "internalName": "y", + "type": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Values.swift:294:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7Vector2V1xSdvp", + "kind": "instanceProperty", + "path": "Vector2.x", + "name": "x", + "access": "public", + "declaration": "var x: Double", + "valueType": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:292:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7Vector2V1ySdvp", + "kind": "instanceProperty", + "path": "Vector2.y", + "name": "y", + "access": "public", + "declaration": "var y: Double", + "valueType": { + "spelling": "Double", + "references": [ + "s:Sd" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:293:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V" + }, + { + "id": "s:9SwiftDemo7VersionV", + "kind": "struct", + "path": "Version", + "name": "Version", + "access": "public", + "declaration": "struct Version", + "location": "file://Sources/SwiftDemo/Values.swift:299:14", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo7VersionV5majorSivp", + "s:9SwiftDemo7VersionV5minorSivp", + "s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc", + "s:9SwiftDemo7VersionV1loiySbAC_ACtFZ", + "s:SLsE3zzloiySnyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsE3zzzoiySNyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsRi_zRi0_zrlE1goiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV" + ], + "conformances": [ + "s:SH", + "s:SL", + "s:SQ" + ] + }, + { + "id": "s:9SwiftDemo7VersionV1loiySbAC_ACtFZ", + "kind": "operator", + "path": "Version.<(_:_:)", + "name": "<(_:_:)", + "access": "public", + "declaration": "static func < (lhs: Version, rhs: Version) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Version", + "references": [ + "s:9SwiftDemo7VersionV" + ] + } + }, + { + "internalName": "rhs", + "type": { + "spelling": "Version", + "references": [ + "s:9SwiftDemo7VersionV" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:303:23", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SL1loiySbx_xtFZ" + }, + { + "id": "s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc", + "kind": "initializer", + "path": "Version.init(major:minor:)", + "name": "init(major:minor:)", + "access": "public", + "declaration": "init(major: Int, minor: Int)", + "parameters": [ + { + "label": "major", + "internalName": "major", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + }, + { + "label": "minor", + "internalName": "minor", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Values.swift:302:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV" + }, + { + "id": "s:9SwiftDemo7VersionV5majorSivp", + "kind": "instanceProperty", + "path": "Version.major", + "name": "major", + "access": "public", + "declaration": "let major: Int", + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": false, + "let": true, + "location": "file://Sources/SwiftDemo/Values.swift:300:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV" + }, + { + "id": "s:9SwiftDemo7VersionV5minorSivp", + "kind": "instanceProperty", + "path": "Version.minor", + "name": "minor", + "access": "public", + "declaration": "let minor: Int", + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": false, + "let": true, + "location": "file://Sources/SwiftDemo/Values.swift:301:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV" + }, { "id": "s:9SwiftDemo7compactySaySiGSaySiSgGF", "kind": "function", @@ -73274,7 +74554,7 @@ "s:Si" ] }, - "location": "file://Sources/SwiftDemo/Streams.swift:4:12", + "location": "file://Sources/SwiftDemo/Streams.swift:5:12", "graph": "SwiftDemo.symbols.json" }, { @@ -73500,6 +74780,34 @@ "location": "file://Sources/SwiftDemo/Views.swift:58:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF", + "kind": "function", + "path": "joinAll(_:)", + "name": "joinAll(_:)", + "access": "public", + "declaration": "func joinAll(_ parts: any Sequence) -> String", + "parameters": [ + { + "internalName": "parts", + "type": { + "spelling": "any Sequence", + "references": [ + "s:ST", + "s:SS" + ] + } + } + ], + "returns": { + "spelling": "String", + "references": [ + "s:SS" + ] + }, + "location": "file://Sources/SwiftDemo/Values.swift:311:12", + "graph": "SwiftDemo.symbols.json" + }, { "id": "s:9SwiftDemo7largestyxSgSayxGSLRzlF", "kind": "function", @@ -73649,7 +74957,7 @@ "introduced": "18.0.0" } ], - "location": "file://Sources/SwiftDemo/Streams.swift:32:12", + "location": "file://Sources/SwiftDemo/Streams.swift:33:12", "graph": "SwiftDemo.symbols.json" }, { @@ -74799,6 +76107,265 @@ "location": "file://Sources/SwiftDemo/Values.swift:62:12", "graph": "SwiftDemo.symbols.json" }, + { + "id": "s:9SwiftDemo9CancelLogC", + "kind": "class", + "path": "CancelLog", + "name": "CancelLog", + "access": "public", + "declaration": "final class CancelLog", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Values.swift:257:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo9CancelLogC13cancellationsSivpZ" + ] + }, + { + "id": "s:9SwiftDemo9CancelLogC13cancellationsSivpZ", + "kind": "typeProperty", + "path": "CancelLog.cancellations", + "name": "cancellations", + "access": "public", + "declaration": "static var cancellations: Int", + "modifiers": [ + "static" + ], + "static": true, + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Values.swift:258:22", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CancelLogC" + }, + { + "id": "s:9SwiftDemo9CountdownV", + "kind": "struct", + "path": "Countdown", + "name": "Countdown", + "access": "public", + "declaration": "struct Countdown", + "location": "file://Sources/SwiftDemo/Streams.swift:53:14", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo9CountdownV7Elementa", + "s:9SwiftDemo9CountdownV5startSivp", + "s:9SwiftDemo9CountdownV4fromACSi_tcfc", + "s:9SwiftDemo9CountdownV5labelSSvp", + "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF", + "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV" + ], + "conformances": [ + "s:Sci" + ] + }, + { + "id": "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "kind": "struct", + "path": "Countdown.AsyncIterator", + "name": "AsyncIterator", + "access": "public", + "declaration": "struct AsyncIterator", + "location": "file://Sources/SwiftDemo/Streams.swift:59:18", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "members": [ + "s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF", + "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV", + "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV" + ], + "conformances": [ + "s:ScI" + ], + "sourceOrigin": "s:Sci13AsyncIteratorQa" + }, + { + "id": "s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF", + "kind": "instanceMethod", + "path": "Countdown.AsyncIterator.next()", + "name": "next()", + "access": "public", + "declaration": "mutating func next() async -> Int?", + "modifiers": [ + "mutating" + ], + "returns": { + "spelling": "Int?", + "references": [ + "s:Si" + ] + }, + "async": true, + "location": "file://Sources/SwiftDemo/Streams.swift:61:29", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "sourceOrigin": "s:ScI4next7ElementQzSgyYaKF" + }, + { + "id": "s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF", + "kind": "instanceMethod", + "path": "Countdown.makeAsyncIterator()", + "name": "makeAsyncIterator()", + "access": "public", + "declaration": "func makeAsyncIterator() -> AsyncIterator", + "returns": { + "spelling": "Countdown.AsyncIterator", + "references": [ + "s:9SwiftDemo9CountdownV", + "s:9SwiftDemo9CountdownV13AsyncIteratorV" + ] + }, + "location": "file://Sources/SwiftDemo/Streams.swift:67:16", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci17makeAsyncIterator0bC0QzyF" + }, + { + "id": "s:9SwiftDemo9CountdownV4fromACSi_tcfc", + "kind": "initializer", + "path": "Countdown.init(from:)", + "name": "init(from:)", + "access": "public", + "declaration": "init(from start: Int)", + "parameters": [ + { + "label": "from", + "internalName": "start", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "location": "file://Sources/SwiftDemo/Streams.swift:56:11", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV" + }, + { + "id": "s:9SwiftDemo9CountdownV5labelSSvp", + "kind": "instanceProperty", + "path": "Countdown.label", + "name": "label", + "access": "public", + "declaration": "var label: String { get }", + "valueType": { + "spelling": "String", + "references": [ + "s:SS" + ] + }, + "settable": false, + "location": "file://Sources/SwiftDemo/Streams.swift:57:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV" + }, + { + "id": "s:9SwiftDemo9CountdownV5startSivp", + "kind": "instanceProperty", + "path": "Countdown.start", + "name": "start", + "access": "public", + "declaration": "let start: Int", + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": false, + "let": true, + "location": "file://Sources/SwiftDemo/Streams.swift:55:15", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV" + }, + { + "id": "s:9SwiftDemo9CountdownV7Elementa", + "kind": "typeAlias", + "path": "Countdown.Element", + "name": "Element", + "access": "public", + "declaration": "typealias Element = Int", + "aliasedType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "location": "file://Sources/SwiftDemo/Streams.swift:54:21", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci7ElementQa" + }, + { + "id": "s:9SwiftDemo9StreamLogC", + "kind": "class", + "path": "StreamLog", + "name": "StreamLog", + "access": "public", + "declaration": "final class StreamLog", + "modifiers": [ + "final" + ], + "location": "file://Sources/SwiftDemo/Streams.swift:92:19", + "graph": "SwiftDemo.symbols.json", + "members": [ + "s:9SwiftDemo9StreamLogC12terminationsSivpZ" + ] + }, + { + "id": "s:9SwiftDemo9StreamLogC12terminationsSivpZ", + "kind": "typeProperty", + "path": "StreamLog.terminations", + "name": "terminations", + "access": "public", + "declaration": "static var terminations: Int", + "modifiers": [ + "static" + ], + "static": true, + "valueType": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "settable": true, + "location": "file://Sources/SwiftDemo/Streams.swift:93:22", + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9StreamLogC" + }, { "id": "s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF", "kind": "function", @@ -74836,7 +76403,7 @@ "s:s5ErrorP" ] }, - "location": "file://Sources/SwiftDemo/Streams.swift:15:12", + "location": "file://Sources/SwiftDemo/Streams.swift:16:12", "graph": "SwiftDemo.symbols.json" }, { @@ -75180,12 +76747,12 @@ "graph": "SwiftDemo.symbols.json" }, { - "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:12SwiftDemoKit4CoinO", + "id": "s:SLsE3zzloiySnyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", "kind": "operator", - "path": "Coin.!=(_:_:)", - "name": "!=(_:_:)", + "path": "Version...<(_:_:)", + "name": "..<(_:_:)", "access": "public", - "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "declaration": "static func ..< (minimum: Self, maximum: Self) -> Range", "modifiers": [ "static" ], @@ -75193,41 +76760,39 @@ "synthesized": true, "parameters": [ { - "internalName": "lhs", + "internalName": "minimum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" + } }, { - "internalName": "rhs", + "internalName": "maximum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" + } } ], "returns": { - "spelling": "Bool", + "spelling": "Range", "references": [ - "s:Sb" + "s:Sn" ] }, "extension": { "extendedModule": "Swift", "typeKind": "swift.protocol" }, - "graph": "SwiftDemoKit.symbols.json", - "parent": "s:12SwiftDemoKit4CoinO", - "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsE3zzloiySnyxGx_xtFZ" }, { - "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO", + "id": "s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", "kind": "operator", - "path": "Precipitation.!=(_:_:)", - "name": "!=(_:_:)", + "path": "Version...<(_:)", + "name": "..<(_:)", "access": "public", - "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "declaration": "static func ..< (maximum: Self) -> PartialRangeUpTo", "modifiers": [ "static" ], @@ -75235,24 +76800,50 @@ "synthesized": true, "parameters": [ { - "internalName": "lhs", + "internalName": "maximum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" - }, + } + } + ], + "returns": { + "spelling": "PartialRangeUpTo", + "references": [ + "s:s16PartialRangeUpToV" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsE3zzlopys16PartialRangeUpToVyxGxFZ" + }, + { + "id": "s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "kind": "operator", + "path": "Version....(_:)", + "name": "...(_:)", + "access": "public", + "declaration": "static func ... (minimum: Self) -> PartialRangeFrom", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ { - "internalName": "rhs", + "internalName": "minimum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" + } } ], "returns": { - "spelling": "Bool", + "spelling": "PartialRangeFrom", "references": [ - "s:Sb" + "s:s16PartialRangeFromV" ] }, "extension": { @@ -75260,16 +76851,16 @@ "typeKind": "swift.protocol" }, "graph": "SwiftDemo.symbols.json", - "parent": "s:9SwiftDemo13PrecipitationO", - "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsE3zzzoPys16PartialRangeFromVyxGxFZ" }, { - "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO", + "id": "s:SLsE3zzzoiySNyxGx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", "kind": "operator", - "path": "Flavor.!=(_:_:)", - "name": "!=(_:_:)", + "path": "Version....(_:_:)", + "name": "...(_:_:)", "access": "public", - "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "declaration": "static func ... (minimum: Self, maximum: Self) -> ClosedRange", "modifiers": [ "static" ], @@ -75277,24 +76868,22 @@ "synthesized": true, "parameters": [ { - "internalName": "lhs", + "internalName": "minimum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" + } }, { - "internalName": "rhs", + "internalName": "maximum", "type": { "spelling": "Self" - }, - "modifier": "borrowing" + } } ], "returns": { - "spelling": "Bool", + "spelling": "ClosedRange", "references": [ - "s:Sb" + "s:SN" ] }, "extension": { @@ -75302,16 +76891,302 @@ "typeKind": "swift.protocol" }, "graph": "SwiftDemo.symbols.json", - "parent": "s:9SwiftDemo6FlavorO", - "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsE3zzzoiySNyxGx_xtFZ" }, { - "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO", + "id": "s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", "kind": "operator", - "path": "Polygon.Style.!=(_:_:)", - "name": "!=(_:_:)", + "path": "Version....(_:)", + "name": "...(_:)", "access": "public", - "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "declaration": "static func ... (maximum: Self) -> PartialRangeThrough", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "maximum", + "type": { + "spelling": "Self" + } + } + ], + "returns": { + "spelling": "PartialRangeThrough", + "references": [ + "s:s19PartialRangeThroughV" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsE3zzzopys19PartialRangeThroughVyxGxFZ" + }, + { + "id": "s:SLsRi_zRi0_zrlE1goiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "kind": "operator", + "path": "Version.>(_:_:)", + "name": ">(_:_:)", + "access": "public", + "declaration": "static func > (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsRi_zRi0_zrlE1goiySbx_xtFZ" + }, + { + "id": "s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "kind": "operator", + "path": "Version.>=(_:_:)", + "name": ">=(_:_:)", + "access": "public", + "declaration": "static func >= (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsRi_zRi0_zrlE2geoiySbx_xtFZ" + }, + { + "id": "s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "kind": "operator", + "path": "Version.<=(_:_:)", + "name": "<=(_:_:)", + "access": "public", + "declaration": "static func <= (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SLsRi_zRi0_zrlE2leoiySbx_xtFZ" + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:12SwiftDemoKit4CoinO", + "kind": "operator", + "path": "Coin.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemoKit.symbols.json", + "parent": "s:12SwiftDemoKit4CoinO", + "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo13PrecipitationO", + "kind": "operator", + "path": "Precipitation.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo13PrecipitationO", + "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo6FlavorO", + "kind": "operator", + "path": "Flavor.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo6FlavorO", + "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO", + "kind": "operator", + "path": "Polygon.Style.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", "modifiers": [ "static" ], @@ -75347,6 +77222,90 @@ "parent": "s:9SwiftDemo7PolygonC5StyleO", "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7Vector2V", + "kind": "operator", + "path": "Vector2.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7Vector2V", + "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + }, + { + "id": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ::SYNTHESIZED::s:9SwiftDemo7VersionV", + "kind": "operator", + "path": "Version.!=(_:_:)", + "name": "!=(_:_:)", + "access": "public", + "declaration": "static func != (lhs: borrowing Self, rhs: borrowing Self) -> Bool", + "modifiers": [ + "static" + ], + "static": true, + "synthesized": true, + "parameters": [ + { + "internalName": "lhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + }, + { + "internalName": "rhs", + "type": { + "spelling": "Self" + }, + "modifier": "borrowing" + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "extension": { + "extendedModule": "Swift", + "typeKind": "swift.protocol" + }, + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo7VersionV", + "sourceOrigin": "s:SQsRi_zRi0_zrlE2neoiySbx_xtFZ" + }, { "id": "s:SS9SwiftDemoE7shoutedSSvp", "kind": "instanceProperty", @@ -76458,6 +78417,3138 @@ "parent": "s:9SwiftDemo7CounterC", "sourceOrigin": "s:ScA12_ConcurrencyE20preconditionIsolated_4file4lineySSyXK_s12StaticStringVSutF" }, + { + "id": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV", + "kind": "instanceMethod", + "path": "WordStream.Iterator.next()", + "name": "next()", + "access": "public", + "declaration": "mutating func next() async throws(Self.Failure) -> Self.Element?", + "modifiers": [ + "mutating" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:ScI7ElementQa" + ] + }, + "async": true, + "throws": true, + "thrownType": { + "spelling": "Self.Failure", + "references": [ + "s:ScI7FailureQa" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "18.0.0" + }, + { + "domain": "macOS", + "introduced": "15.0.0" + }, + { + "domain": "tvOS", + "introduced": "18.0.0" + }, + { + "domain": "visionOS", + "introduced": "2.0.0" + }, + { + "domain": "watchOS", + "introduced": "11.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC8IteratorV", + "sourceOrigin": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF" + }, + { + "id": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV", + "kind": "instanceMethod", + "path": "Countdown.AsyncIterator.next()", + "name": "next()", + "access": "public", + "declaration": "mutating func next() async throws(Self.Failure) -> Self.Element?", + "modifiers": [ + "mutating" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:ScI7ElementQa" + ] + }, + "async": true, + "throws": true, + "thrownType": { + "spelling": "Self.Failure", + "references": [ + "s:ScI7FailureQa" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "18.0.0" + }, + { + "domain": "macOS", + "introduced": "15.0.0" + }, + { + "domain": "tvOS", + "introduced": "18.0.0" + }, + { + "domain": "visionOS", + "introduced": "2.0.0" + }, + { + "domain": "watchOS", + "introduced": "11.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "sourceOrigin": "s:ScI12_ConcurrencyE4next7ElementQzSgyYa7FailureQzYKF" + }, + { + "id": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC8IteratorV", + "kind": "instanceMethod", + "path": "WordStream.Iterator.next(isolation:)", + "name": "next(isolation:)", + "access": "public", + "declaration": "mutating func next(isolation actor: isolated (any Actor)?) async throws(Self.Failure) -> Self.Element?", + "modifiers": [ + "mutating" + ], + "synthesized": true, + "parameters": [ + { + "label": "isolation", + "internalName": "actor", + "type": { + "spelling": "isolated (any Actor)?", + "references": [ + "s:ScA" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:ScI7ElementQa" + ] + }, + "async": true, + "throws": true, + "thrownType": { + "spelling": "Self.Failure", + "references": [ + "s:ScI7FailureQa" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "18.0.0" + }, + { + "domain": "macOS", + "introduced": "15.0.0" + }, + { + "domain": "tvOS", + "introduced": "18.0.0" + }, + { + "domain": "visionOS", + "introduced": "2.0.0" + }, + { + "domain": "watchOS", + "introduced": "11.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC8IteratorV", + "sourceOrigin": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF" + }, + { + "id": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF::SYNTHESIZED::s:9SwiftDemo9CountdownV13AsyncIteratorV", + "kind": "instanceMethod", + "path": "Countdown.AsyncIterator.next(isolation:)", + "name": "next(isolation:)", + "access": "public", + "declaration": "mutating func next(isolation actor: isolated (any Actor)?) async throws(Self.Failure) -> Self.Element?", + "modifiers": [ + "mutating" + ], + "synthesized": true, + "parameters": [ + { + "label": "isolation", + "internalName": "actor", + "type": { + "spelling": "isolated (any Actor)?", + "references": [ + "s:ScA" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:ScI7ElementQa" + ] + }, + "async": true, + "throws": true, + "thrownType": { + "spelling": "Self.Failure", + "references": [ + "s:ScI7FailureQa" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "18.0.0" + }, + { + "domain": "macOS", + "introduced": "15.0.0" + }, + { + "domain": "tvOS", + "introduced": "18.0.0" + }, + { + "domain": "visionOS", + "introduced": "2.0.0" + }, + { + "domain": "watchOS", + "introduced": "11.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV13AsyncIteratorV", + "sourceOrigin": "s:ScI12_ConcurrencyE4next9isolation7ElementQzSgScA_pSgYi_tYa7FailureQzYKF" + }, + { + "id": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.allSatisfy(_:)", + "name": "allSatisfy(_:)", + "access": "public", + "declaration": "func allSatisfy(_ predicate: (Self.Element) async throws -> Bool) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.allSatisfy(_:)", + "name": "allSatisfy(_:)", + "access": "public", + "declaration": "func allSatisfy(_ predicate: (Self.Element) async throws -> Bool) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE10allSatisfyyS2b7ElementQzYaKXEYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.compactMap(_:)", + "name": "compactMap(_:)", + "access": "public", + "declaration": "@preconcurrency func compactMap(_ transform: @escaping @Sendable (Self.Element) async -> ElementOfResult?) -> AsyncCompactMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> ElementOfResult?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncCompactMapSequence", + "references": [ + "s:12_Concurrency23AsyncCompactMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "ElementOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF" + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.compactMap(_:)", + "name": "compactMap(_:)", + "access": "public", + "declaration": "@preconcurrency func compactMap(_ transform: @escaping @Sendable (Self.Element) async -> ElementOfResult?) -> AsyncCompactMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> ElementOfResult?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncCompactMapSequence", + "references": [ + "s:12_Concurrency23AsyncCompactMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "ElementOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE10compactMapyAA012AsyncCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaclF" + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.compactMap(_:)", + "name": "compactMap(_:)", + "access": "public", + "declaration": "@preconcurrency func compactMap(_ transform: @escaping @Sendable (Self.Element) async throws -> ElementOfResult?) -> AsyncThrowingCompactMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> ElementOfResult?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingCompactMapSequence", + "references": [ + "s:12_Concurrency31AsyncThrowingCompactMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "ElementOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF" + }, + { + "id": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.compactMap(_:)", + "name": "compactMap(_:)", + "access": "public", + "declaration": "@preconcurrency func compactMap(_ transform: @escaping @Sendable (Self.Element) async throws -> ElementOfResult?) -> AsyncThrowingCompactMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> ElementOfResult?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingCompactMapSequence", + "references": [ + "s:12_Concurrency31AsyncThrowingCompactMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "ElementOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE10compactMapyAA020AsyncThrowingCompactC8SequenceVyxqd__Gqd__Sg7ElementQzYaKclF" + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.map(_:)", + "name": "map(_:)", + "access": "public", + "declaration": "@preconcurrency func map(_ transform: @escaping @Sendable (Self.Element) async -> Transformed) -> AsyncMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> Transformed", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncMapSequence", + "references": [ + "s:12_Concurrency16AsyncMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "Transformed", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF" + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.map(_:)", + "name": "map(_:)", + "access": "public", + "declaration": "@preconcurrency func map(_ transform: @escaping @Sendable (Self.Element) async -> Transformed) -> AsyncMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> Transformed", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncMapSequence", + "references": [ + "s:12_Concurrency16AsyncMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "Transformed", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE3mapyAA16AsyncMapSequenceVyxqd__Gqd__7ElementQzYaclF" + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.map(_:)", + "name": "map(_:)", + "access": "public", + "declaration": "@preconcurrency func map(_ transform: @escaping @Sendable (Self.Element) async throws -> Transformed) -> AsyncThrowingMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> Transformed", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingMapSequence", + "references": [ + "s:12_Concurrency24AsyncThrowingMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "Transformed", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF" + }, + { + "id": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.map(_:)", + "name": "map(_:)", + "access": "public", + "declaration": "@preconcurrency func map(_ transform: @escaping @Sendable (Self.Element) async throws -> Transformed) -> AsyncThrowingMapSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> Transformed", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingMapSequence", + "references": [ + "s:12_Concurrency24AsyncThrowingMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "Transformed", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE3mapyAA24AsyncThrowingMapSequenceVyxqd__Gqd__7ElementQzYaKclF" + }, + { + "id": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.max(by:)", + "name": "max(by:)", + "access": "public", + "declaration": "@warn_unqualified_access func max(by areInIncreasingOrder: (Self.Element, Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "parameters": [ + { + "label": "by", + "internalName": "areInIncreasingOrder", + "type": { + "spelling": "(Self.Element, Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.max(by:)", + "name": "max(by:)", + "access": "public", + "declaration": "@warn_unqualified_access func max(by areInIncreasingOrder: (Self.Element, Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "parameters": [ + { + "label": "by", + "internalName": "areInIncreasingOrder", + "type": { + "spelling": "(Self.Element, Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE3max2by7ElementQzSgSbAE_AEtYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.min(by:)", + "name": "min(by:)", + "access": "public", + "declaration": "@warn_unqualified_access func min(by areInIncreasingOrder: (Self.Element, Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "parameters": [ + { + "label": "by", + "internalName": "areInIncreasingOrder", + "type": { + "spelling": "(Self.Element, Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.min(by:)", + "name": "min(by:)", + "access": "public", + "declaration": "@warn_unqualified_access func min(by areInIncreasingOrder: (Self.Element, Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "parameters": [ + { + "label": "by", + "internalName": "areInIncreasingOrder", + "type": { + "spelling": "(Self.Element, Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE3min2by7ElementQzSgSbAE_AEtYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.drop(while:)", + "name": "drop(while:)", + "access": "public", + "declaration": "@preconcurrency func drop(while predicate: @escaping @Sendable (Self.Element) async -> Bool) -> AsyncDropWhileSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "label": "while", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncDropWhileSequence", + "references": [ + "s:12_Concurrency22AsyncDropWhileSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF" + }, + { + "id": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.drop(while:)", + "name": "drop(while:)", + "access": "public", + "declaration": "@preconcurrency func drop(while predicate: @escaping @Sendable (Self.Element) async -> Bool) -> AsyncDropWhileSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "label": "while", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncDropWhileSequence", + "references": [ + "s:12_Concurrency22AsyncDropWhileSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE4drop5whileAA22AsyncDropWhileSequenceVyxGSb7ElementQzYac_tF" + }, + { + "id": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.first(where:)", + "name": "first(where:)", + "access": "public", + "declaration": "func first(where predicate: (Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "synthesized": true, + "parameters": [ + { + "label": "where", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.first(where:)", + "name": "first(where:)", + "access": "public", + "declaration": "func first(where predicate: (Self.Element) async throws -> Bool) async rethrows -> Self.Element?", + "synthesized": true, + "parameters": [ + { + "label": "where", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE5first5where7ElementQzSgSbAEYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.filter(_:)", + "name": "filter(_:)", + "access": "public", + "declaration": "@preconcurrency func filter(_ isIncluded: @escaping @Sendable (Self.Element) async -> Bool) -> AsyncFilterSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "isIncluded", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFilterSequence", + "references": [ + "s:12_Concurrency19AsyncFilterSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF" + }, + { + "id": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.filter(_:)", + "name": "filter(_:)", + "access": "public", + "declaration": "@preconcurrency func filter(_ isIncluded: @escaping @Sendable (Self.Element) async -> Bool) -> AsyncFilterSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "isIncluded", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFilterSequence", + "references": [ + "s:12_Concurrency19AsyncFilterSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE6filteryAA19AsyncFilterSequenceVyxGSb7ElementQzYacF" + }, + { + "id": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.prefix(while:)", + "name": "prefix(while:)", + "access": "public", + "declaration": "@preconcurrency func prefix(while predicate: @escaping @Sendable (Self.Element) async -> Bool) rethrows -> AsyncPrefixWhileSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "label": "while", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncPrefixWhileSequence", + "references": [ + "s:12_Concurrency24AsyncPrefixWhileSequenceV" + ] + }, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF" + }, + { + "id": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.prefix(while:)", + "name": "prefix(while:)", + "access": "public", + "declaration": "@preconcurrency func prefix(while predicate: @escaping @Sendable (Self.Element) async -> Bool) rethrows -> AsyncPrefixWhileSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "label": "while", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncPrefixWhileSequence", + "references": [ + "s:12_Concurrency24AsyncPrefixWhileSequenceV" + ] + }, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE6prefix5whileAA24AsyncPrefixWhileSequenceVyxGSb7ElementQzYac_tKF" + }, + { + "id": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.prefix(_:)", + "name": "prefix(_:)", + "access": "public", + "declaration": "func prefix(_ count: Int) -> AsyncPrefixSequence", + "synthesized": true, + "parameters": [ + { + "internalName": "count", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "AsyncPrefixSequence", + "references": [ + "s:12_Concurrency19AsyncPrefixSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF" + }, + { + "id": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.prefix(_:)", + "name": "prefix(_:)", + "access": "public", + "declaration": "func prefix(_ count: Int) -> AsyncPrefixSequence", + "synthesized": true, + "parameters": [ + { + "internalName": "count", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + } + } + ], + "returns": { + "spelling": "AsyncPrefixSequence", + "references": [ + "s:12_Concurrency19AsyncPrefixSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE6prefixyAA19AsyncPrefixSequenceVyxGSiF" + }, + { + "id": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.reduce(into:_:)", + "name": "reduce(into:_:)", + "access": "public", + "declaration": "func reduce(into initialResult: Result, _ updateAccumulatingResult: (inout Result, Self.Element) async throws -> Void) async rethrows -> Result", + "synthesized": true, + "parameters": [ + { + "label": "into", + "internalName": "initialResult", + "type": { + "spelling": "Result" + } + }, + { + "internalName": "updateAccumulatingResult", + "type": { + "spelling": "(inout Result, Self.Element) async throws -> Void", + "references": [ + "s:Sci7ElementQa", + "s:s4Voida" + ] + } + } + ], + "returns": { + "spelling": "Result" + }, + "async": true, + "throws": true, + "rethrows": true, + "genericParameters": [ + { + "name": "Result", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF" + }, + { + "id": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.reduce(into:_:)", + "name": "reduce(into:_:)", + "access": "public", + "declaration": "func reduce(into initialResult: Result, _ updateAccumulatingResult: (inout Result, Self.Element) async throws -> Void) async rethrows -> Result", + "synthesized": true, + "parameters": [ + { + "label": "into", + "internalName": "initialResult", + "type": { + "spelling": "Result" + } + }, + { + "internalName": "updateAccumulatingResult", + "type": { + "spelling": "(inout Result, Self.Element) async throws -> Void", + "references": [ + "s:Sci7ElementQa", + "s:s4Voida" + ] + } + } + ], + "returns": { + "spelling": "Result" + }, + "async": true, + "throws": true, + "rethrows": true, + "genericParameters": [ + { + "name": "Result", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE6reduce4into_qd__qd__n_yqd__z_7ElementQztYaKXEtYaKlF" + }, + { + "id": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.reduce(_:_:)", + "name": "reduce(_:_:)", + "access": "public", + "declaration": "func reduce(_ initialResult: Result, _ nextPartialResult: (Result, Self.Element) async throws -> Result) async rethrows -> Result", + "synthesized": true, + "parameters": [ + { + "internalName": "initialResult", + "type": { + "spelling": "Result" + } + }, + { + "internalName": "nextPartialResult", + "type": { + "spelling": "(Result, Self.Element) async throws -> Result", + "references": [ + "s:Sci7ElementQa" + ] + } + } + ], + "returns": { + "spelling": "Result" + }, + "async": true, + "throws": true, + "rethrows": true, + "genericParameters": [ + { + "name": "Result", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF" + }, + { + "id": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.reduce(_:_:)", + "name": "reduce(_:_:)", + "access": "public", + "declaration": "func reduce(_ initialResult: Result, _ nextPartialResult: (Result, Self.Element) async throws -> Result) async rethrows -> Result", + "synthesized": true, + "parameters": [ + { + "internalName": "initialResult", + "type": { + "spelling": "Result" + } + }, + { + "internalName": "nextPartialResult", + "type": { + "spelling": "(Result, Self.Element) async throws -> Result", + "references": [ + "s:Sci7ElementQa" + ] + } + } + ], + "returns": { + "spelling": "Result" + }, + "async": true, + "throws": true, + "rethrows": true, + "genericParameters": [ + { + "name": "Result", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE6reduceyqd__qd___qd__qd___7ElementQztYaKXEtYaKlF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async throws -> SegmentOfResult) -> AsyncThrowingFlatMapSequence where SegmentOfResult : AsyncSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingFlatMapSequence", + "references": [ + "s:12_Concurrency28AsyncThrowingFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async throws -> SegmentOfResult) -> AsyncThrowingFlatMapSequence where SegmentOfResult : AsyncSequence", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async throws -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncThrowingFlatMapSequence", + "references": [ + "s:12_Concurrency28AsyncThrowingFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA017AsyncThrowingFlatC8SequenceVyxqd__Gqd__7ElementQzYaKcSciRd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, Self.Failure == SegmentOfResult.Failure", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "Self.Failure", + "rhs": "SegmentOfResult.Failure" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, Self.Failure == SegmentOfResult.Failure", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "Self.Failure", + "rhs": "SegmentOfResult.Failure" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__7FailureQyd__AHRtzlF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, SegmentOfResult.Failure == Never", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "SegmentOfResult.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, SegmentOfResult.Failure == Never", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "SegmentOfResult.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, Self.Failure == Never, SegmentOfResult.Failure == Never", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "Self.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + }, + { + "kind": "sameType", + "lhs": "SegmentOfResult.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.flatMap(_:)", + "name": "flatMap(_:)", + "access": "public", + "declaration": "@preconcurrency func flatMap(_ transform: @escaping @Sendable (Self.Element) async -> SegmentOfResult) -> AsyncFlatMapSequence where SegmentOfResult : AsyncSequence, Self.Failure == Never, SegmentOfResult.Failure == Never", + "attributes": [ + "@preconcurrency" + ], + "synthesized": true, + "parameters": [ + { + "internalName": "transform", + "type": { + "spelling": "(Self.Element) async -> SegmentOfResult", + "references": [ + "s:Sci7ElementQa" + ] + }, + "attributes": [ + "@escaping", + "@Sendable" + ] + } + ], + "returns": { + "spelling": "AsyncFlatMapSequence", + "references": [ + "s:12_Concurrency20AsyncFlatMapSequenceV" + ] + }, + "genericParameters": [ + { + "name": "SegmentOfResult", + "depth": 1, + "index": 0 + } + ], + "genericConstraints": [ + { + "kind": "sameType", + "lhs": "Self.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + }, + { + "kind": "sameType", + "lhs": "SegmentOfResult.Failure", + "rhs": "Never", + "rhsPrecise": "s:s5NeverO" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE7flatMapyAA09AsyncFlatC8SequenceVyxqd__Gqd__7ElementQzYacSciRd__s5NeverO7FailureRtzAiJRtd__lF" + }, + { + "id": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.contains(where:)", + "name": "contains(where:)", + "access": "public", + "declaration": "func contains(where predicate: (Self.Element) async throws -> Bool) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "label": "where", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.contains(where:)", + "name": "contains(where:)", + "access": "public", + "declaration": "func contains(where predicate: (Self.Element) async throws -> Bool) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "label": "where", + "internalName": "predicate", + "type": { + "spelling": "(Self.Element) async throws -> Bool", + "references": [ + "s:Sci7ElementQa", + "s:Sb" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE8contains5whereS2b7ElementQzYaKXE_tYaKF" + }, + { + "id": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.dropFirst(_:)", + "name": "dropFirst(_:)", + "access": "public", + "declaration": "func dropFirst(_ count: Int = 1) -> AsyncDropFirstSequence", + "synthesized": true, + "parameters": [ + { + "internalName": "count", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "default": "1" + } + ], + "returns": { + "spelling": "AsyncDropFirstSequence", + "references": [ + "s:12_Concurrency22AsyncDropFirstSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF" + }, + { + "id": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.dropFirst(_:)", + "name": "dropFirst(_:)", + "access": "public", + "declaration": "func dropFirst(_ count: Int = 1) -> AsyncDropFirstSequence", + "synthesized": true, + "parameters": [ + { + "internalName": "count", + "type": { + "spelling": "Int", + "references": [ + "s:Si" + ] + }, + "default": "1" + } + ], + "returns": { + "spelling": "AsyncDropFirstSequence", + "references": [ + "s:12_Concurrency22AsyncDropFirstSequenceV" + ] + }, + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol" + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencyE9dropFirstyAA09AsyncDropC8SequenceVyxGSiF" + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.max()", + "name": "max()", + "access": "public", + "declaration": "@warn_unqualified_access func max() async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF" + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.max()", + "name": "max()", + "access": "public", + "declaration": "@warn_unqualified_access func max() async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencySL7ElementRpzrlE3maxACSgyYaKF" + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.min()", + "name": "min()", + "access": "public", + "declaration": "@warn_unqualified_access func min() async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF" + }, + { + "id": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.min()", + "name": "min()", + "access": "public", + "declaration": "@warn_unqualified_access func min() async rethrows -> Self.Element?", + "attributes": [ + "@warn_unqualified_access" + ], + "synthesized": true, + "returns": { + "spelling": "Self.Element?", + "references": [ + "s:Sci7ElementQa" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Comparable", + "rhsPrecise": "s:SL" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencySL7ElementRpzrlE3minACSgyYaKF" + }, + { + "id": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo10WordStreamC", + "kind": "instanceMethod", + "path": "WordStream.contains(_:)", + "name": "contains(_:)", + "access": "public", + "declaration": "func contains(_ search: Self.Element) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "internalName": "search", + "type": { + "spelling": "Self.Element", + "references": [ + "s:Sci7ElementQa" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Equatable", + "rhsPrecise": "s:SQ" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Equatable", + "rhsPrecise": "s:SQ" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo10WordStreamC", + "sourceOrigin": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF" + }, + { + "id": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF::SYNTHESIZED::s:9SwiftDemo9CountdownV", + "kind": "instanceMethod", + "path": "Countdown.contains(_:)", + "name": "contains(_:)", + "access": "public", + "declaration": "func contains(_ search: Self.Element) async rethrows -> Bool", + "synthesized": true, + "parameters": [ + { + "internalName": "search", + "type": { + "spelling": "Self.Element", + "references": [ + "s:Sci7ElementQa" + ] + } + } + ], + "returns": { + "spelling": "Bool", + "references": [ + "s:Sb" + ] + }, + "async": true, + "throws": true, + "rethrows": true, + "genericConstraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Equatable", + "rhsPrecise": "s:SQ" + } + ], + "extension": { + "extendedModule": "_Concurrency", + "typeKind": "swift.protocol", + "constraints": [ + { + "kind": "conformance", + "lhs": "Self.Element", + "rhs": "Equatable", + "rhsPrecise": "s:SQ" + } + ] + }, + "availability": [ + { + "domain": "iOS", + "introduced": "13.0.0" + }, + { + "domain": "macOS", + "introduced": "10.15.0" + }, + { + "domain": "tvOS", + "introduced": "13.0.0" + }, + { + "domain": "watchOS", + "introduced": "6.0.0" + } + ], + "graph": "SwiftDemo.symbols.json", + "parent": "s:9SwiftDemo9CountdownV", + "sourceOrigin": "s:Sci12_ConcurrencySQ7ElementRpzrlE8containsySbACYaKF" + }, { "id": "s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO", "kind": "instanceProperty", diff --git a/metadata-generator/tests/swift/snapshots/SwiftDemo.probe.swift b/metadata-generator/tests/swift/snapshots/SwiftDemo.probe.swift index d3b35878..dec87772 100644 --- a/metadata-generator/tests/swift/snapshots/SwiftDemo.probe.swift +++ b/metadata-generator/tests/swift/snapshots/SwiftDemo.probe.swift @@ -3,6 +3,9 @@ import Foundation import SwiftDemo import SwiftDemoKit +#if canImport(Combine) +import Combine +#endif #if canImport(CoreGraphics) import CoreGraphics #endif @@ -285,1346 +288,1638 @@ func __nsProbe54() { let _: SwiftDemo.Thermostat = SwiftDemo.Thermostat() } +// s:9SwiftDemo10WordStreamC +func __nsProbe55(_ value: SwiftDemo.WordStream) -> SwiftDemo.WordStream { value } + +// s:9SwiftDemo10WordStreamC17makeAsyncIteratorAC0G0VyF +func __nsProbe56(_ receiver: SwiftDemo.WordStream) { + let _: SwiftDemo.WordStream.Iterator = receiver.`makeAsyncIterator`() +} + +// s:9SwiftDemo10WordStreamC8IteratorV +func __nsProbe57(_ value: SwiftDemo.WordStream.Iterator) -> SwiftDemo.WordStream.Iterator { value } + +// s:9SwiftDemo10WordStreamC8IteratorV4nextSSSgyYaKF +func __nsProbe58(_ receiver: inout SwiftDemo.WordStream.Iterator) async throws { + let _: String? = try await receiver.`next`() +} + +// s:9SwiftDemo10WordStreamCyACSScfc +func __nsProbe59(_ a0: String) { + let _: SwiftDemo.WordStream = SwiftDemo.WordStream(a0) +} + // s:9SwiftDemo10allFlavorsSayAA6FlavorOGyF -func __nsProbe55() { +func __nsProbe60() { let _: [SwiftDemo.Flavor] = SwiftDemo.`allFlavors`() } // s:9SwiftDemo10checkSidesys6ResultOyytAA10ShapeErrorOGSiF -func __nsProbe56(_ a0: Int) { +func __nsProbe61(_ a0: Int) { let _: Result = SwiftDemo.`checkSides`(a0) } // s:9SwiftDemo10echoStringyS2SF -func __nsProbe57(_ a0: String) { +func __nsProbe62(_ a0: String) { let _: String = SwiftDemo.`echoString`(a0) } // s:9SwiftDemo10echoUInt64ys0D0VADF -func __nsProbe58(_ a0: UInt64) { +func __nsProbe63(_ a0: UInt64) { let _: UInt64 = SwiftDemo.`echoUInt64`(a0) } // s:9SwiftDemo10firstMatch_5whereSiSgSaySiG_SbSiKXEtKF -func __nsProbe59(_ a0: [Int], _ a1: (Int) throws -> Bool) throws { +func __nsProbe64(_ a0: [Int], _ a1: (Int) throws -> Bool) throws { let _: Int? = try SwiftDemo.`firstMatch`(a0, where: a1) } // s:9SwiftDemo10greetLater_10completionySSSg_yADYbctF -func __nsProbe60(_ a0: String?, _ a1: @escaping @Sendable (String?) -> Void) { +func __nsProbe65(_ a0: String?, _ a1: @escaping @Sendable (String?) -> Void) { let _: Void = SwiftDemo.`greetLater`(a0, completion: a1) } // s:9SwiftDemo10greetTwiceySSx_SStAA8GreetingRzlF@ -func __nsProbe61(_ a0: any SwiftDemo.Greeting, _ a1: String) { +func __nsProbe66(_ a0: any SwiftDemo.Greeting, _ a1: String) { let _: String = SwiftDemo.`greetTwice`(a0, a1) } // s:9SwiftDemo10largestIntSiyF -func __nsProbe62() { +func __nsProbe67() { let _: Int = SwiftDemo.`largestInt`() } // s:9SwiftDemo10makeScorerAA0D0_pyF -func __nsProbe63() { +func __nsProbe68() { let _: any SwiftDemo.Scorer = SwiftDemo.`makeScorer`() } // s:9SwiftDemo10namesLaterySaySSGSiYaF -func __nsProbe64(_ a0: Int) async { +func __nsProbe69(_ a0: Int) async { let _: [String] = await SwiftDemo.`namesLater`(a0) } // s:9SwiftDemo10parseLaterys6ResultOySis5Error_pGSSYaF -func __nsProbe65(_ a0: String) async { +func __nsProbe70(_ a0: String) async { let _: Result = await SwiftDemo.`parseLater`(a0) } // s:9SwiftDemo10tallyLateryShySSG6unique_Si5counttSaySSGYaF -func __nsProbe66(_ a0: [String]) async { +func __nsProbe71(_ a0: [String]) async { let _: (unique: Set, count: Int) = await SwiftDemo.`tallyLater`(a0) } // s:9SwiftDemo10uniqueTagsyShySSGSaySSGF -func __nsProbe67(_ a0: [String]) { +func __nsProbe72(_ a0: [String]) { let _: Set = SwiftDemo.`uniqueTags`(a0) } // s:9SwiftDemo10wordCountsySDySSSiGSaySSGF -func __nsProbe68(_ a0: [String]) { +func __nsProbe73(_ a0: [String]) { let _: [String: Int] = SwiftDemo.`wordCounts`(a0) } // s:9SwiftDemo11CounterViewC5countSivp @MainActor -func __nsProbe69(_ receiver: SwiftDemo.CounterView) { +func __nsProbe74(_ receiver: SwiftDemo.CounterView) { let _: Int = receiver.`count` } // s:9SwiftDemo11CounterViewC9configure5start4stepS2i_SiSgtF @MainActor -func __nsProbe70(_ receiver: SwiftDemo.CounterView, _ a0: Int, _ a1: Int?) { +func __nsProbe75(_ receiver: SwiftDemo.CounterView, _ a0: Int, _ a1: Int?) { let _: Int = receiver.`configure`(start: a0, step: a1) } // s:9SwiftDemo11MeasurementO -func __nsProbe71(_ value: SwiftDemo.Measurement) -> SwiftDemo.Measurement { value } +func __nsProbe76(_ value: SwiftDemo.Measurement) -> SwiftDemo.Measurement { value } // s:9SwiftDemo11MeasurementO4UnitV -func __nsProbe72(_ value: SwiftDemo.Measurement.Unit) -> SwiftDemo.Measurement.Unit { value } +func __nsProbe77(_ value: SwiftDemo.Measurement.Unit) -> SwiftDemo.Measurement.Unit { value } // s:9SwiftDemo11MeasurementO4UnitV6symbolAESS_tcfc -func __nsProbe73(_ a0: String) { +func __nsProbe78(_ a0: String) { let _: SwiftDemo.Measurement.Unit = SwiftDemo.Measurement.Unit(symbol: a0) } // s:9SwiftDemo11MeasurementO4UnitV6symbolSSvp -func __nsProbe74(_ receiver: inout SwiftDemo.Measurement.Unit, _ newValue: String) { +func __nsProbe79(_ receiver: inout SwiftDemo.Measurement.Unit, _ newValue: String) { let _: String = receiver.`symbol` receiver.`symbol` = newValue } // s:9SwiftDemo11MeasurementO4areayACSd_SdtcACmF -func __nsProbe75(_ a0: Double, _ a1: Double) { +func __nsProbe80(_ a0: Double, _ a1: Double) { let _: SwiftDemo.Measurement = SwiftDemo.Measurement.`area`(width: a0, height: a1) } // s:9SwiftDemo11MeasurementO4noneyA2CmF -func __nsProbe76() { +func __nsProbe81() { let _: SwiftDemo.Measurement = SwiftDemo.Measurement.`none` } // s:9SwiftDemo11MeasurementO6isNoneSbvp -func __nsProbe77(_ receiver: SwiftDemo.Measurement) { +func __nsProbe82(_ receiver: SwiftDemo.Measurement) { let _: Bool = receiver.`isNone` } // s:9SwiftDemo11MeasurementO6lengthyACSdcACmF -func __nsProbe78(_ a0: Double) { +func __nsProbe83(_ a0: Double) { let _: SwiftDemo.Measurement = SwiftDemo.Measurement.`length`(a0) } +// s:9SwiftDemo11ThermometerC +func __nsProbe84(_ value: SwiftDemo.Thermometer) -> SwiftDemo.Thermometer { value } + +// s:9SwiftDemo11ThermometerC6finishyyF +func __nsProbe85(_ receiver: SwiftDemo.Thermometer) { + let _: Void = receiver.`finish`() +} + +// s:9SwiftDemo11ThermometerC6recordyySdF +func __nsProbe86(_ receiver: SwiftDemo.Thermometer, _ a0: Double) { + let _: Void = receiver.`record`(a0) +} + +// s:9SwiftDemo11ThermometerC8readings7Combine12AnyPublisherVySds5NeverOGvp +func __nsProbe87(_ receiver: SwiftDemo.Thermometer) { + let _: AnyPublisher = receiver.`readings` +} + +// s:9SwiftDemo11ThermometerCACycfc +func __nsProbe88() { + let _: SwiftDemo.Thermometer = SwiftDemo.Thermometer() +} + // s:9SwiftDemo11checkedSideyS2dKF -func __nsProbe79(_ a0: Double) throws { +func __nsProbe89(_ a0: Double) throws { let _: Double = try SwiftDemo.`checkedSide`(a0) } // s:9SwiftDemo11countUniqueySiShySiGF -func __nsProbe80(_ a0: Set) { +func __nsProbe90(_ a0: Set) { let _: Int = SwiftDemo.`countUnique`(a0) } // s:9SwiftDemo11delayedEcho_5afterS2S_SdtYaKF -func __nsProbe81(_ a0: String, _ a1: Double) async throws { +func __nsProbe91(_ a0: String, _ a1: Double) async throws { let _: String = try await SwiftDemo.`delayedEcho`(a0, after: a1) } // s:9SwiftDemo11knownScoresySDySSSiSgGADF -func __nsProbe82(_ a0: [String: Int?]) { +func __nsProbe92(_ a0: [String: Int?]) { let _: [String: Int?] = SwiftDemo.`knownScores`(a0) } +// s:9SwiftDemo11longestWordySixSlRzSS7ElementRtzlF@<[s:SS]> +func __nsProbe93(_ a0: [String]) { + let _: Int = SwiftDemo.`longestWord`(a0) +} + // s:9SwiftDemo11parseNumberys6ResultOySis5Error_pGSSF -func __nsProbe83(_ a0: String) { +func __nsProbe94(_ a0: String) { let _: Result = SwiftDemo.`parseNumber`(a0) } // s:9SwiftDemo11sortedNames_2bySaySSGAD_SbSS_SStXEtF -func __nsProbe84(_ a0: [String], _ a1: (String, String) -> Bool) { +func __nsProbe95(_ a0: [String], _ a1: (String, String) -> Bool) { let _: [String] = SwiftDemo.`sortedNames`(a0, by: a1) } // s:9SwiftDemo12ParseFailureV -func __nsProbe85(_ value: SwiftDemo.ParseFailure) -> SwiftDemo.ParseFailure { value } +func __nsProbe96(_ value: SwiftDemo.ParseFailure) -> SwiftDemo.ParseFailure { value } // s:9SwiftDemo12ParseFailureV11descriptionSSvp -func __nsProbe86(_ receiver: SwiftDemo.ParseFailure) { +func __nsProbe97(_ receiver: SwiftDemo.ParseFailure) { let _: String = receiver.`description` } // s:9SwiftDemo12ParseFailureV4textSSvp -func __nsProbe87(_ receiver: SwiftDemo.ParseFailure) { +func __nsProbe98(_ receiver: SwiftDemo.ParseFailure) { let _: String = receiver.`text` } // s:9SwiftDemo12RankedScorerP -func __nsProbe88(_ value: any SwiftDemo.RankedScorer) -> any SwiftDemo.RankedScorer { value } +func __nsProbe99(_ value: any SwiftDemo.RankedScorer) -> any SwiftDemo.RankedScorer { value } // s:9SwiftDemo12RankedScorerP4rankSiSgvp -func __nsProbe89(_ receiver: any SwiftDemo.RankedScorer) { +func __nsProbe100(_ receiver: any SwiftDemo.RankedScorer) { let _: Int? = receiver.`rank` } +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:SS]> +func __nsProbe101(_ a0: [String]) { + let _: String? = SwiftDemo.`firstElement`(a0) +} + +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sb]> +func __nsProbe102(_ a0: [Bool]) { + let _: Bool? = SwiftDemo.`firstElement`(a0) +} + +// s:9SwiftDemo12firstElementy0D0QzSgxSlRzlF@<[s:Sd]> +func __nsProbe103(_ a0: [Double]) { + let _: Double? = SwiftDemo.`firstElement`(a0) +} + // s:9SwiftDemo12firstSubview2ofSo6UIViewCSgAE_tF -func __nsProbe90(_ a0: UIView) { +func __nsProbe104(_ a0: UIView) { let _: UIView? = SwiftDemo.`firstSubview`(of: a0) } // s:9SwiftDemo12latitudeSpanySdSo22CLLocationCoordinate2DV_ADtF -func __nsProbe91(_ a0: CLLocationCoordinate2D, _ a1: CLLocationCoordinate2D) { +func __nsProbe105(_ a0: CLLocationCoordinate2D, _ a1: CLLocationCoordinate2D) { let _: Double = SwiftDemo.`latitudeSpan`(a0, a1) } // s:9SwiftDemo12makeGreetingyAA0D0_pSSF -func __nsProbe92(_ a0: String) { +func __nsProbe106(_ a0: String) { let _: any SwiftDemo.Greeting = SwiftDemo.`makeGreeting`(a0) } // s:9SwiftDemo12measureLateryAA11MeasurementOSdYaF -func __nsProbe93(_ a0: Double) async { +func __nsProbe107(_ a0: Double) async { let _: SwiftDemo.Measurement = await SwiftDemo.`measureLater`(a0) } // s:9SwiftDemo12measurementsSayAA11MeasurementOGyF -func __nsProbe94() { +func __nsProbe108() { let _: [SwiftDemo.Measurement] = SwiftDemo.`measurements`() } // s:9SwiftDemo12swapTrackersyyAA7TrackerCz_ADztF -func __nsProbe95(_ a0: inout SwiftDemo.Tracker, _ a1: inout SwiftDemo.Tracker) { +func __nsProbe109(_ a0: inout SwiftDemo.Tracker, _ a1: inout SwiftDemo.Tracker) { let _: Void = SwiftDemo.`swapTrackers`(&a0, &a1) } // s:9SwiftDemo13PrecipitationO -func __nsProbe96(_ value: SwiftDemo.Precipitation) -> SwiftDemo.Precipitation { value } +func __nsProbe110(_ value: SwiftDemo.Precipitation) -> SwiftDemo.Precipitation { value } // s:9SwiftDemo13PrecipitationO4noneyA2CmF -func __nsProbe97() { +func __nsProbe111() { let _: SwiftDemo.Precipitation = SwiftDemo.Precipitation.`none` } // s:9SwiftDemo13PrecipitationO4rainyA2CmF -func __nsProbe98() { +func __nsProbe112() { let _: SwiftDemo.Precipitation = SwiftDemo.Precipitation.`rain` } // s:9SwiftDemo13PrecipitationO4snowyA2CmF -func __nsProbe99() { +func __nsProbe113() { let _: SwiftDemo.Precipitation = SwiftDemo.Precipitation.`snow` } // s:9SwiftDemo13PrecipitationO8rawValueACSgSS_tcfc -func __nsProbe100(_ a0: String) { +func __nsProbe114(_ a0: String) { let _: SwiftDemo.Precipitation? = SwiftDemo.Precipitation(rawValue: a0) } // s:9SwiftDemo13defaultFlavorAA0D0Ovp -func __nsProbe101() { +func __nsProbe115() { let _: SwiftDemo.Flavor = SwiftDemo.`defaultFlavor` } // s:9SwiftDemo13describeErrorySSs0D0_pSgF -func __nsProbe102(_ a0: (any Error)?) { +func __nsProbe116(_ a0: (any Error)?) { let _: String = SwiftDemo.`describeError`(a0) } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -func __nsProbe103(_ a0: String) { +func __nsProbe117(_ a0: String) { let _: String = SwiftDemo.`describeValue`(a0) } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -func __nsProbe104(_ a0: Bool) { +func __nsProbe118(_ a0: Bool) { let _: String = SwiftDemo.`describeValue`(a0) } // s:9SwiftDemo13describeValueySSxs23CustomStringConvertibleRzlF@ -func __nsProbe105(_ a0: Double) { +func __nsProbe119(_ a0: Double) { let _: String = SwiftDemo.`describeValue`(a0) } // s:9SwiftDemo13globalCounterSivp -func __nsProbe106(_ newValue: Int) { +func __nsProbe120(_ newValue: Int) { let _: Int = SwiftDemo.`globalCounter` SwiftDemo.`globalCounter` = newValue } // s:9SwiftDemo13starterWallet3for0aB3Kit0D0CSS_tF -func __nsProbe107(_ a0: String) { +func __nsProbe121(_ a0: String) { let _: SwiftDemoKit.Wallet = SwiftDemo.`starterWallet`(for: a0) } +// s:9SwiftDemo13waitForCancelySbSdYaF +func __nsProbe122(_ a0: Double) async { + let _: Bool = await SwiftDemo.`waitForCancel`(a0) +} + // s:9SwiftDemo14CountdownErrorV -func __nsProbe108(_ value: SwiftDemo.CountdownError) -> SwiftDemo.CountdownError { value } +func __nsProbe123(_ value: SwiftDemo.CountdownError) -> SwiftDemo.CountdownError { value } // s:9SwiftDemo14DoublingScorerV -func __nsProbe109(_ value: SwiftDemo.DoublingScorer) -> SwiftDemo.DoublingScorer { value } +func __nsProbe124(_ value: SwiftDemo.DoublingScorer) -> SwiftDemo.DoublingScorer { value } // s:9SwiftDemo14DoublingScorerV5scoreyS2iF -func __nsProbe110(_ receiver: SwiftDemo.DoublingScorer, _ a0: Int) { +func __nsProbe125(_ receiver: SwiftDemo.DoublingScorer, _ a0: Int) { let _: Int = receiver.`score`(a0) } // s:9SwiftDemo14DoublingScorerVACycfc -func __nsProbe111() { +func __nsProbe126() { let _: SwiftDemo.DoublingScorer = SwiftDemo.DoublingScorer() } // s:9SwiftDemo14FormalGreetingC -func __nsProbe112(_ value: SwiftDemo.FormalGreeting) -> SwiftDemo.FormalGreeting { value } +func __nsProbe127(_ value: SwiftDemo.FormalGreeting) -> SwiftDemo.FormalGreeting { value } // s:9SwiftDemo14FormalGreetingC11punctuationSSvp -func __nsProbe113(_ receiver: SwiftDemo.FormalGreeting, _ newValue: String) { +func __nsProbe128(_ receiver: SwiftDemo.FormalGreeting, _ newValue: String) { let _: String = receiver.`punctuation` receiver.`punctuation` = newValue } // s:9SwiftDemo14FormalGreetingC4nameACSS_tcfc -func __nsProbe114(_ a0: String) { +func __nsProbe129(_ a0: String) { let _: SwiftDemo.FormalGreeting = SwiftDemo.FormalGreeting(name: a0) } // s:9SwiftDemo14FormalGreetingC4nameSSvp -func __nsProbe115(_ receiver: SwiftDemo.FormalGreeting) { +func __nsProbe130(_ receiver: SwiftDemo.FormalGreeting) { let _: String = receiver.`name` } // s:9SwiftDemo14FormalGreetingC5greetyS2SF -func __nsProbe116(_ receiver: SwiftDemo.FormalGreeting, _ a0: String) { +func __nsProbe131(_ receiver: SwiftDemo.FormalGreeting, _ a0: String) { let _: String = receiver.`greet`(a0) } // s:9SwiftDemo14FormalGreetingC5resetyyF -func __nsProbe117(_ receiver: SwiftDemo.FormalGreeting) { +func __nsProbe132(_ receiver: SwiftDemo.FormalGreeting) { let _: Void = receiver.`reset`() } // s:9SwiftDemo14GreetingHolderC -func __nsProbe118(_ value: SwiftDemo.GreetingHolder) -> SwiftDemo.GreetingHolder { value } +func __nsProbe133(_ value: SwiftDemo.GreetingHolder) -> SwiftDemo.GreetingHolder { value } // s:9SwiftDemo14GreetingHolderC5greetySSSgSSF -func __nsProbe119(_ receiver: SwiftDemo.GreetingHolder, _ a0: String) { +func __nsProbe134(_ receiver: SwiftDemo.GreetingHolder, _ a0: String) { let _: String? = receiver.`greet`(a0) } // s:9SwiftDemo14GreetingHolderC8greetingAA0C0_pSgvp -func __nsProbe120(_ receiver: SwiftDemo.GreetingHolder, _ newValue: (any SwiftDemo.Greeting)?) { +func __nsProbe135(_ receiver: SwiftDemo.GreetingHolder, _ newValue: (any SwiftDemo.Greeting)?) { let _: (any SwiftDemo.Greeting)? = receiver.`greeting` receiver.`greeting` = newValue } // s:9SwiftDemo14GreetingHolderCACycfc -func __nsProbe121() { +func __nsProbe136() { let _: SwiftDemo.GreetingHolder = SwiftDemo.GreetingHolder() } +// s:9SwiftDemo16GreetingRegistryC +func __nsProbe137(_ value: SwiftDemo.GreetingRegistry) -> SwiftDemo.GreetingRegistry { value } + +// s:9SwiftDemo16GreetingRegistryC3addyyAA0C0_pF +func __nsProbe138(_ receiver: SwiftDemo.GreetingRegistry, _ a0: any SwiftDemo.Greeting) { + let _: Void = receiver.`add`(a0) +} + +// s:9SwiftDemo16GreetingRegistryC5countSivp +func __nsProbe139(_ receiver: SwiftDemo.GreetingRegistry) { + let _: Int = receiver.`count` +} + +// s:9SwiftDemo16GreetingRegistryC6removeyyAA0C0_pF +func __nsProbe140(_ receiver: SwiftDemo.GreetingRegistry, _ a0: any SwiftDemo.Greeting) { + let _: Void = receiver.`remove`(a0) +} + +// s:9SwiftDemo16GreetingRegistryC8containsySbAA0C0_pF +func __nsProbe141(_ receiver: SwiftDemo.GreetingRegistry, _ a0: any SwiftDemo.Greeting) { + let _: Bool = receiver.`contains`(a0) +} + +// s:9SwiftDemo16GreetingRegistryCACycfc +func __nsProbe142() { + let _: SwiftDemo.GreetingRegistry = SwiftDemo.GreetingRegistry() +} + // s:9SwiftDemo16makeDefaultPointAA0E0VyF -func __nsProbe122() { +func __nsProbe143() { let _: SwiftDemo.Point = SwiftDemo.`makeDefaultPoint`() } // s:9SwiftDemo16makeTrackerLater2idAA0D0CSi_tYaF -func __nsProbe123(_ a0: Int) async { +func __nsProbe144(_ a0: Int) async { let _: SwiftDemo.Tracker = await SwiftDemo.`makeTrackerLater`(id: a0) } // s:9SwiftDemo17greetInBackgroundySSAA8Greeting_pYaF -func __nsProbe124(_ a0: any SwiftDemo.Greeting) async { +func __nsProbe145(_ a0: any SwiftDemo.Greeting) async { let _: String = await SwiftDemo.`greetInBackground`(a0) } +// s:9SwiftDemo18WeakGreetingHolderC +func __nsProbe146(_ value: SwiftDemo.WeakGreetingHolder) -> SwiftDemo.WeakGreetingHolder { value } + +// s:9SwiftDemo18WeakGreetingHolderC5greetySSSgSSF +func __nsProbe147(_ receiver: SwiftDemo.WeakGreetingHolder, _ a0: String) { + let _: String? = receiver.`greet`(a0) +} + +// s:9SwiftDemo18WeakGreetingHolderC8greetingAA0D0_pSgvp +func __nsProbe148(_ receiver: SwiftDemo.WeakGreetingHolder, _ newValue: (any SwiftDemo.Greeting)?) { + let _: (any SwiftDemo.Greeting)? = receiver.`greeting` + receiver.`greeting` = newValue +} + +// s:9SwiftDemo18WeakGreetingHolderCACycfc +func __nsProbe149() { + let _: SwiftDemo.WeakGreetingHolder = SwiftDemo.WeakGreetingHolder() +} + // s:9SwiftDemo19computeInBackgroundyS2iyYbcYaF -func __nsProbe125(_ a0: @escaping @Sendable () -> Int) async { +func __nsProbe150(_ a0: @escaping @Sendable () -> Int) async { let _: Int = await SwiftDemo.`computeInBackground`(a0) } // s:9SwiftDemo3JobO6TicketV -func __nsProbe126(_ value: SwiftDemo.Job.Ticket) -> SwiftDemo.Job.Ticket { value } +func __nsProbe151(_ value: SwiftDemo.Job.Ticket) -> SwiftDemo.Job.Ticket { value } // s:9SwiftDemo3JobO6TicketV2idAESi_tcfc -func __nsProbe127(_ a0: Int) { +func __nsProbe152(_ a0: Int) { let _: SwiftDemo.Job.Ticket = SwiftDemo.Job.Ticket(id: a0) } // s:9SwiftDemo3JobO6TicketV2idSivp -func __nsProbe128(_ receiver: inout SwiftDemo.Job.Ticket, _ newValue: Int) { +func __nsProbe153(_ receiver: inout SwiftDemo.Job.Ticket, _ newValue: Int) { let _: Int = receiver.`id` receiver.`id` = newValue } // s:9SwiftDemo3sum2of0aB3Kit5MoneyVSayAFG_tF -func __nsProbe129(_ a0: [SwiftDemoKit.Money]) { +func __nsProbe154(_ a0: [SwiftDemoKit.Money]) { let _: SwiftDemoKit.Money = SwiftDemo.`sum`(of: a0) } +// s:9SwiftDemo4GridV +func __nsProbe155(_ value: SwiftDemo.Grid) -> SwiftDemo.Grid { value } + +// s:9SwiftDemo4GridV4sizeACSi_tcfc +func __nsProbe156(_ a0: Int) { + let _: SwiftDemo.Grid = SwiftDemo.Grid(size: a0) +} + +// s:9SwiftDemo4GridV5cellsSaySiGvp +func __nsProbe157(_ receiver: inout SwiftDemo.Grid, _ newValue: [Int]) { + let _: [Int] = receiver.`cells` + receiver.`cells` = newValue +} + +// s:9SwiftDemo4GridVyS2icip +func __nsProbe158(_ receiver: inout SwiftDemo.Grid, _ a0: Int, _ newValue: Int) { + let _: Int = receiver[a0] + receiver[a0] = newValue +} + // s:9SwiftDemo4NoteC4tagsShySSGvp -func __nsProbe130(_ receiver: SwiftDemo.Note, _ newValue: Set) { +func __nsProbe159(_ receiver: SwiftDemo.Note, _ newValue: Set) { let _: Set = receiver.`tags` receiver.`tags` = newValue } // s:9SwiftDemo4NoteC4textACSS_tcfc -func __nsProbe131(_ a0: String) { +func __nsProbe160(_ a0: String) { let _: SwiftDemo.Note = SwiftDemo.Note(text: a0) } // s:9SwiftDemo4NoteC4textSSvp -func __nsProbe132(_ receiver: SwiftDemo.Note) { +func __nsProbe161(_ receiver: SwiftDemo.Note) { let _: String = receiver.`text` } // s:9SwiftDemo4NoteC5blankACyFZ -func __nsProbe133() { +func __nsProbe162() { let _: SwiftDemo.Note = SwiftDemo.Note.`blank`() } // s:9SwiftDemo4NoteC6taggedyACSSF -func __nsProbe134(_ receiver: SwiftDemo.Note, _ a0: String) { +func __nsProbe163(_ receiver: SwiftDemo.Note, _ a0: String) { let _: SwiftDemo.Note = receiver.`tagged`(a0) } // s:9SwiftDemo4NoteC7summary9maxLengthSSSi_tF -func __nsProbe135(_ receiver: SwiftDemo.Note, _ a0: Int) { +func __nsProbe164(_ receiver: SwiftDemo.Note, _ a0: Int) { let _: String = receiver.`summary`(maxLength: a0) } // s:9SwiftDemo4RingV -func __nsProbe136(_ value: SwiftDemo.Ring) -> SwiftDemo.Ring { value } +func __nsProbe165(_ value: SwiftDemo.Ring) -> SwiftDemo.Ring { value } + +// s:9SwiftDemo4RingV1poiyA2C_ACtFZ +func __nsProbe166(_ receiver: SwiftDemo.Ring, _ a0: SwiftDemo.Ring) { + let _: SwiftDemo.Ring = (receiver) + (a0) +} // s:9SwiftDemo4RingV5inner5outerAcA5PointV_AGtcfc -func __nsProbe137(_ a0: SwiftDemo.Point, _ a1: SwiftDemo.Point) { +func __nsProbe167(_ a0: SwiftDemo.Point, _ a1: SwiftDemo.Point) { let _: SwiftDemo.Ring = SwiftDemo.Ring(inner: a0, outer: a1) } // s:9SwiftDemo4RingV5innerAA5PointVvp -func __nsProbe138(_ receiver: inout SwiftDemo.Ring, _ newValue: SwiftDemo.Point) { +func __nsProbe168(_ receiver: inout SwiftDemo.Ring, _ newValue: SwiftDemo.Point) { let _: SwiftDemo.Point = receiver.`inner` receiver.`inner` = newValue } // s:9SwiftDemo4RingV5outerAA5PointVvp -func __nsProbe139(_ receiver: inout SwiftDemo.Ring, _ newValue: SwiftDemo.Point) { +func __nsProbe169(_ receiver: inout SwiftDemo.Ring, _ newValue: SwiftDemo.Point) { let _: SwiftDemo.Point = receiver.`outer` receiver.`outer` = newValue } // s:9SwiftDemo4RingV6expand2byySd_tF -func __nsProbe140(_ receiver: inout SwiftDemo.Ring, _ a0: Double) { +func __nsProbe170(_ receiver: inout SwiftDemo.Ring, _ a0: Double) { let _: Void = receiver.`expand`(by: a0) } // s:9SwiftDemo4area2ofSdAA11MeasurementO_tF -func __nsProbe141(_ a0: SwiftDemo.Measurement) { +func __nsProbe171(_ a0: SwiftDemo.Measurement) { let _: Double = SwiftDemo.`area`(of: a0) } // s:9SwiftDemo4bumpyySizF -func __nsProbe142(_ a0: inout Int) { +func __nsProbe172(_ a0: inout Int) { let _: Void = SwiftDemo.`bump`(&a0) } // s:9SwiftDemo4echoyAA7PayloadOADF -func __nsProbe143(_ a0: SwiftDemo.Payload) { +func __nsProbe173(_ a0: SwiftDemo.Payload) { let _: SwiftDemo.Payload = SwiftDemo.`echo`(a0) } // s:9SwiftDemo4flipy0aB3Kit4CoinOAEF -func __nsProbe144(_ a0: SwiftDemoKit.Coin) { +func __nsProbe174(_ a0: SwiftDemoKit.Coin) { let _: SwiftDemoKit.Coin = SwiftDemo.`flip`(a0) } // s:9SwiftDemo4host2ofSSSg10Foundation3URLV_tF -func __nsProbe145(_ a0: URL) { +func __nsProbe175(_ a0: URL) { let _: String? = SwiftDemo.`host`(of: a0) } // s:9SwiftDemo4plotySSSgSd1x_Sd1ytSgF -func __nsProbe146(_ a0: (x: Double, y: Double)?) { +func __nsProbe176(_ a0: (x: Double, y: Double)?) { let _: String? = SwiftDemo.`plot`(a0) } // s:9SwiftDemo4rampy10Foundation4DataVSiF -func __nsProbe147(_ a0: Int) { +func __nsProbe177(_ a0: Int) { let _: Data = SwiftDemo.`ramp`(a0) } // s:9SwiftDemo4sameyAA8Greeting_pAaC_pF -func __nsProbe148(_ a0: any SwiftDemo.Greeting) { +func __nsProbe178(_ a0: any SwiftDemo.Greeting) { let _: any SwiftDemo.Greeting = SwiftDemo.`same`(a0) } // s:9SwiftDemo4tagsySaySiGSaySo6UIViewCGF -func __nsProbe149(_ a0: [UIView]) { +func __nsProbe179(_ a0: [UIView]) { let _: [Int] = SwiftDemo.`tags`(a0) } // s:9SwiftDemo4text2ofSSAA4NoteC_tF -func __nsProbe150(_ a0: SwiftDemo.Note) { +func __nsProbe180(_ a0: SwiftDemo.Note) { let _: String = SwiftDemo.`text`(of: a0) } // s:9SwiftDemo4zeroxySjRzlF@ -func __nsProbe151() { +func __nsProbe181() { let _: Double = SwiftDemo.`zero`() } // s:9SwiftDemo5BadgeV -func __nsProbe152(_ value: SwiftDemo.Badge) -> SwiftDemo.Badge { value } +func __nsProbe182(_ value: SwiftDemo.Badge) -> SwiftDemo.Badge { value } // s:9SwiftDemo5BadgeV5countSivp @MainActor -func __nsProbe153(_ receiver: inout SwiftDemo.Badge, _ newValue: Int) { +func __nsProbe183(_ receiver: inout SwiftDemo.Badge, _ newValue: Int) { let _: Int = receiver.`count` receiver.`count` = newValue } // s:9SwiftDemo5BadgeV5title5countACSS_Sitcfc @MainActor -func __nsProbe154(_ a0: String, _ a1: Int) { +func __nsProbe184(_ a0: String, _ a1: Int) { let _: SwiftDemo.Badge = SwiftDemo.Badge(title: a0, count: a1) } // s:9SwiftDemo5BadgeV5titleSSvp @MainActor -func __nsProbe155(_ receiver: inout SwiftDemo.Badge, _ newValue: String) { +func __nsProbe185(_ receiver: inout SwiftDemo.Badge, _ newValue: String) { let _: String = receiver.`title` receiver.`title` = newValue } // s:9SwiftDemo5BenchC -func __nsProbe156(_ value: SwiftDemo.Bench) -> SwiftDemo.Bench { value } +func __nsProbe186(_ value: SwiftDemo.Bench) -> SwiftDemo.Bench { value } // s:9SwiftDemo5BenchC4echoyS2iF -func __nsProbe157(_ receiver: SwiftDemo.Bench, _ a0: Int) { +func __nsProbe187(_ receiver: SwiftDemo.Bench, _ a0: Int) { let _: Int = receiver.`echo`(a0) } // s:9SwiftDemo5BenchC4echoyS2iFZ -func __nsProbe158(_ a0: Int) { +func __nsProbe188(_ a0: Int) { let _: Int = SwiftDemo.Bench.`echo`(a0) } // s:9SwiftDemo5BenchC5valueSivp -func __nsProbe159(_ receiver: SwiftDemo.Bench, _ newValue: Int) { +func __nsProbe189(_ receiver: SwiftDemo.Bench, _ newValue: Int) { let _: Int = receiver.`value` receiver.`value` = newValue } // s:9SwiftDemo5BenchCACycfc -func __nsProbe160() { +func __nsProbe190() { let _: SwiftDemo.Bench = SwiftDemo.Bench() } // s:9SwiftDemo5PointV -func __nsProbe161(_ value: SwiftDemo.Point) -> SwiftDemo.Point { value } +func __nsProbe191(_ value: SwiftDemo.Point) -> SwiftDemo.Point { value } // s:9SwiftDemo5PointV11descriptionSSvp -func __nsProbe162(_ receiver: SwiftDemo.Point) { +func __nsProbe192(_ receiver: SwiftDemo.Point) { let _: String = receiver.`description` } // s:9SwiftDemo5PointV1x1yACSd_Sdtcfc -func __nsProbe163(_ a0: Double, _ a1: Double) { +func __nsProbe193(_ a0: Double, _ a1: Double) { let _: SwiftDemo.Point = SwiftDemo.Point(x: a0, y: a1) } // s:9SwiftDemo5PointV1xSdvp -func __nsProbe164(_ receiver: inout SwiftDemo.Point, _ newValue: Double) { +func __nsProbe194(_ receiver: inout SwiftDemo.Point, _ newValue: Double) { let _: Double = receiver.`x` receiver.`x` = newValue } // s:9SwiftDemo5PointV1ySdvp -func __nsProbe165(_ receiver: inout SwiftDemo.Point, _ newValue: Double) { +func __nsProbe195(_ receiver: inout SwiftDemo.Point, _ newValue: Double) { let _: Double = receiver.`y` receiver.`y` = newValue } // s:9SwiftDemo5PointV6lengthSdvp -func __nsProbe166(_ receiver: SwiftDemo.Point) { +func __nsProbe196(_ receiver: SwiftDemo.Point) { let _: Double = receiver.`length` } +// s:9SwiftDemo5ShelfC +func __nsProbe197(_ value: SwiftDemo.Shelf) -> SwiftDemo.Shelf { value } + +// s:9SwiftDemo5ShelfCACycfc +func __nsProbe198() { + let _: SwiftDemo.Shelf = SwiftDemo.Shelf() +} + +// s:9SwiftDemo5ShelfCySSSi_Sitcip +func __nsProbe199(_ receiver: SwiftDemo.Shelf, _ a0: Int, _ a1: Int) { + let _: String = receiver[a0, a1] +} + +// s:9SwiftDemo5ShelfCySiSgSScip +func __nsProbe200(_ receiver: SwiftDemo.Shelf, _ a0: String, _ newValue: Int?) { + let _: Int? = receiver[a0] + receiver[a0] = newValue +} + // s:9SwiftDemo5boxedy0aB3Kit3BoxCyAC5MoneyVGAGF -func __nsProbe167(_ a0: SwiftDemoKit.Money) { +func __nsProbe201(_ a0: SwiftDemoKit.Money) { let _: SwiftDemoKit.Box = SwiftDemo.`boxed`(a0) } // s:9SwiftDemo5clearyySSSgzF -func __nsProbe168(_ a0: inout String?) { +func __nsProbe202(_ a0: inout String?) { let _: Void = SwiftDemo.`clear`(&a0) } +// s:9SwiftDemo5evens5belowST_pSi7ElementSTRts_XPSi_tF +func __nsProbe203(_ a0: Int) { + let _: any Sequence = SwiftDemo.`evens`(below: a0) +} + // s:9SwiftDemo5halveyySizKF -func __nsProbe169(_ a0: inout Int) throws { +func __nsProbe204(_ a0: inout Int) throws { let _: Void = try SwiftDemo.`halve`(&a0) } // s:9SwiftDemo5holesySaySSSgGSiF -func __nsProbe170(_ a0: Int) { +func __nsProbe205(_ a0: Int) { let _: [String?] = SwiftDemo.`holes`(a0) } // s:9SwiftDemo5inset_2bySo6CGRectVAE_So12UIEdgeInsetsVtF -func __nsProbe171(_ a0: CGRect, _ a1: UIEdgeInsets) { +func __nsProbe206(_ a0: CGRect, _ a1: UIEdgeInsets) { let _: CGRect = SwiftDemo.`inset`(a0, by: a1) } // s:9SwiftDemo5namesySaySSGSiF -func __nsProbe172(_ a0: Int) { +func __nsProbe207(_ a0: Int) { let _: [String] = SwiftDemo.`names`(a0) } // s:9SwiftDemo5pagesyScSySaySSGGSiF -func __nsProbe173(_ a0: Int) { +func __nsProbe208(_ a0: Int) { let _: AsyncStream<[String]> = SwiftDemo.`pages`(a0) } // s:9SwiftDemo5shoutySSSgACF -func __nsProbe174(_ a0: String?) { +func __nsProbe209(_ a0: String?) { let _: String? = SwiftDemo.`shout`(a0) } // s:9SwiftDemo5spansSaySS_SiSgtGyF -func __nsProbe175() { +func __nsProbe210() { let _: [(String, Int?)] = SwiftDemo.`spans`() } // s:9SwiftDemo5tagOfySixSo6UIViewCRbzlF@ -func __nsProbe176(_ a0: UIView) { +func __nsProbe211(_ a0: UIView) { let _: Int = SwiftDemo.`tagOf`(a0) } // s:9SwiftDemo5totalySdSaySdGF -func __nsProbe177(_ a0: [Double]) { +func __nsProbe212(_ a0: [Double]) { let _: Double = SwiftDemo.`total`(a0) } // s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF@ -func __nsProbe178(_ a0: SwiftDemoKit.Box) { +func __nsProbe213(_ a0: SwiftDemoKit.Box) { let _: SwiftDemoKit.Money = SwiftDemo.`unbox`(a0) } // s:9SwiftDemo5unboxyx0aB3Kit3BoxCyxGlF@ -func __nsProbe179(_ a0: SwiftDemoKit.Box) { +func __nsProbe214(_ a0: SwiftDemoKit.Box) { let _: Int = SwiftDemo.`unbox`(a0) } // s:9SwiftDemo6CanvasC -func __nsProbe180(_ value: SwiftDemo.Canvas) -> SwiftDemo.Canvas { value } +func __nsProbe215(_ value: SwiftDemo.Canvas) -> SwiftDemo.Canvas { value } // s:9SwiftDemo6CanvasCACycfc @MainActor -func __nsProbe181() { +func __nsProbe216() { let _: SwiftDemo.Canvas = SwiftDemo.Canvas() } // s:9SwiftDemo6FlavorO -func __nsProbe182(_ value: SwiftDemo.Flavor) -> SwiftDemo.Flavor { value } +func __nsProbe217(_ value: SwiftDemo.Flavor) -> SwiftDemo.Flavor { value } // s:9SwiftDemo6FlavorO11descriptionSSvp -func __nsProbe183(_ receiver: SwiftDemo.Flavor) { +func __nsProbe218(_ receiver: SwiftDemo.Flavor) { let _: String = receiver.`description` } // s:9SwiftDemo6FlavorO7vanillayA2CmF -func __nsProbe184() { +func __nsProbe219() { let _: SwiftDemo.Flavor = SwiftDemo.Flavor.`vanilla` } // s:9SwiftDemo6FlavorO8rawValueACSgSi_tcfc -func __nsProbe185(_ a0: Int) { +func __nsProbe220(_ a0: Int) { let _: SwiftDemo.Flavor? = SwiftDemo.Flavor(rawValue: a0) } // s:9SwiftDemo6FlavorO9chocolateyA2CmF -func __nsProbe186() { +func __nsProbe221() { let _: SwiftDemo.Flavor = SwiftDemo.Flavor.`chocolate` } // s:9SwiftDemo6LoaderC -func __nsProbe187(_ value: SwiftDemo.Loader) -> SwiftDemo.Loader { value } +func __nsProbe222(_ value: SwiftDemo.Loader) -> SwiftDemo.Loader { value } // s:9SwiftDemo6LoaderC10modernOnlyyyF @available(iOS 16.0, *) -func __nsProbe188(_ receiver: SwiftDemo.Loader) { +func __nsProbe223(_ receiver: SwiftDemo.Loader) { let _: Void = receiver.`modernOnly`() } // s:9SwiftDemo6LoaderC11legacyFetchyyF -func __nsProbe189(_ receiver: SwiftDemo.Loader) { +func __nsProbe224(_ receiver: SwiftDemo.Loader) { let _: Void = receiver.`legacyFetch`() } // s:9SwiftDemo6LoaderC14withCompletionyyys6ResultOySSAA10ShapeErrorOGcF -func __nsProbe190(_ receiver: SwiftDemo.Loader, _ a0: @escaping (Result) -> Void) { +func __nsProbe225(_ receiver: SwiftDemo.Loader, _ a0: @escaping (Result) -> Void) { let _: Void = receiver.`withCompletion`(a0) } // s:9SwiftDemo6LoaderC4eachyyySiXEF -func __nsProbe191(_ receiver: SwiftDemo.Loader, _ a0: (Int) -> Void) { +func __nsProbe226(_ receiver: SwiftDemo.Loader, _ a0: (Int) -> Void) { let _: Void = receiver.`each`(a0) } // s:9SwiftDemo6LoaderC4load4path10Foundation4DataVSS_tKF -func __nsProbe192(_ receiver: SwiftDemo.Loader, _ a0: String) throws { +func __nsProbe227(_ receiver: SwiftDemo.Loader, _ a0: String) throws { let _: Data = try receiver.`load`(path: a0) } // s:9SwiftDemo6LoaderC4wait7secondsySd_tYaF -func __nsProbe193(_ receiver: SwiftDemo.Loader, _ a0: Double) async { +func __nsProbe228(_ receiver: SwiftDemo.Loader, _ a0: Double) async { let _: Void = await receiver.`wait`(seconds: a0) } // s:9SwiftDemo6LoaderC5fetch3urlSS10Foundation3URLV_tYaKF -func __nsProbe194(_ receiver: SwiftDemo.Loader, _ a0: URL) async throws { +func __nsProbe229(_ receiver: SwiftDemo.Loader, _ a0: URL) async throws { let _: String = try await receiver.`fetch`(url: a0) } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -func __nsProbe195(_ receiver: SwiftDemo.Loader, _ a0: [String]) { +func __nsProbe230(_ receiver: SwiftDemo.Loader, _ a0: [String]) { let _: String? = receiver.`first`(of: a0) } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -func __nsProbe196(_ receiver: SwiftDemo.Loader, _ a0: [Bool]) { +func __nsProbe231(_ receiver: SwiftDemo.Loader, _ a0: [Bool]) { let _: Bool? = receiver.`first`(of: a0) } // s:9SwiftDemo6LoaderC5first2ofxSgSayxG_tlF@ -func __nsProbe197(_ receiver: SwiftDemo.Loader, _ a0: [Double]) { +func __nsProbe232(_ receiver: SwiftDemo.Loader, _ a0: [Double]) { let _: Double? = receiver.`first`(of: a0) } // s:9SwiftDemo6LoaderC6lookup5table3keySiSgSDySSSiG_SStF -func __nsProbe198(_ receiver: SwiftDemo.Loader, _ a0: [String: Int], _ a1: String) { +func __nsProbe233(_ receiver: SwiftDemo.Loader, _ a0: [String: Int], _ a1: String) { let _: Int? = receiver.`lookup`(table: a0, key: a1) } // s:9SwiftDemo6LoaderC6updateyyAA5PointVzF -func __nsProbe199(_ receiver: SwiftDemo.Loader, _ a0: inout SwiftDemo.Point) { +func __nsProbe234(_ receiver: SwiftDemo.Loader, _ a0: inout SwiftDemo.Point) { let _: Void = receiver.`update`(&a0) } // s:9SwiftDemo6LoaderC8oldFetchyyF -func __nsProbe200(_ receiver: SwiftDemo.Loader) { +func __nsProbe235(_ receiver: SwiftDemo.Loader) { let _: Void = receiver.`oldFetch`() } // s:9SwiftDemo6LoaderCACycfc -func __nsProbe201() { +func __nsProbe236() { let _: SwiftDemo.Loader = SwiftDemo.Loader() } // s:9SwiftDemo6ScorerP -func __nsProbe202(_ value: any SwiftDemo.Scorer) -> any SwiftDemo.Scorer { value } +func __nsProbe237(_ value: any SwiftDemo.Scorer) -> any SwiftDemo.Scorer { value } // s:9SwiftDemo6ScorerP5scoreyS2iKF -func __nsProbe203(_ receiver: any SwiftDemo.Scorer, _ a0: Int) throws { +func __nsProbe238(_ receiver: any SwiftDemo.Scorer, _ a0: Int) throws { let _: Int = try receiver.`score`(a0) } // s:9SwiftDemo6SquareC -func __nsProbe204(_ value: SwiftDemo.Square) -> SwiftDemo.Square { value } +func __nsProbe239(_ value: SwiftDemo.Square) -> SwiftDemo.Square { value } // s:9SwiftDemo6SquareC4areaSdvp -func __nsProbe205(_ receiver: SwiftDemo.Square) { +func __nsProbe240(_ receiver: SwiftDemo.Square) { let _: Double = receiver.`area` } // s:9SwiftDemo6SquareC4sideACSd_tcfc -func __nsProbe206(_ a0: Double) { +func __nsProbe241(_ a0: Double) { let _: SwiftDemo.Square = SwiftDemo.Square(side: a0) } // s:9SwiftDemo6SquareC4sideSdvp -func __nsProbe207(_ receiver: SwiftDemo.Square, _ newValue: Double) { +func __nsProbe242(_ receiver: SwiftDemo.Square, _ newValue: Double) { let _: Double = receiver.`side` receiver.`side` = newValue } // s:9SwiftDemo6SquareC5greet4nameS2S_tF -func __nsProbe208(_ receiver: SwiftDemo.Square, _ a0: String) { +func __nsProbe243(_ receiver: SwiftDemo.Square, _ a0: String) { let _: String = receiver.`greet`(name: a0) } // s:9SwiftDemo6SquareC5scale2byySd_tF -func __nsProbe209(_ receiver: SwiftDemo.Square, _ a0: Double) { +func __nsProbe244(_ receiver: SwiftDemo.Square, _ a0: Double) { let _: Void = receiver.`scale`(by: a0) } // s:9SwiftDemo6SquareC5sidesSivpZ -func __nsProbe210() { +func __nsProbe245() { let _: Int = SwiftDemo.Square.`sides` } // s:9SwiftDemo6append_2toySS_SaySSGztF -func __nsProbe211(_ a0: String, _ a1: inout [String]) { +func __nsProbe246(_ a0: String, _ a1: inout [String]) { let _: Void = SwiftDemo.`append`(a0, to: &a1) } // s:9SwiftDemo6divide_2bySi8quotient_Si9remaindertSi_SitF -func __nsProbe212(_ a0: Int, _ a1: Int) { +func __nsProbe247(_ a0: Int, _ a1: Int) { let _: (quotient: Int, remainder: Int) = SwiftDemo.`divide`(a0, by: a1) } // s:9SwiftDemo6exciteyyAA8Greeting_pF -func __nsProbe213(_ a0: any SwiftDemo.Greeting) { +func __nsProbe248(_ a0: any SwiftDemo.Greeting) { let _: Void = SwiftDemo.`excite`(a0) } // s:9SwiftDemo6lookupySiSS_SiSgSSXEtF -func __nsProbe214(_ a0: String, _ a1: (String) -> Int?) { +func __nsProbe249(_ a0: String, _ a1: (String) -> Int?) { let _: Int = SwiftDemo.`lookup`(a0, a1) } // s:9SwiftDemo6settley0aB3Kit7OutcomeOySiGSiF -func __nsProbe215(_ a0: Int) { +func __nsProbe250(_ a0: Int) { let _: SwiftDemoKit.Outcome = SwiftDemo.`settle`(a0) } +// s:9SwiftDemo6sumAllySixSTRzSi7ElementRtzlF@<[s:Si]> +func __nsProbe251(_ a0: [Int]) { + let _: Int = SwiftDemo.`sumAll`(a0) +} + +// s:9SwiftDemo6tickerScSySiGyF +func __nsProbe252() { + let _: AsyncStream = SwiftDemo.`ticker`() +} + // s:9SwiftDemo6unwrapySSs6ResultOySSs5Error_pGKF -func __nsProbe216(_ a0: Result) throws { +func __nsProbe253(_ a0: Result) throws { let _: String = try SwiftDemo.`unwrap`(a0) } // s:9SwiftDemo7CounterC -func __nsProbe217(_ value: SwiftDemo.Counter) -> SwiftDemo.Counter { value } +func __nsProbe254(_ value: SwiftDemo.Counter) -> SwiftDemo.Counter { value } // s:9SwiftDemo7CounterC4stepSivp -func __nsProbe218(_ receiver: SwiftDemo.Counter) async { +func __nsProbe255(_ receiver: SwiftDemo.Counter) async { let _: Int = await receiver.`step` } // s:9SwiftDemo7CounterC5labelSSyF -func __nsProbe219(_ receiver: SwiftDemo.Counter) { +func __nsProbe256(_ receiver: SwiftDemo.Counter) { let _: String = receiver.`label`() } // s:9SwiftDemo7CounterC5valueSivp -func __nsProbe220(_ receiver: SwiftDemo.Counter) async { +func __nsProbe257(_ receiver: SwiftDemo.Counter) async { let _: Int = await receiver.`value` } // s:9SwiftDemo7CounterC9incrementSiyF -func __nsProbe221(_ receiver: SwiftDemo.Counter) async { +func __nsProbe258(_ receiver: SwiftDemo.Counter) async { let _: Int = await receiver.`increment`() } // s:9SwiftDemo7CounterCACycfc -func __nsProbe222() { +func __nsProbe259() { let _: SwiftDemo.Counter = SwiftDemo.Counter() } // s:9SwiftDemo7FormulaO -func __nsProbe223(_ value: SwiftDemo.Formula) -> SwiftDemo.Formula { value } +func __nsProbe260(_ value: SwiftDemo.Formula) -> SwiftDemo.Formula { value } // s:9SwiftDemo7FormulaO3sumyA2C_ACtcACmF -func __nsProbe224(_ a0: SwiftDemo.Formula, _ a1: SwiftDemo.Formula) { +func __nsProbe261(_ a0: SwiftDemo.Formula, _ a1: SwiftDemo.Formula) { let _: SwiftDemo.Formula = SwiftDemo.Formula.`sum`(a0, a1) } // s:9SwiftDemo7FormulaO5valueSdvp -func __nsProbe225(_ receiver: SwiftDemo.Formula) { +func __nsProbe262(_ receiver: SwiftDemo.Formula) { let _: Double = receiver.`value` } // s:9SwiftDemo7FormulaO6negateyA2CcACmF -func __nsProbe226(_ a0: SwiftDemo.Formula) { +func __nsProbe263(_ a0: SwiftDemo.Formula) { let _: SwiftDemo.Formula = SwiftDemo.Formula.`negate`(a0) } // s:9SwiftDemo7FormulaO6numberyACSdcACmF -func __nsProbe227(_ a0: Double) { +func __nsProbe264(_ a0: Double) { let _: SwiftDemo.Formula = SwiftDemo.Formula.`number`(a0) } // s:9SwiftDemo7GreeterP -func __nsProbe228(_ value: any SwiftDemo.Greeter) -> any SwiftDemo.Greeter { value } +func __nsProbe265(_ value: any SwiftDemo.Greeter) -> any SwiftDemo.Greeter { value } // s:9SwiftDemo7GreeterP5greet4nameS2S_tF -func __nsProbe229(_ receiver: any SwiftDemo.Greeter, _ a0: String) { +func __nsProbe266(_ receiver: any SwiftDemo.Greeter, _ a0: String) { let _: String = receiver.`greet`(name: a0) } // s:9SwiftDemo7PaletteC -func __nsProbe230(_ value: SwiftDemo.Palette) -> SwiftDemo.Palette { value } +func __nsProbe267(_ value: SwiftDemo.Palette) -> SwiftDemo.Palette { value } // s:9SwiftDemo7PaletteC11strokeLaterSiyYaF -func __nsProbe231(_ receiver: SwiftDemo.Palette) async { +func __nsProbe268(_ receiver: SwiftDemo.Palette) async { let _: Int = await receiver.`strokeLater`() } // s:9SwiftDemo7PaletteC6strokeSiyF @MainActor -func __nsProbe232(_ receiver: SwiftDemo.Palette) { +func __nsProbe269(_ receiver: SwiftDemo.Palette) { let _: Int = receiver.`stroke`() } // s:9SwiftDemo7PaletteC7strokesSivp @MainActor -func __nsProbe233(_ receiver: SwiftDemo.Palette) { +func __nsProbe270(_ receiver: SwiftDemo.Palette) { let _: Int = receiver.`strokes` } // s:9SwiftDemo7PaletteCACycfc @MainActor -func __nsProbe234() { +func __nsProbe271() { let _: SwiftDemo.Palette = SwiftDemo.Palette() } // s:9SwiftDemo7PayloadO -func __nsProbe235(_ value: SwiftDemo.Payload) -> SwiftDemo.Payload { value } +func __nsProbe272(_ value: SwiftDemo.Payload) -> SwiftDemo.Payload { value } // s:9SwiftDemo7PayloadO5maybeyACSiSgcACmF -func __nsProbe236(_ a0: Int?) { +func __nsProbe273(_ a0: Int?) { let _: SwiftDemo.Payload = SwiftDemo.Payload.`maybe`(a0) } // s:9SwiftDemo7PayloadO5namesyACSaySSGcACmF -func __nsProbe237(_ a0: [String]) { +func __nsProbe274(_ a0: [String]) { let _: SwiftDemo.Payload = SwiftDemo.Payload.`names`(a0) } // s:9SwiftDemo7PayloadO5pointyAcA5PointVcACmF -func __nsProbe238(_ a0: SwiftDemo.Point) { +func __nsProbe275(_ a0: SwiftDemo.Point) { let _: SwiftDemo.Payload = SwiftDemo.Payload.`point`(a0) } // s:9SwiftDemo7PayloadO6flavoryAcA6FlavorOcACmF -func __nsProbe239(_ a0: SwiftDemo.Flavor) { +func __nsProbe276(_ a0: SwiftDemo.Flavor) { let _: SwiftDemo.Payload = SwiftDemo.Payload.`flavor`(a0) } // s:9SwiftDemo7PayloadO7trackeryAcA7TrackerCcACmF -func __nsProbe240(_ a0: SwiftDemo.Tracker) { +func __nsProbe277(_ a0: SwiftDemo.Tracker) { let _: SwiftDemo.Payload = SwiftDemo.Payload.`tracker`(a0) } // s:9SwiftDemo7PolygonC -func __nsProbe241(_ value: SwiftDemo.Polygon) -> SwiftDemo.Polygon { value } +func __nsProbe278(_ value: SwiftDemo.Polygon) -> SwiftDemo.Polygon { value } // s:9SwiftDemo7PolygonC11vertexCountSivp -func __nsProbe242(_ receiver: SwiftDemo.Polygon) { +func __nsProbe279(_ receiver: SwiftDemo.Polygon) { let _: Int = receiver.`vertexCount` } // s:9SwiftDemo7PolygonC4makeACyFZ -func __nsProbe243() { +func __nsProbe280() { let _: SwiftDemo.Polygon = SwiftDemo.Polygon.`make`() } // s:9SwiftDemo7PolygonC4name11vertexCountACSS_Sitcfc -func __nsProbe244(_ a0: String, _ a1: Int) { +func __nsProbe281(_ a0: String, _ a1: Int) { let _: SwiftDemo.Polygon = SwiftDemo.Polygon(name: a0, vertexCount: a1) } // s:9SwiftDemo7PolygonC4nameACSgSS_tcfc -func __nsProbe245(_ a0: String) { +func __nsProbe282(_ a0: String) { let _: SwiftDemo.Polygon? = SwiftDemo.Polygon(name: a0) } // s:9SwiftDemo7PolygonC4nameSSvp -func __nsProbe246(_ receiver: SwiftDemo.Polygon) { +func __nsProbe283(_ receiver: SwiftDemo.Polygon) { let _: String = receiver.`name` } // s:9SwiftDemo7PolygonC5StyleO -func __nsProbe247(_ value: SwiftDemo.Polygon.Style) -> SwiftDemo.Polygon.Style { value } +func __nsProbe284(_ value: SwiftDemo.Polygon.Style) -> SwiftDemo.Polygon.Style { value } // s:9SwiftDemo7PolygonC5StyleO5solidyA2EmF -func __nsProbe248() { +func __nsProbe285() { let _: SwiftDemo.Polygon.Style = SwiftDemo.Polygon.Style.`solid` } // s:9SwiftDemo7PolygonC5StyleO6dashedyA2EmF -func __nsProbe249() { +func __nsProbe286() { let _: SwiftDemo.Polygon.Style = SwiftDemo.Polygon.Style.`dashed` } // s:9SwiftDemo7PolygonC5StyleO8rawValueAESgSS_tcfc -func __nsProbe250(_ a0: String) { +func __nsProbe287(_ a0: String) { let _: SwiftDemo.Polygon.Style? = SwiftDemo.Polygon.Style(rawValue: a0) } // s:9SwiftDemo7PolygonC5scale1x1yySd_SdtF -func __nsProbe251(_ receiver: SwiftDemo.Polygon, _ a0: Double, _ a1: Double) { +func __nsProbe288(_ receiver: SwiftDemo.Polygon, _ a0: Double, _ a1: Double) { let _: Void = receiver.`scale`(x: a0, y: a1) } // s:9SwiftDemo7PolygonC5scale2byySd_tF -func __nsProbe252(_ receiver: SwiftDemo.Polygon, _ a0: Double) { +func __nsProbe289(_ receiver: SwiftDemo.Polygon, _ a0: Double) { let _: Void = receiver.`scale`(by: a0) } // s:9SwiftDemo7PolygonC5scale2byySi_tF -func __nsProbe253(_ receiver: SwiftDemo.Polygon, _ a0: Int) { +func __nsProbe290(_ receiver: SwiftDemo.Polygon, _ a0: Int) { let _: Void = receiver.`scale`(by: a0) } // s:9SwiftDemo7PolygonC5styleAC5StyleOvp -func __nsProbe254(_ receiver: SwiftDemo.Polygon) { +func __nsProbe291(_ receiver: SwiftDemo.Polygon) { let _: SwiftDemo.Polygon.Style = receiver.`style` } // s:9SwiftDemo7PolygonC6sharedACvpZ -func __nsProbe255() { +func __nsProbe292() { let _: SwiftDemo.Polygon = SwiftDemo.Polygon.`shared` } // s:9SwiftDemo7PolygonC7MetricsV -func __nsProbe256(_ value: SwiftDemo.Polygon.Metrics) -> SwiftDemo.Polygon.Metrics { value } +func __nsProbe293(_ value: SwiftDemo.Polygon.Metrics) -> SwiftDemo.Polygon.Metrics { value } // s:9SwiftDemo7PolygonC7MetricsV9perimeterAESd_tcfc -func __nsProbe257(_ a0: Double) { +func __nsProbe294(_ a0: Double) { let _: SwiftDemo.Polygon.Metrics = SwiftDemo.Polygon.Metrics(perimeter: a0) } // s:9SwiftDemo7PolygonC7MetricsV9perimeterSdvp -func __nsProbe258(_ receiver: inout SwiftDemo.Polygon.Metrics, _ newValue: Double) { +func __nsProbe295(_ receiver: inout SwiftDemo.Polygon.Metrics, _ newValue: Double) { let _: Double = receiver.`perimeter` receiver.`perimeter` = newValue } // s:9SwiftDemo7PolygonC7metrics4sideAC7MetricsVSd_tF -func __nsProbe259(_ receiver: SwiftDemo.Polygon, _ a0: Double) { +func __nsProbe296(_ receiver: SwiftDemo.Polygon, _ a0: Double) { let _: SwiftDemo.Polygon.Metrics = receiver.`metrics`(side: a0) } // s:9SwiftDemo7PolygonC8describeySSACSgFZ -func __nsProbe260(_ a0: SwiftDemo.Polygon?) { +func __nsProbe297(_ a0: SwiftDemo.Polygon?) { let _: String = SwiftDemo.Polygon.`describe`(a0) } +// s:9SwiftDemo7PolygonCyAA5PointVSicip +func __nsProbe298(_ receiver: SwiftDemo.Polygon, _ a0: Int) { + let _: SwiftDemo.Point = receiver[a0] +} + // s:9SwiftDemo7TrackerC -func __nsProbe261(_ value: SwiftDemo.Tracker) -> SwiftDemo.Tracker { value } +func __nsProbe299(_ value: SwiftDemo.Tracker) -> SwiftDemo.Tracker { value } // s:9SwiftDemo7TrackerC2idACSi_tcfc -func __nsProbe262(_ a0: Int) { +func __nsProbe300(_ a0: Int) { let _: SwiftDemo.Tracker = SwiftDemo.Tracker(id: a0) } // s:9SwiftDemo7TrackerC2idSivp -func __nsProbe263(_ receiver: SwiftDemo.Tracker) { +func __nsProbe301(_ receiver: SwiftDemo.Tracker) { let _: Int = receiver.`id` } // s:9SwiftDemo7TrackerC4sameACyF -func __nsProbe264(_ receiver: SwiftDemo.Tracker) { +func __nsProbe302(_ receiver: SwiftDemo.Tracker) { let _: SwiftDemo.Tracker = receiver.`same`() } // s:9SwiftDemo7TrackerC9liveCountSivpZ -func __nsProbe265() { +func __nsProbe303() { let _: Int = SwiftDemo.Tracker.`liveCount` } +// s:9SwiftDemo7Vector2V +func __nsProbe304(_ value: SwiftDemo.Vector2) -> SwiftDemo.Vector2 { value } + +// s:9SwiftDemo7Vector2V1moiyACSd_ACtFZ +func __nsProbe305(_ a0: Double, _ a1: SwiftDemo.Vector2) { + let _: SwiftDemo.Vector2 = (a0) * (a1) +} + +// s:9SwiftDemo7Vector2V1poiyA2C_ACtFZ +func __nsProbe306(_ receiver: SwiftDemo.Vector2, _ a0: SwiftDemo.Vector2) { + let _: SwiftDemo.Vector2 = (receiver) + (a0) +} + +// s:9SwiftDemo7Vector2V1sopyA2CFZ +func __nsProbe307(_ receiver: SwiftDemo.Vector2) { + let _: SwiftDemo.Vector2 = -(receiver) +} + +// s:9SwiftDemo7Vector2V1x1yACSd_Sdtcfc +func __nsProbe308(_ a0: Double, _ a1: Double) { + let _: SwiftDemo.Vector2 = SwiftDemo.Vector2(x: a0, y: a1) +} + +// s:9SwiftDemo7Vector2V1xSdvp +func __nsProbe309(_ receiver: inout SwiftDemo.Vector2, _ newValue: Double) { + let _: Double = receiver.`x` + receiver.`x` = newValue +} + +// s:9SwiftDemo7Vector2V1ySdvp +func __nsProbe310(_ receiver: inout SwiftDemo.Vector2, _ newValue: Double) { + let _: Double = receiver.`y` + receiver.`y` = newValue +} + +// s:9SwiftDemo7VersionV +func __nsProbe311(_ value: SwiftDemo.Version) -> SwiftDemo.Version { value } + +// s:9SwiftDemo7VersionV1loiySbAC_ACtFZ +func __nsProbe312(_ receiver: SwiftDemo.Version, _ a0: SwiftDemo.Version) { + let _: Bool = (receiver) < (a0) +} + +// s:9SwiftDemo7VersionV5major5minorACSi_Sitcfc +func __nsProbe313(_ a0: Int, _ a1: Int) { + let _: SwiftDemo.Version = SwiftDemo.Version(major: a0, minor: a1) +} + +// s:9SwiftDemo7VersionV5majorSivp +func __nsProbe314(_ receiver: SwiftDemo.Version) { + let _: Int = receiver.`major` +} + +// s:9SwiftDemo7VersionV5minorSivp +func __nsProbe315(_ receiver: SwiftDemo.Version) { + let _: Int = receiver.`minor` +} + // s:9SwiftDemo7compactySaySiGSaySiSgGF -func __nsProbe266(_ a0: [Int?]) { +func __nsProbe316(_ a0: [Int?]) { let _: [Int] = SwiftDemo.`compact`(a0) } // s:9SwiftDemo7countUp2toScSySiGSi_tF -func __nsProbe267(_ a0: Int) { +func __nsProbe317(_ a0: Int) { let _: AsyncStream = SwiftDemo.`countUp`(to: a0) } // s:9SwiftDemo7echoIntyS2iF -func __nsProbe268(_ a0: Int) { +func __nsProbe318(_ a0: Int) { let _: Int = SwiftDemo.`echoInt`(a0) } // s:9SwiftDemo7explainySSAA10ShapeErrorOF -func __nsProbe269(_ a0: SwiftDemo.ShapeError) { +func __nsProbe319(_ a0: SwiftDemo.ShapeError) { let _: String = SwiftDemo.`explain`(a0) } // s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF@ -func __nsProbe270(_ a0: SwiftDemoKit.Pair) { +func __nsProbe320(_ a0: SwiftDemoKit.Pair) { let _: String = SwiftDemo.`firstOf`(a0) } // s:9SwiftDemo7firstOfyx0aB3Kit4PairVyxq_Gr0_lF@ -func __nsProbe271(_ a0: SwiftDemoKit.Pair) { +func __nsProbe321(_ a0: SwiftDemoKit.Pair) { let _: Int = SwiftDemo.`firstOf`(a0) } // s:9SwiftDemo7fittingySo6CGSizeVSgAEF -func __nsProbe272(_ a0: CGSize?) { +func __nsProbe322(_ a0: CGSize?) { let _: CGSize? = SwiftDemo.`fitting`(a0) } +// s:9SwiftDemo7joinAllySSST_pSS7ElementSTRts_XPF +func __nsProbe323(_ a0: any Sequence) { + let _: String = SwiftDemo.`joinAll`(a0) +} + // s:9SwiftDemo7largestyxSgSayxGSLRzlF@ -func __nsProbe273(_ a0: [String]) { +func __nsProbe324(_ a0: [String]) { let _: String? = SwiftDemo.`largest`(a0) } // s:9SwiftDemo7largestyxSgSayxGSLRzlF@ -func __nsProbe274(_ a0: [Double]) { +func __nsProbe325(_ a0: [Double]) { let _: Double? = SwiftDemo.`largest`(a0) } // s:9SwiftDemo7lengthsySDySSSiGSDyS2SGF -func __nsProbe275(_ a0: [String: String]) { +func __nsProbe326(_ a0: [String: String]) { let _: [String: Int] = SwiftDemo.`lengths`(a0) } // s:9SwiftDemo7letters2ofQrSS_tF @available(iOS 18.0, *) -func __nsProbe276(_ a0: String) { +func __nsProbe327(_ a0: String) { let _ = SwiftDemo.`letters`(of: a0) } // s:9SwiftDemo7measure_2byAA11MeasurementOSd_SdSgtF -func __nsProbe277(_ a0: Double, _ a1: Double?) { +func __nsProbe328(_ a0: Double, _ a1: Double?) { let _: SwiftDemo.Measurement = SwiftDemo.`measure`(a0, by: a1) } // s:9SwiftDemo7nextDay5after10Foundation4DateVAF_tF -func __nsProbe278(_ a0: Date) { +func __nsProbe329(_ a0: Date) { let _: Date = SwiftDemo.`nextDay`(after: a0) } // s:9SwiftDemo7resolve_7against10Foundation3URLVSS_AFtF -func __nsProbe279(_ a0: String, _ a1: URL) { +func __nsProbe330(_ a0: String, _ a1: URL) { let _: URL = SwiftDemo.`resolve`(a0, against: a1) } // s:9SwiftDemo7topRankySSAA12RankedScorer_pKF -func __nsProbe280(_ a0: any SwiftDemo.RankedScorer) throws { +func __nsProbe331(_ a0: any SwiftDemo.RankedScorer) throws { let _: String = try SwiftDemo.`topRank`(a0) } // s:9SwiftDemo7viewTagySixSo6UIViewCRbzlF@ -func __nsProbe281(_ a0: UIView) { +func __nsProbe332(_ a0: UIView) { let _: Int = SwiftDemo.`viewTag`(a0) } // s:9SwiftDemo8GreetingP -func __nsProbe282(_ value: any SwiftDemo.Greeting) -> any SwiftDemo.Greeting { value } +func __nsProbe333(_ value: any SwiftDemo.Greeting) -> any SwiftDemo.Greeting { value } // s:9SwiftDemo8GreetingP11punctuationSSvp -func __nsProbe283(_ receiver: any SwiftDemo.Greeting, _ newValue: String) { +func __nsProbe334(_ receiver: any SwiftDemo.Greeting, _ newValue: String) { let _: String = receiver.`punctuation` receiver.`punctuation` = newValue } // s:9SwiftDemo8GreetingP4nameSSvp -func __nsProbe284(_ receiver: any SwiftDemo.Greeting) { +func __nsProbe335(_ receiver: any SwiftDemo.Greeting) { let _: String = receiver.`name` } // s:9SwiftDemo8GreetingP5greetyS2SF -func __nsProbe285(_ receiver: any SwiftDemo.Greeting, _ a0: String) { +func __nsProbe336(_ receiver: any SwiftDemo.Greeting, _ a0: String) { let _: String = receiver.`greet`(a0) } // s:9SwiftDemo8GreetingP5resetyyF -func __nsProbe286(_ receiver: any SwiftDemo.Greeting) { +func __nsProbe337(_ receiver: any SwiftDemo.Greeting) { let _: Void = receiver.`reset`() } // s:9SwiftDemo8GreetingPAAE5shoutyS2SF -func __nsProbe287(_ receiver: any SwiftDemo.Greeting, _ a0: String) { +func __nsProbe338(_ receiver: any SwiftDemo.Greeting, _ a0: String) { let _: String = receiver.`shout`(a0) } // s:9SwiftDemo8GreetingPAAE5shoutyS2SF::SYNTHESIZED::s:9SwiftDemo14FormalGreetingC -func __nsProbe288(_ receiver: SwiftDemo.FormalGreeting, _ a0: String) { +func __nsProbe339(_ receiver: SwiftDemo.FormalGreeting, _ a0: String) { let _: String = receiver.`shout`(a0) } // s:9SwiftDemo8NotifierC -func __nsProbe289(_ value: SwiftDemo.Notifier) -> SwiftDemo.Notifier { value } +func __nsProbe340(_ value: SwiftDemo.Notifier) -> SwiftDemo.Notifier { value } // s:9SwiftDemo8NotifierC12publishLateryySSF -func __nsProbe290(_ receiver: SwiftDemo.Notifier, _ a0: String) { +func __nsProbe341(_ receiver: SwiftDemo.Notifier, _ a0: String) { let _: Void = receiver.`publishLater`(a0) } // s:9SwiftDemo8NotifierC5clearyyF -func __nsProbe291(_ receiver: SwiftDemo.Notifier) { +func __nsProbe342(_ receiver: SwiftDemo.Notifier) { let _: Void = receiver.`clear`() } // s:9SwiftDemo8NotifierC5countSivp -func __nsProbe292(_ receiver: SwiftDemo.Notifier) { +func __nsProbe343(_ receiver: SwiftDemo.Notifier) { let _: Int = receiver.`count` } // s:9SwiftDemo8NotifierC7publishyySSF -func __nsProbe293(_ receiver: SwiftDemo.Notifier, _ a0: String) { +func __nsProbe344(_ receiver: SwiftDemo.Notifier, _ a0: String) { let _: Void = receiver.`publish`(a0) } // s:9SwiftDemo8NotifierC9subscribeyyySSYbcF -func __nsProbe294(_ receiver: SwiftDemo.Notifier, _ a0: @escaping @Sendable (String) -> Void) { +func __nsProbe345(_ receiver: SwiftDemo.Notifier, _ a0: @escaping @Sendable (String) -> Void) { let _: Void = receiver.`subscribe`(a0) } // s:9SwiftDemo8NotifierCACycfc -func __nsProbe295() { +func __nsProbe346() { let _: SwiftDemo.Notifier = SwiftDemo.Notifier() } // s:9SwiftDemo8centroid2ofAA5PointVSayAEG_tF -func __nsProbe296(_ a0: [SwiftDemo.Point]) { +func __nsProbe347(_ a0: [SwiftDemo.Point]) { let _: SwiftDemo.Point = SwiftDemo.`centroid`(of: a0) } // s:9SwiftDemo8checksumySi10Foundation4DataVF -func __nsProbe297(_ a0: Data) { +func __nsProbe348(_ a0: Data) { let _: Int = SwiftDemo.`checksum`(a0) } // s:9SwiftDemo8countBoxy0aB3Kit0D0CySiGSiF -func __nsProbe298(_ a0: Int) { +func __nsProbe349(_ a0: Int) { let _: SwiftDemoKit.Box = SwiftDemo.`countBox`(a0) } // s:9SwiftDemo8describeySS0aB3Kit4PairVySiSSGF -func __nsProbe299(_ a0: SwiftDemoKit.Pair) { +func __nsProbe350(_ a0: SwiftDemoKit.Pair) { let _: String = SwiftDemo.`describe`(a0) } // s:9SwiftDemo8describeySSSo6UIViewCF -func __nsProbe300(_ a0: UIView) { +func __nsProbe351(_ a0: UIView) { let _: String = SwiftDemo.`describe`(a0) } // s:9SwiftDemo8echoInt8ys0D0VADF -func __nsProbe301(_ a0: Int8) { +func __nsProbe352(_ a0: Int8) { let _: Int8 = SwiftDemo.`echoInt8`(a0) } // s:9SwiftDemo8makeNoteyAA0D0CSSF -func __nsProbe302(_ a0: String) { +func __nsProbe353(_ a0: String) { let _: SwiftDemo.Note = SwiftDemo.`makeNote`(a0) } // s:9SwiftDemo8midpointySo7CGPointVAD_ADtF -func __nsProbe303(_ a0: CGPoint, _ a1: CGPoint) { +func __nsProbe354(_ a0: CGPoint, _ a1: CGPoint) { let _: CGPoint = SwiftDemo.`midpoint`(a0, a1) } // s:9SwiftDemo8mirroredySaySaySiGGADF -func __nsProbe304(_ a0: [[Int]]) { +func __nsProbe355(_ a0: [[Int]]) { let _: [[Int]] = SwiftDemo.`mirrored`(a0) } // s:9SwiftDemo8popCountySixs17FixedWidthIntegerRzlF@ -func __nsProbe305(_ a0: Int) { +func __nsProbe356(_ a0: Int) { let _: Int = SwiftDemo.`popCount`(a0) } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -func __nsProbe306(_ a0: String, _ a1: Int) { +func __nsProbe357(_ a0: String, _ a1: Int) { let _: [String] = SwiftDemo.`repeated`(a0, times: a1) } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -func __nsProbe307(_ a0: Bool, _ a1: Int) { +func __nsProbe358(_ a0: Bool, _ a1: Int) { let _: [Bool] = SwiftDemo.`repeated`(a0, times: a1) } // s:9SwiftDemo8repeated_5timesSayxGx_SitlF@ -func __nsProbe308(_ a0: Double, _ a1: Int) { +func __nsProbe359(_ a0: Double, _ a1: Int) { let _: [Double] = SwiftDemo.`repeated`(a0, times: a1) } // s:9SwiftDemo8scoreAllySaySiGAA6Scorer_p_ACtKF -func __nsProbe309(_ a0: any SwiftDemo.Scorer, _ a1: [Int]) throws { +func __nsProbe360(_ a0: any SwiftDemo.Scorer, _ a1: [Int]) throws { let _: [Int] = try SwiftDemo.`scoreAll`(a0, a1) } // s:9SwiftDemo8shoutAllySSxSyRzlF@ -func __nsProbe310(_ a0: String) { +func __nsProbe361(_ a0: String) { let _: String = SwiftDemo.`shoutAll`(a0) } // s:9SwiftDemo8simplifyyAA7FormulaOADF -func __nsProbe311(_ a0: SwiftDemo.Formula) { +func __nsProbe362(_ a0: SwiftDemo.Formula) { let _: SwiftDemo.Formula = SwiftDemo.`simplify`(a0) } // s:9SwiftDemo8swapPairySS_SitSi_SSt_tF -func __nsProbe312(_ a0: (Int, String)) { +func __nsProbe363(_ a0: (Int, String)) { let _: (String, Int) = SwiftDemo.`swapPair`(a0) } // s:9SwiftDemo8trackersySayAA7TrackerCGSaySiGF -func __nsProbe313(_ a0: [Int]) { +func __nsProbe364(_ a0: [Int]) { let _: [SwiftDemo.Tracker] = SwiftDemo.`trackers`(a0) } +// s:9SwiftDemo9CancelLogC +func __nsProbe365(_ value: SwiftDemo.CancelLog) -> SwiftDemo.CancelLog { value } + +// s:9SwiftDemo9CancelLogC13cancellationsSivpZ +func __nsProbe366(_ newValue: Int) { + let _: Int = SwiftDemo.CancelLog.`cancellations` + SwiftDemo.CancelLog.`cancellations` = newValue +} + +// s:9SwiftDemo9CountdownV +func __nsProbe367(_ value: SwiftDemo.Countdown) -> SwiftDemo.Countdown { value } + +// s:9SwiftDemo9CountdownV13AsyncIteratorV +func __nsProbe368(_ value: SwiftDemo.Countdown.AsyncIterator) -> SwiftDemo.Countdown.AsyncIterator { value } + +// s:9SwiftDemo9CountdownV13AsyncIteratorV4nextSiSgyYaF +func __nsProbe369(_ receiver: inout SwiftDemo.Countdown.AsyncIterator) async { + let _: Int? = await receiver.`next`() +} + +// s:9SwiftDemo9CountdownV17makeAsyncIteratorAC0eF0VyF +func __nsProbe370(_ receiver: SwiftDemo.Countdown) { + let _: SwiftDemo.Countdown.AsyncIterator = receiver.`makeAsyncIterator`() +} + +// s:9SwiftDemo9CountdownV4fromACSi_tcfc +func __nsProbe371(_ a0: Int) { + let _: SwiftDemo.Countdown = SwiftDemo.Countdown(from: a0) +} + +// s:9SwiftDemo9CountdownV5labelSSvp +func __nsProbe372(_ receiver: SwiftDemo.Countdown) { + let _: String = receiver.`label` +} + +// s:9SwiftDemo9CountdownV5startSivp +func __nsProbe373(_ receiver: SwiftDemo.Countdown) { + let _: Int = receiver.`start` +} + +// s:9SwiftDemo9StreamLogC +func __nsProbe374(_ value: SwiftDemo.StreamLog) -> SwiftDemo.StreamLog { value } + +// s:9SwiftDemo9StreamLogC12terminationsSivpZ +func __nsProbe375(_ newValue: Int) { + let _: Int = SwiftDemo.StreamLog.`terminations` + SwiftDemo.StreamLog.`terminations` = newValue +} + // s:9SwiftDemo9countDown4from9failingAtScsySis5Error_pGSi_SiSgtF -func __nsProbe314(_ a0: Int, _ a1: Int?) { +func __nsProbe376(_ a0: Int, _ a1: Int?) { let _: AsyncThrowingStream = SwiftDemo.`countDown`(from: a0, failingAt: a1) } // s:9SwiftDemo9countdown4from_ySi_ySi_SbtXEtF -func __nsProbe315(_ a0: Int, _ a1: (Int, Bool) -> Void) { +func __nsProbe377(_ a0: Int, _ a1: (Int, Bool) -> Void) { let _: Void = SwiftDemo.`countdown`(from: a0, a1) } // s:9SwiftDemo9fetchItemyySi_ys6ResultOySSs5Error_pGYbctF -func __nsProbe316(_ a0: Int, _ a1: @escaping @Sendable (Result) -> Void) { +func __nsProbe378(_ a0: Int, _ a1: @escaping @Sendable (Result) -> Void) { let _: Void = SwiftDemo.`fetchItem`(a0, a1) } // s:9SwiftDemo9greetOnceySSx_SStAA8GreetingRzlF@ -func __nsProbe317(_ a0: any SwiftDemo.Greeting, _ a1: String) { +func __nsProbe379(_ a0: any SwiftDemo.Greeting, _ a1: String) { let _: String = SwiftDemo.`greetOnce`(a0, a1) } // s:9SwiftDemo9introduce_2toSSAA8Greeting_p_SStF -func __nsProbe318(_ a0: any SwiftDemo.Greeting, _ a1: String) { +func __nsProbe380(_ a0: any SwiftDemo.Greeting, _ a1: String) { let _: String = SwiftDemo.`introduce`(a0, to: a1) } // s:9SwiftDemo9makeLabelySo7UILabelCSSF @MainActor -func __nsProbe319(_ a0: String) { +func __nsProbe381(_ a0: String) { let _: UILabel = SwiftDemo.`makeLabel`(a0) } // s:9SwiftDemo9makeScorey0aB3Kit4PairVySSSiGSS_SitF -func __nsProbe320(_ a0: String, _ a1: Int) { +func __nsProbe382(_ a0: String, _ a1: Int) { let _: Score = SwiftDemo.`makeScore`(a0, a1) } // s:9SwiftDemo9noteLateryAA4NoteCSSYaF -func __nsProbe321(_ a0: String) async { +func __nsProbe383(_ a0: String) async { let _: SwiftDemo.Note = await SwiftDemo.`noteLater`(a0) } // s:9SwiftDemo9onMeasureyyyAA11MeasurementOXEF -func __nsProbe322(_ a0: (SwiftDemo.Measurement) -> Void) { +func __nsProbe384(_ a0: (SwiftDemo.Measurement) -> Void) { let _: Void = SwiftDemo.`onMeasure`(a0) } // s:9SwiftDemo9transformySaySSGSaySiG_SSSiXEtF -func __nsProbe323(_ a0: [Int], _ a1: (Int) -> String) { +func __nsProbe385(_ a0: [Int], _ a1: (Int) -> String) { let _: [String] = SwiftDemo.`transform`(a0, a1) } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo13PrecipitationO -func __nsProbe324(_ receiver: SwiftDemo.Precipitation) { +func __nsProbe386(_ receiver: SwiftDemo.Precipitation) { let _: Int = receiver.`hashValue` } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo6FlavorO -func __nsProbe325(_ receiver: SwiftDemo.Flavor) { +func __nsProbe387(_ receiver: SwiftDemo.Flavor) { let _: Int = receiver.`hashValue` } // s:SYsSHRzSH8RawValueSYRpzrlE04hashB0Sivp::SYNTHESIZED::s:9SwiftDemo7PolygonC5StyleO -func __nsProbe326(_ receiver: SwiftDemo.Polygon.Style) { +func __nsProbe388(_ receiver: SwiftDemo.Polygon.Style) { let _: Int = receiver.`hashValue` } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo10ShapeErrorO -func __nsProbe327(_ receiver: SwiftDemo.ShapeError) { +func __nsProbe389(_ receiver: SwiftDemo.ShapeError) { let _: String = receiver.`localizedDescription` } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo12ParseFailureV -func __nsProbe328(_ receiver: SwiftDemo.ParseFailure) { +func __nsProbe390(_ receiver: SwiftDemo.ParseFailure) { let _: String = receiver.`localizedDescription` } // s:s5ErrorP10FoundationE20localizedDescriptionSSvp::SYNTHESIZED::s:9SwiftDemo14CountdownErrorV -func __nsProbe329(_ receiver: SwiftDemo.CountdownError) { +func __nsProbe391(_ receiver: SwiftDemo.CountdownError) { let _: String = receiver.`localizedDescription` } diff --git a/metadata-generator/tests/swift/snapshots/swift!SwiftDemo.d.ts b/metadata-generator/tests/swift/snapshots/swift!SwiftDemo.d.ts index 90fa033a..cdf16d83 100644 --- a/metadata-generator/tests/swift/snapshots/swift!SwiftDemo.d.ts +++ b/metadata-generator/tests/swift/snapshots/swift!SwiftDemo.d.ts @@ -48,6 +48,23 @@ declare module "ns:swift/SwiftDemo" { warmLater(delta: number): void; } + export class WordStream { + constructor(text: string); + makeAsyncIterator(): WordStream.Iterator; + /** + * Iterates the sequence: `for await (const x of value)`. + */ + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + export namespace WordStream { + export class Iterator { + private constructor(); + next(signal?: AbortSignal): Promise; + } + + } + export type Measurement = | { case: "area"; width: number; height: number } | { case: "none" } @@ -62,6 +79,13 @@ declare module "ns:swift/SwiftDemo" { } + export class Thermometer { + constructor(); + finish(): void; + record(value: number): void; + readonly readings: AsyncIterableIterator; + } + export class ParseFailure { private constructor(); readonly description: string; @@ -114,6 +138,20 @@ declare module "ns:swift/SwiftDemo" { greeting: Greeting | null; } + export class GreetingRegistry { + constructor(); + add(greeting: Greeting): void; + readonly count: number; + remove(greeting: Greeting): void; + contains(greeting: Greeting): boolean; + } + + export class WeakGreetingHolder { + constructor(); + greet(other: string): string | null; + greeting: Greeting | null; + } + export namespace Job { export class Ticket { constructor(id: number | bigint); @@ -123,9 +161,18 @@ declare module "ns:swift/SwiftDemo" { } + export class Grid { + constructor(size: number | bigint); + constructor(args: { size: number | bigint }); + cells: (number)[]; + subscript(index: number | bigint): number; + setSubscript(index: number | bigint, value: number | bigint): void; + } + export class Ring { constructor(inner: Point, outer: Point); constructor(args: { inner: Point; outer: Point }); + plus(rhs: Ring): Ring; inner: Point; outer: Point; expand(delta: number): void; @@ -158,6 +205,15 @@ declare module "ns:swift/SwiftDemo" { readonly length: number; } + export class Shelf { + constructor(); + subscript(row: number | bigint, column: number | bigint): string; + subscript(name: string): number | null; + "subscript(_:_:)"(row: number | bigint, column: number | bigint): string; + "subscript(_:)"(name: string): number | null; + setSubscript(name: string, value: (number | bigint) | null | undefined): void; + } + export class Canvas { constructor(); } @@ -184,8 +240,8 @@ declare module "ns:swift/SwiftDemo" { withCompletion(completion: (arg0: { case: "success"; value: string } | { case: "failure"; value: ShapeError }) => void): void; each(body: (arg0: number) => void): void; load(path: string): Uint8Array; - wait(seconds: number): Promise; - fetch(url: string | URL): Promise; + wait(seconds: number, signal?: AbortSignal): Promise; + fetch(url: string | URL, signal?: AbortSignal): Promise; first(items: readonly (string)[]): string | null; first(items: readonly (boolean)[]): boolean | null; first(items: readonly (number)[]): number | null; @@ -222,7 +278,7 @@ declare module "ns:swift/SwiftDemo" { readonly step: Promise; label(): string; readonly value: Promise; - increment(): Promise; + increment(signal?: AbortSignal): Promise; } export type Formula = @@ -239,7 +295,7 @@ declare module "ns:swift/SwiftDemo" { export class Palette { constructor(); - strokeLater(): Promise; + strokeLater(signal?: AbortSignal): Promise; stroke(): number; readonly strokes: number; } @@ -269,6 +325,7 @@ declare module "ns:swift/SwiftDemo" { static readonly shared: Polygon; metrics(side: number): Polygon.Metrics; static describe(polygon: (Polygon) | null | undefined): string; + subscript(index: number | bigint): Point; } export namespace Polygon { @@ -296,6 +353,36 @@ declare module "ns:swift/SwiftDemo" { static readonly liveCount: number; } + export class Vector2 { + constructor(x: number, y: number); + constructor(args: { x: number; y: number }); + static times(scale: number, vector: Vector2): Vector2; + plus(rhs: Vector2): Vector2; + negated(): Vector2; + x: number; + y: number; + /** + * Whether the values are equal (Swift's `==`). + */ + equals(other: Vector2): boolean; + } + + export class Version { + constructor(major: number | bigint, minor: number | bigint); + constructor(args: { major: number | bigint; minor: number | bigint }); + lessThan(rhs: Version): boolean; + readonly major: number; + readonly minor: number; + /** + * Whether the values are equal (Swift's `==`). + */ + equals(other: Version): boolean; + /** + * -1, 0 or 1 as this value sorts before, with or after `other` (Swift's `<`): `list.sort((a, b) => a.compare(b))`. + */ + compare(other: Version): number; + } + export interface Greeting { punctuation: string; readonly name: string; @@ -312,6 +399,36 @@ declare module "ns:swift/SwiftDemo" { subscribe(handler: (arg0: string) => void): void; } + export class CancelLog { + private constructor(); + static cancellations: number; + } + + export class Countdown { + constructor(start: number | bigint); + constructor(args: { from: number | bigint }); + makeAsyncIterator(): Countdown.AsyncIterator; + readonly label: string; + readonly start: number; + /** + * Iterates the sequence: `for await (const x of value)`. + */ + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + export namespace Countdown { + export class AsyncIterator { + private constructor(); + next(signal?: AbortSignal): Promise; + } + + } + + export class StreamLog { + private constructor(); + static terminations: number; + } + export type Score = import("ns:swift/SwiftDemoKit").Pair; export type Coordinates = { latitude: number; longitude: number }; export function allFlavors(): (Flavor)[]; @@ -323,21 +440,25 @@ declare module "ns:swift/SwiftDemo" { export function greetTwice(greeting: Greeting, other: string): string; export function largestInt(): number; export function makeScorer(): Scorer; - export function namesLater(count: number | bigint): Promise<(string)[]>; - export function parseLater(text: string): Promise<{ case: "success"; value: number } | { case: "failure"; value: Error }>; - export function tallyLater(words: readonly (string)[]): Promise<{ unique: Set; count: number }>; + export function namesLater(count: number | bigint, signal?: AbortSignal): Promise<(string)[]>; + export function parseLater(text: string, signal?: AbortSignal): Promise<{ case: "success"; value: number } | { case: "failure"; value: Error }>; + export function tallyLater(words: readonly (string)[], signal?: AbortSignal): Promise<{ unique: Set; count: number }>; export function uniqueTags(tags: readonly (string)[]): Set; export function wordCounts(words: readonly (string)[]): Record; export function checkedSide(side: number): number; export function countUnique(values: ReadonlySet | readonly (number | bigint)[]): number; - export function delayedEcho(text: string, seconds: number): Promise; + export function delayedEcho(text: string, seconds: number, signal?: AbortSignal): Promise; export function knownScores(scores: Readonly>): Record; + export function longestWord(words: readonly (string)[]): number; export function parseNumber(text: string): { case: "success"; value: number } | { case: "failure"; value: Error }; export function sortedNames(names: readonly (string)[], less: (arg0: string, arg1: string) => boolean): (string)[]; + export function firstElement(values: readonly (string)[]): string | null; + export function firstElement(values: readonly (boolean)[]): boolean | null; + export function firstElement(values: readonly (number)[]): number | null; export function firstSubview(view: UIView): UIView | null; export function latitudeSpan(a: { readonly latitude: number; readonly longitude: number }, b: { readonly latitude: number; readonly longitude: number }): number; export function makeGreeting(name: string): Greeting; - export function measureLater(width: number): Promise; + export function measureLater(width: number, signal?: AbortSignal): Promise; export function measurements(): (Measurement)[]; export function swapTrackers(a: { value: Tracker }, b: { value: Tracker }): void; export const defaultFlavor: Flavor; @@ -347,10 +468,11 @@ declare module "ns:swift/SwiftDemo" { export function describeValue(value: number): string; export let globalCounter: number; export function starterWallet(owner: string): import("ns:swift/SwiftDemoKit").Wallet; + export function waitForCancel(seconds: number, signal?: AbortSignal): Promise; export function makeDefaultPoint(): Point; - export function makeTrackerLater(id: number | bigint): Promise; - export function greetInBackground(greeting: Greeting): Promise; - export function computeInBackground(provider: () => number | bigint): Promise; + export function makeTrackerLater(id: number | bigint, signal?: AbortSignal): Promise; + export function greetInBackground(greeting: Greeting, signal?: AbortSignal): Promise; + export function computeInBackground(provider: () => number | bigint, signal?: AbortSignal): Promise; export function sum(amounts: readonly (import("ns:swift/SwiftDemoKit").Money)[]): import("ns:swift/SwiftDemoKit").Money; export function area(measurement: Measurement): number; export function bump(value: { value: number | bigint }): void; @@ -365,6 +487,7 @@ declare module "ns:swift/SwiftDemo" { export function zero(): number; export function boxed(money: import("ns:swift/SwiftDemoKit").Money): import("ns:swift/SwiftDemoKit").Box; export function clear(name: { value: (string) | null | undefined }): void; + export function evens(limit: number | bigint): (number)[]; export function halve(value: { value: number | bigint }): void; export function holes(count: number | bigint): (string | null)[]; export function inset(rect: { readonly origin: { readonly x: number; readonly y: number }; readonly size: { readonly width: number; readonly height: number } }, insets: { readonly top: number; readonly left: number; readonly bottom: number; readonly right: number }): { origin: { x: number; y: number }; size: { width: number; height: number } }; @@ -381,6 +504,8 @@ declare module "ns:swift/SwiftDemo" { export function excite(greeting: Greeting): void; export function lookup(key: string, resolve: (arg0: string) => (number | bigint) | null | undefined): number; export function settle(value: number | bigint): import("ns:swift/SwiftDemoKit").Outcome; + export function sumAll(values: readonly (number | bigint)[]): number; + export function ticker(): AsyncIterableIterator; export function unwrap(result: { readonly case: "success"; readonly value: string } | { readonly case: "failure"; readonly value: Error | string }): string; export function compact(values: readonly ((number | bigint) | null | undefined)[]): (number)[]; export function countUp(limit: number | bigint): AsyncIterableIterator; @@ -389,6 +514,7 @@ declare module "ns:swift/SwiftDemo" { export function firstOf(pair: import("ns:swift/SwiftDemoKit").Pair): string; export function firstOf(pair: import("ns:swift/SwiftDemoKit").Pair): number; export function fitting(size: ({ readonly width: number; readonly height: number }) | null | undefined): { width: number; height: number } | null; + export function joinAll(parts: readonly (string)[]): string; export function largest(values: readonly (string)[]): string | null; export function largest(values: readonly (number)[]): number | null; export function lengths(table: Readonly>): Record; @@ -426,7 +552,7 @@ declare module "ns:swift/SwiftDemo" { export function introduce(greeting: Greeting, other: string): string; export function makeLabel(text: string): UILabel; export function makeScore(name: string, points: number | bigint): import("ns:swift/SwiftDemoKit").Pair; - export function noteLater(text: string): Promise; + export function noteLater(text: string, signal?: AbortSignal): Promise; export function onMeasure(body: (arg0: Measurement) => void): void; export function transform(values: readonly (number | bigint)[], body: (arg0: number) => string): (string)[]; diff --git a/metadata-generator/tests/swift/typescript/usage.ts b/metadata-generator/tests/swift/typescript/usage.ts index 869ea6ed..6a6ebb3b 100644 --- a/metadata-generator/tests/swift/typescript/usage.ts +++ b/metadata-generator/tests/swift/typescript/usage.ts @@ -39,6 +39,8 @@ lookup("k", () => null).toFixed(); (largest([1, 2]) ?? 0).toFixed(); repeated("x", 2).concat(["y"]); holes(2).map((value) => value ?? "-"); +declare const signal: AbortSignal; +delayedEcho("x", 1, signal).then((value) => value.toUpperCase()); divide(7, 2).quotient.toFixed(); swapPair([1, "a"])[0].toUpperCase(); uniqueTags(["a"]).has("a"); diff --git a/types/ns-swift.d.ts b/types/ns-swift.d.ts index 40845322..50feebf2 100644 --- a/types/ns-swift.d.ts +++ b/types/ns-swift.d.ts @@ -45,3 +45,13 @@ declare module "ns:swift" { */ export function observe(read: () => void, onChange: () => void): () => void; } + +/** + * Async Swift members take an optional trailing AbortSignal: aborting rejects + * the call's Promise with the signal's reason and cancels the Swift task. + * Declared here for programs without the DOM library; it merges with it. + */ +interface AbortSignal { + readonly aborted: boolean; + readonly reason: any; +}